Aimsun Next Scripting
22
|
Public Types | |
enum | GKTriggerConditionOperator { eEqual , eDifferent , eGreater , eLower } |
enum | GKTriggerConditionBoolean { eAnd , eOr } |
Public Member Functions | |
GKTriggerCondition () | |
void | prepareEvaluation (const GKModel &model) |
bool | evaluate (const GKContext &context, const GKExperiment *exp) const |
bool | isGroupLink () const |
void | setTargetId (uint aid, GKType *atype) |
uint | getTargetId () const |
GKType * | getTargetType () const |
void | setAttributte (GKColumn *aattr) |
GKColumn * | getAttributte () const |
void | setValue (const QString &avalue) |
const QString & | getValue () const |
void | setOperator (GKTriggerConditionOperator aoper) |
const GKTriggerConditionOperator | getOperator () const |
void | setBooleanOperator (GKTriggerConditionBoolean abooloper) |
const GKTriggerConditionBoolean | getBooleanOperator () const |
void | setTrigger (GKTrigger *trigger) |
Contains a single expression to evaluate. It can be linked with additional conditions in order to define a logical expression
GKTriggerCondition::GKTriggerCondition | ( | ) |
bool GKTriggerCondition::evaluate | ( | const GKContext & | context, |
const GKExperiment * | exp | ||
) | const |
returns the expression evaluation. It means that returns if current simulation conditions accomplish the expression
GKColumn * GKTriggerCondition::getAttributte | ( | ) | const |
returns the column to be checked
const GKTriggerConditionBoolean GKTriggerCondition::getBooleanOperator | ( | ) | const |
returns the boolean operator, which determines if the condition is linked with others or not
const GKTriggerConditionOperator GKTriggerCondition::getOperator | ( | ) | const |
sets the compare operator
uint GKTriggerCondition::getTargetId | ( | ) | const |
returns the object id that will be checked
GKType * GKTriggerCondition::getTargetType | ( | ) | const |
returns the object type that will be checked (as set from setTargetId )
const QString & GKTriggerCondition::getValue | ( | ) | const |
returns value to compare
bool GKTriggerCondition::isGroupLink | ( | ) | const |
returns if the condition is linked with any other condition
void GKTriggerCondition::prepareEvaluation | ( | const GKModel & | model | ) |
inits the evaluation process before evaluate call
void GKTriggerCondition::setAttributte | ( | GKColumn * | aattr | ) |
sets the column to be checked
void GKTriggerCondition::setBooleanOperator | ( | GKTriggerConditionBoolean | abooloper | ) |
sets the boolean operator, which determines if the condition is linked with others or not
void GKTriggerCondition::setOperator | ( | GKTriggerConditionOperator | aoper | ) |
sets the compare operator
void GKTriggerCondition::setTargetId | ( | uint | aid, |
GKType * | atype | ||
) |
sets the object id (and its type) that will be checked
void GKTriggerCondition::setTrigger | ( | GKTrigger * | trigger | ) |
sets the trigger where it is the condition
void GKTriggerCondition::setValue | ( | const QString & | avalue | ) |
sets value to compare