SimCenterCommon
Common functionality used within different SimCenter projects
RandomVariable Class Reference

#include <RandomVariable.h>

Inheritance diagram for RandomVariable:
Collaboration diagram for RandomVariable:

Public Slots

void distributionChanged (const QString &arg1)
 
void errorMessage (QString message)
 

Public Member Functions

 RandomVariable ()
 
 RandomVariable (const QString &variableClass, QWidget *parent=0)
 
 RandomVariable (const QString &variableClass, const QString &name, QWidget *parent=0)
 
 RandomVariable (const QString &variableClass, const QString &name, RandomVariableDistribution &theDistribution, QWidget *parent=0)
 
 ~RandomVariable ()
 
virtual bool outputToJSON (QJsonObject &rvObject)
 outputToJSON method to write all objects data neeed to reconstruct object to JsonObject More...
 
virtual bool inputFromJSON (QJsonObject &rvObject)
 inputFromJSON method to instantiate itself from a JSON object More...
 
bool isSelectedForRemoval (void)
 
QString getVariableName (void)
 
- Public Member Functions inherited from SimCenterWidget
 SimCenterWidget (QWidget *parent=0)
 
virtual ~SimCenterWidget ()
 

Public Attributes

QLineEdit * variableName
 
int refCount
 

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 51 of file RandomVariable.h.

Constructor & Destructor Documentation

RandomVariable::RandomVariable ( )
explicit

Definition at line 63 of file RandomVariable.cpp.

RandomVariable::RandomVariable ( const QString &  variableClass,
QWidget *  parent = 0 
)
explicit

Definition at line 69 of file RandomVariable.cpp.

RandomVariable::RandomVariable ( const QString &  variableClass,
const QString &  name,
QWidget *  parent = 0 
)
explicit

Definition at line 163 of file RandomVariable.cpp.

RandomVariable::RandomVariable ( const QString &  variableClass,
const QString &  name,
RandomVariableDistribution theDistribution,
QWidget *  parent = 0 
)
explicit

Definition at line 172 of file RandomVariable.cpp.

RandomVariable::~RandomVariable ( )

Definition at line 157 of file RandomVariable.cpp.

Member Function Documentation

void RandomVariable::distributionChanged ( const QString &  arg1)
slot

Definition at line 259 of file RandomVariable.cpp.

void RandomVariable::errorMessage ( QString  message)
slot

Definition at line 306 of file RandomVariable.cpp.

QString RandomVariable::getVariableName ( void  )

Definition at line 203 of file RandomVariable.cpp.

bool RandomVariable::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 225 of file RandomVariable.cpp.

bool RandomVariable::isSelectedForRemoval ( void  )

Definition at line 196 of file RandomVariable.cpp.

bool RandomVariable::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 208 of file RandomVariable.cpp.

Member Data Documentation

int RandomVariable::refCount

Definition at line 70 of file RandomVariable.h.

QLineEdit* RandomVariable::variableName

Definition at line 69 of file RandomVariable.h.


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