it.amattioli.workstate.core
Class InitialState

Show UML class diagram
java.lang.Object
  extended by it.amattioli.workstate.core.State
      extended by it.amattioli.workstate.core.PseudoState
          extended by it.amattioli.workstate.core.InitialState
All Implemented Interfaces:
AttributeReader

public class InitialState
extends PseudoState

An initial state is a pseudo-state that represents the starting point of a sequential state. Every sequential state must have only one initial state. This initial state can be the source state of one or more transitions associated with no events. If a transition enters a sequential state without specifying a substate, its initial state will be activated and all the transitions starting from it will be evaluated to find the one to be fired.


Constructor Summary
InitialState(MetaInitialState metaState, CompositeState parent)
           
 
Method Summary
 void enter()
          Enters the initial state.
 String toString()
           
 
Methods inherited from class it.amattioli.workstate.core.PseudoState
admitEvent, getAllAttributes, getAttribute, getMemento, receiveEvent, restore
 
Methods inherited from class it.amattioli.workstate.core.State
addAvailableEvents, buildEvent, checkActive, equals, exit, findAncestor, getAvailableEvents, getId, getMemento, getParent, getRootMachine, hasMetaState, isActive, isRegion, reEnter, reExit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InitialState

public InitialState(MetaInitialState metaState,
                    CompositeState parent)
Method Detail

enter

public void enter()
           throws WorkflowException
Enters the initial state. When the initial state is entered all the transitions starting from it will be evaluated to find the one to follow. Once the right transition is found it will be fired. If all the transition guards return false an IllegalStateException will be thrown.

Overrides:
enter in class State
Throws:
WorkflowException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.