Download FLAME User Manual
Transcript
• LT – less then • GT – greater than • IN – an integer (in lhs) is a member of an array of integers (in rhs) or can be one of the following logic operators as well: • AND • OR The operator ‘NOT’ can be used by placing ‘not’ tags around a comparison rule. For example the following tagged rule describes the condition being true when the ‘z’ variable of the agent is greater than zero and less than ten: <condition> <lhs> <lhs><value>a.z</value></lhs> <op>GT</op> <rhs><value>0.0</value></rhs> </lhs> <op>AND</op> <rhs> <not> <lhs><value>a.z</value></lhs> <op>LT</op> <rhs><value>10.0</value></rhs> </not> </rhs> </condition> A condition can also depend on any time units described in the environment. For example the following condition is true when the agent variable ‘day_of_month_to_act’ is equal to the number of iterations since of the start, the phase, of the ‘monthly’ period, i.e. twenty iterations as defined in the time unit: <condition> <time> <period>monthly</period> <phase>a.day_of_month_to_act</phase> </time> </condition> 10