com.stateforge.statebuilder.java
Class CoderState

java.lang.Object
  extended by com.stateforge.statebuilder.CoderBase
      extended by com.stateforge.statebuilder.java.CoderBaseJava
          extended by com.stateforge.statebuilder.java.CoderState

public class CoderState
extends CoderBaseJava


Constructor Summary
CoderState(StateMachineModel model, com.sun.codemodel.JCodeModel code)
           
 
Method Summary
 void code()
           
protected  void processTransitionStatements(State state, Transition transition, com.sun.codemodel.JBlock block, com.sun.codemodel.JVar contextVar)
          context.setTransitionName("evTimer[ping.getTx() == ping.getCount()]"); com.stateforge.statemachine.algorithm.StateOperation.processTransitionBegin(context, PingEndState.getInstance()); com.stateforge.statemachine.algorithm.StateOperation.processTransitionEnd(context, PingEndState.getInstance()); context.onEnd();
 
Methods inherited from class com.stateforge.statebuilder.java.CoderBaseJava
addParameter, getAbstractContextClassName, getCode, getContextParentExpression, getPackage, getParallelClassName, getParallelFieldName, getParallelLocalVariableName, writeContextOnEnd, writeProcessTransition
 
Methods inherited from class com.stateforge.statebuilder.CoderBase
getContextClassName, getContextParentClassName, getModel, getStateClassName, getStateClassName, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoderState

public CoderState(StateMachineModel model,
                  com.sun.codemodel.JCodeModel code)
Method Detail

code

public void code()
          throws StateBuilderException
Specified by:
code in class CoderBase
Throws:
StateBuilderException

processTransitionStatements

protected void processTransitionStatements(State state,
                                           Transition transition,
                                           com.sun.codemodel.JBlock block,
                                           com.sun.codemodel.JVar contextVar)
                                    throws StateBuilderException
context.setTransitionName("evTimer[ping.getTx() == ping.getCount()]"); com.stateforge.statemachine.algorithm.StateOperation.processTransitionBegin(context, PingEndState.getInstance()); com.stateforge.statemachine.algorithm.StateOperation.processTransitionEnd(context, PingEndState.getInstance()); context.onEnd();

Parameters:
state -
transition -
Throws:
StateBuilderException


Copyright © 2015. All rights reserved.