DatasetChild
abstract class DatasetChild
This class allows the storage and retrieval of common attributes of a dataset child.
A dataset child is either a data or a data group. This class is therefore the base class of the Data class and the DataGroup class.
Properties
protected Simulator | $simulator | ||
protected int | $id | ||
protected string | $name | ||
protected string | $label | ||
protected RichText | $description | ||
protected bool | $error | ||
protected array | $errorMessages | ||
protected bool | $warning | ||
protected array | $warningMessages | ||
protected bool | $used |
Methods
Returns the Simulator object that uses this dataset child
Returns the ID of this dataset child.
Sets the ID of this dataset child.
Returns the name of this dataset child.
Sets the name of this dataset child.
Returns the label of this dataset child.
Sets the label of this dataset child.
Returns the description of this dataset child.
Returns the state of use of this dataset child by the current simulation step
Returns the state of use of this dataset child by the current simulation step
Sets the state of use of this dataset child by the current simulation step
Returns the error attribute of this dataset child
Returns the error attribute of this dataset child
Determines whether this dataset child has a issued error or not
Returns the list of error messages.
Sets the list of error messages.
Adds a message to the list of error messages.
Removes a message from the list of error messages.
Returns the warning attribute of this dataset child
Returns the warning attribute of this dataset child
Determines whether this dataset child has a issued warning or not
Returns the list of warning messages.
Sets the list of warning messages.
Adds a message to the list of warning messages.
Removes a message from the list of warning messages.
Returns the class name of this dataset child. It's either "Data" or "DataGroup".
Details
at line 131
void
__construct(Simulator $simulator, int $id, string $name)
Constructor of class DatasetChild
at line 144
Simulator
getSimulator()
Returns the Simulator object that uses this dataset child
at line 155
int
getId()
Returns the ID of this dataset child.
at line 167
void
setId(int $id)
Sets the ID of this dataset child.
at line 178
string
getName()
Returns the name of this dataset child.
at line 190
void
setName(string $name)
Sets the name of this dataset child.
at line 201
string
getLabel()
Returns the label of this dataset child.
at line 213
void
setLabel(string $label)
Sets the label of this dataset child.
at line 224
RichText
getDescription()
Returns the description of this dataset child.
at line 236
void
setDescription(RichText $description)
Sets the description of this dataset child.
at line 247
bool
isUsed()
Returns the state of use of this dataset child by the current simulation step
at line 258
bool
getUsed()
Returns the state of use of this dataset child by the current simulation step
at line 270
void
setUsed(bool $used)
Sets the state of use of this dataset child by the current simulation step
at line 281
bool
isError()
Returns the error attribute of this dataset child
at line 292
bool
getError()
Returns the error attribute of this dataset child
at line 304
void
setError(bool $error)
Determines whether this dataset child has a issued error or not
at line 315
array
getErrorMessages()
Returns the list of error messages.
at line 327
void
setErrorMessages(array $errorMessages)
Sets the list of error messages.
at line 339
void
addErrorMessage(string $errorMessage)
Adds a message to the list of error messages.
at line 353
void
removeErrorMessage(int $index)
Removes a message from the list of error messages.
at line 364
bool
isWarning()
Returns the warning attribute of this dataset child
at line 375
bool
getWarning()
Returns the warning attribute of this dataset child
at line 387
void
setWarning(bool $warning)
Determines whether this dataset child has a issued warning or not
at line 398
array
getWarningMessages()
Returns the list of warning messages.
at line 410
void
setWarningMessages(array $warningMessages)
Sets the list of warning messages.
at line 422
void
addWarningMessage(string $warningMessage)
Adds a message to the list of warning messages.
at line 436
void
removeWarningMessage(int $index)
Removes a message from the list of warning messages.
at line 447
string
getClass()
Returns the class name of this dataset child. It's either "Data" or "DataGroup".