RAIN.Primitives.AssignVariableAction Class Reference

AssignVariableAction is a primitive action used to execute an AssignmentExpression. A min and max value can be set to limit the range of the variable assigned to. More...

Inheritance diagram for RAIN.Primitives.AssignVariableAction:
RAIN.Action.Action

List of all members.

Public Member Functions

void SetExpression (string expression)
 Set the assignment expression using parseable text.
override ActionResult Start (Agent agent, float deltaTime)
 ActionResult.Start.
override ActionResult Execute (Agent agent, float deltaTime)
 ActionResult.Execute Causes the AssignmentExpression to be evaluated and the variable to be updated and set into the current actionContext.
override ActionResult Stop (Agent agent, float deltaTime)
 ActionResult.Stop.

Properties

float MinValue [get, set]
 Min value for the expression.
float MaxValue [get, set]
 Max value for the expression.

Detailed Description

AssignVariableAction is a primitive action used to execute an AssignmentExpression. A min and max value can be set to limit the range of the variable assigned to.


Member Function Documentation

override ActionResult RAIN.Primitives.AssignVariableAction.Execute ( Agent  agent,
float  deltaTime 
) [virtual]

ActionResult.Execute Causes the AssignmentExpression to be evaluated and the variable to be updated and set into the current actionContext.

Parameters:
agent
deltaTime
Returns:

Reimplemented from RAIN.Action.Action.

void RAIN.Primitives.AssignVariableAction.SetExpression ( string  expression)

Set the assignment expression using parseable text.

Parameters:
expressionThe text expression to parse. See Belief.AssignmentExpressionParser.
override ActionResult RAIN.Primitives.AssignVariableAction.Start ( Agent  agent,
float  deltaTime 
) [virtual]

ActionResult.Start.

Parameters:
agent
deltaTime
Returns:
SUCCESS

Reimplemented from RAIN.Action.Action.

override ActionResult RAIN.Primitives.AssignVariableAction.Stop ( Agent  agent,
float  deltaTime 
) [virtual]

ActionResult.Stop.

Parameters:
agent
deltaTime
Returns:

Reimplemented from RAIN.Action.Action.


Property Documentation

float RAIN.Primitives.AssignVariableAction.MaxValue [get, set]

Max value for the expression.

float RAIN.Primitives.AssignVariableAction.MinValue [get, set]

Min value for the expression.