SimCenterCommon
Common functionality used within different SimCenter projects
RandomVariablesContainer Class Reference

#include <RandomVariablesContainer.h>

Inheritance diagram for RandomVariablesContainer:
Collaboration diagram for RandomVariablesContainer:

Public Slots

void errorMessage (QString message)
 
void addRandomVariable (void)
 
void variableNameChanged (const QString &newValue)
 
void removeRandomVariable (void)
 
void addCorrelationMatrix (void)
 
void clear (void)
 

Public Member Functions

 RandomVariablesContainer (QWidget *parent=0)
 
 RandomVariablesContainer (QString &randomVariableClass, QWidget *parent=0)
 
 ~RandomVariablesContainer ()
 
void addRandomVariable (RandomVariable *theRV)
 
bool inputFromJSON (QJsonObject &rvObject)
 inputFromJSON method to instantiate itself from a JSON object More...
 
bool outputToJSON (QJsonObject &rvObject)
 outputToJSON method to write all objects data neeed to reconstruct object to JsonObject More...
 
void addRandomVariable (QString &rvName)
 
void addRVs (QStringList &varNames)
 
void addConstantRVs (QStringList &varNamesAndValues)
 
void removeRandomVariable (QString &varName)
 
void removeRandomVariables (QStringList &varNames)
 
QStringList getRandomVariableNames (void)
 
int getNumRandomVariables (void)
 
- Public Member Functions inherited from SimCenterWidget
 SimCenterWidget (QWidget *parent=0)
 
virtual ~SimCenterWidget ()
 

Additional Inherited Members

- Signals inherited from SimCenterWidget
void sendFatalMessage (QString message)
 sendFatalMessage signal to be emitted when object needs to shut program down More...
 
void sendErrorMessage (QString message)
 sendErrorMessage signal to be emitted when object needs to communicate error with user More...
 
void sendStatusMessage (QString message)
 sendStatusMessage signal to be emitted when object needs to communicate status with user More...
 

Detailed Description

Definition at line 61 of file RandomVariablesContainer.h.

Constructor & Destructor Documentation

RandomVariablesContainer::RandomVariablesContainer ( QWidget *  parent = 0)
explicit

Definition at line 57 of file RandomVariablesContainer.cpp.

RandomVariablesContainer::RandomVariablesContainer ( QString &  randomVariableClass,
QWidget *  parent = 0 
)
explicit

Definition at line 68 of file RandomVariablesContainer.cpp.

RandomVariablesContainer::~RandomVariablesContainer ( )

Definition at line 156 of file RandomVariablesContainer.cpp.

Member Function Documentation

void RandomVariablesContainer::addConstantRVs ( QStringList &  varNamesAndValues)

Definition at line 78 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::addCorrelationMatrix ( void  )
slot

Definition at line 449 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::addRandomVariable ( RandomVariable theRV)

Definition at line 394 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::addRandomVariable ( QString &  rvName)

Definition at line 95 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::addRandomVariable ( void  )
slot

Definition at line 282 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::addRVs ( QStringList &  varNames)
void RandomVariablesContainer::clear ( void  )
slot

Definition at line 503 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::errorMessage ( QString  message)
slot

Definition at line 667 of file RandomVariablesContainer.cpp.

int RandomVariablesContainer::getNumRandomVariables ( void  )

Definition at line 579 of file RandomVariablesContainer.cpp.

QStringList RandomVariablesContainer::getRandomVariableNames ( void  )

Definition at line 569 of file RandomVariablesContainer.cpp.

bool RandomVariablesContainer::inputFromJSON ( QJsonObject &  jsonObject)
virtual

inputFromJSON method to instantiate itself from a JSON object

Parameters
jsonObjectthe JSON object contaiing data to instantiate the object
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 585 of file RandomVariablesContainer.cpp.

bool RandomVariablesContainer::outputToJSON ( QJsonObject &  jsonObject)
virtual

outputToJSON method to write all objects data neeed to reconstruct object to JsonObject

Parameters
rvObjectthe JSON object to be written to
Returns
bool - true for success, otherwise false

Reimplemented from SimCenterWidget.

Definition at line 527 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::removeRandomVariable ( QString &  varName)

Definition at line 104 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::removeRandomVariable ( void  )
slot

Definition at line 345 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::removeRandomVariables ( QStringList &  varNames)

Definition at line 142 of file RandomVariablesContainer.cpp.

void RandomVariablesContainer::variableNameChanged ( const QString &  newValue)
slot

Definition at line 249 of file RandomVariablesContainer.cpp.


The documentation for this class was generated from the following files: