Connector
class Connector
This class allows the storage and retrieval of the attributes of a connector
A connector is an object that combines conditions in a business rule of a simulator. A connector is a combined condition.
There are three types of connectors :
- Connector "all": the result of the evaluation of the combined condition is true if all the conditions inside the connector are evaluated to true. This is the equivalent of Boolean "and".
- Connector "any": the result of the evaluation of the combined condition is true if at least one of the conditions inside the connector is evaluated to true. This is the equivalent of Boolean "or".
- Connector "not": the result of the evaluation of the combined condition is true if none of the conditions inside the connector is evaluated to true. This is the equivalent of Boolean "not".
Properties
private Simulator | $simulator | ||
private string | $type | ||
private array | $conditions |
Methods
Retrieves the Simulator object that has the business rule that uses this connector
Retrieves the type of this connector.
Sets the type of this connector.
Retrieves the conditions (Condition objects) or connectors (Connector objects) inside this connector.
Sets the conditions (Condition objects) or connectors (Connector objects) inside this connector.
Adds a Condition object or Connector object to the list of objects inside this connector.
Removes the Condition object or Connector object from the list of objects inside this connector at the given position.
Retrieves the Condition object or Connector object from the list of objects inside this connector at the given position.
Details
at line 80
void
__construct(Simulator $simulator, string $type)
Constructor of class Connector
at line 92
Simulator
getSimulator()
Retrieves the Simulator object that has the business rule that uses this connector
at line 103
string
getType()
Retrieves the type of this connector.
at line 115
void
setType(string $type)
Sets the type of this connector.
at line 126
array
getConditions()
Retrieves the conditions (Condition objects) or connectors (Connector objects) inside this connector.
at line 138
void
setConditions(array $conditions)
Sets the conditions (Condition objects) or connectors (Connector objects) inside this connector.
at line 150
void
addCondition(Condition|Connector $condition)
Adds a Condition object or Connector object to the list of objects inside this connector.
at line 162
void
removeCondition(int $index)
Removes the Condition object or Connector object from the list of objects inside this connector at the given position.