PyANGKernel.GKTriggerCondition

class GKTriggerCondition

A single trigger condition

Details

Contains a single expression to evaluate. It can be linked with additional conditions in order to define a logical expression

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

class GKTriggerConditionOperator
class GKTriggerConditionBoolean
__init__()
evaluate(context, exp)
Parameters:
Return type:

bool

returns the expression evaluation. It means that returns if current simulation conditions accomplish the expression

getAttributte()
Return type:

GKColumn

returns the column to be checked

getBooleanOperator()
Return type:

GKTriggerConditionBoolean

returns the boolean operator, which determines if the condition is linked with others or not

getOperator()
Return type:

GKTriggerConditionOperator

sets the compare operator

getTargetId()
Return type:

int

returns the object id that will be checked

getTargetType()
Return type:

GKType

returns the object type that will be checked (as set from setTargetId )

getValue()
Return type:

object

returns value to compare

Return type:

bool

returns if the condition is linked with any other condition

prepareEvaluation(model)
Parameters:

modelGKModel

inits the evaluation process before evaluate call

setAttributte(aattr)
Parameters:

aattrGKColumn

sets the column to be checked

setBooleanOperator(abooloper)
Parameters:

abooloperGKTriggerConditionBoolean

sets the boolean operator, which determines if the condition is linked with others or not

setOperator(aoper)
Parameters:

aoperGKTriggerConditionOperator

sets the compare operator

setTargetId(aid, atype)
Parameters:
  • aid – int

  • atypeGKType

sets the object id (and its type) that will be checked

setTrigger(trigger)
Parameters:

triggerGKTrigger

sets the trigger where it is the condition

setValue(avalue)
Parameters:

avalue – object

sets value to compare