Class SwitchAction<StateEntityType extends StateEntity>

java.lang.Object
org.chenile.stm.impl.STMActionBase<StateEntityType>
org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction<StateEntityType>
org.chenile.stm.action.scriptsupport.BaseScriptingAction<StateEntityType>
org.chenile.stm.action.scriptsupport.SwitchAction<StateEntityType>
All Implemented Interfaces:
ComponentPropertiesAware, ScriptingStrategyAware, STMAutomaticStateComputation<StateEntityType>

public class SwitchAction<StateEntityType extends StateEntity> extends BaseScriptingAction<StateEntityType>
Emulates a switch construct. Introduces the following custom attributes: expression - the expression to be evaluated. case-FOO - the event that would be returned if the expression's value is 'FOO' default - the event that would be returned if none of the cases match the value of the expression.
Author:
Raja Shankar Kolluru