DataGroup
class DataGroup extends DatasetChild
This class allows the storage and retrieval of the attributes of a data group.
A data group is a subset of data grouped for any reason.
Properties
protected Simulator | $simulator | from DatasetChild | |
protected int | $id | from DatasetChild | |
protected string | $name | from DatasetChild | |
protected string | $label | from DatasetChild | |
protected RichText | $description | from DatasetChild | |
protected bool | $error | from DatasetChild | |
protected array | $errorMessages | from DatasetChild | |
protected bool | $warning | from DatasetChild | |
protected array | $warningMessages | from DatasetChild | |
protected bool | $used | from DatasetChild | |
private array | $datas |
Methods
Returns the Simulator object that uses 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
Determines whether this dataset child has a issued error or not
Adds a message to the list of error messages.
Removes a message from the list of error messages.
Determines whether this dataset child has a issued warning or not
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".
Returns the list of data item of this data group.
Sets the list of data item of this data group.
Removes a data from the list of data item of this data group.
Retrieves a Data object of this data group by its id.
Retrieves a Data object of this data group by its name.
Details
at line 59
void
__construct(Simulator $simulator, int $id, string $name)
Constructor of class DataGroup
in DatasetChild at line 144
Simulator
getSimulator()
Returns the Simulator object that uses this dataset child
in DatasetChild at line 155
int
getId()
Returns the ID of this dataset child.
in DatasetChild at line 167
void
setId(int $id)
Sets the ID of this dataset child.
in DatasetChild at line 178
string
getName()
Returns the name of this dataset child.
in DatasetChild at line 190
void
setName(string $name)
Sets the name of this dataset child.
in DatasetChild at line 201
string
getLabel()
Returns the label of this dataset child.
in DatasetChild at line 213
void
setLabel(string $label)
Sets the label of this dataset child.
in DatasetChild at line 224
RichText
getDescription()
Returns the description of this dataset child.
in DatasetChild at line 236
void
setDescription(RichText $description)
Sets the description of this dataset child.
in DatasetChild at line 247
bool
isUsed()
Returns the state of use of this dataset child by the current simulation step
in DatasetChild at line 258
bool
getUsed()
Returns the state of use of this dataset child by the current simulation step
in DatasetChild at line 270
void
setUsed(bool $used)
Sets the state of use of this dataset child by the current simulation step
in DatasetChild at line 281
bool
isError()
Returns the error attribute of this dataset child
in DatasetChild at line 292
bool
getError()
Returns the error attribute of this dataset child
in DatasetChild at line 304
void
setError(bool $error)
Determines whether this dataset child has a issued error or not
in DatasetChild at line 315
array
getErrorMessages()
Returns the list of error messages.
in DatasetChild at line 327
void
setErrorMessages(array $errorMessages)
Sets the list of error messages.
in DatasetChild at line 339
void
addErrorMessage(string $errorMessage)
Adds a message to the list of error messages.
in DatasetChild at line 353
void
removeErrorMessage(int $index)
Removes a message from the list of error messages.
in DatasetChild at line 364
bool
isWarning()
Returns the warning attribute of this dataset child
in DatasetChild at line 375
bool
getWarning()
Returns the warning attribute of this dataset child
in DatasetChild at line 387
void
setWarning(bool $warning)
Determines whether this dataset child has a issued warning or not
in DatasetChild at line 398
array
getWarningMessages()
Returns the list of warning messages.
in DatasetChild at line 410
void
setWarningMessages(array $warningMessages)
Sets the list of warning messages.
in DatasetChild at line 422
void
addWarningMessage(string $warningMessage)
Adds a message to the list of warning messages.
in DatasetChild at line 436
void
removeWarningMessage(int $index)
Removes a message from the list of warning messages.
in DatasetChild at line 447
string
getClass()
Returns the class name of this dataset child. It's either "Data" or "DataGroup".
at line 70
array
getDatas()
Returns the list of data item of this data group.
at line 82
void
setDatas(array $datas)
Sets the list of data item of this data group.
at line 94
void
addData(Data $data)
Adds a data to the list of data item of this data group.
at line 106
void
removeData(int $index)
Removes a data from the list of data item of this data group.
at line 118
Data|null
getDataById(int $id)
Retrieves a Data object of this data group by its id.
at line 135
Data|null
getDataByName(string $name)
Retrieves a Data object of this data group by its name.