org.state4j.sm
Class SmCompositeStateImpl

java.lang.Object
  extended by org.state4j.sm.SmStateImpl
      extended by org.state4j.sm.SmCompositeStateImpl
All Implemented Interfaces:
org.state4j.sm.SmCompositeState, org.state4j.sm.SmState

public class SmCompositeStateImpl
extends SmStateImpl
implements org.state4j.sm.SmCompositeState

Author:
andrea

Constructor Summary
SmCompositeStateImpl()
           
 
Method Summary
 org.state4j.sm.SmState closeDownState()
           
 boolean containsState(org.state4j.sm.SmState state)
           
 boolean deepContainsState(org.state4j.sm.SmState state)
           
 org.state4j.sm.SmState getActiveSubstate(org.state4j.sm.SmContext cntx)
           
 java.util.List<org.state4j.sm.SmTransition> getFireableTransitions(org.state4j.sm.SmContext cntx, boolean withTrigger)
           
 org.state4j.sm.SmState getInitialState()
           
 org.state4j.sm.SmCompositeState getLCA(org.state4j.sm.SmState state1, org.state4j.sm.SmState state2)
           
 org.state4j.sm.SmState getState(java.lang.String stateName)
           
 java.util.Map<java.lang.String,org.state4j.sm.SmState> getStates()
           
 boolean hasActiveSubstate(org.state4j.sm.SmContext cntx)
           
 boolean hasState(java.lang.String stateName)
           
 boolean hasStates()
           
 void init()
           
 boolean isActive(org.state4j.sm.SmContext cntx)
           
 void registerLCA(org.state4j.sm.SmTransition transition)
           
 void setStates(java.util.Map<java.lang.String,org.state4j.sm.SmState> states)
           
 
Methods inherited from class org.state4j.sm.SmStateImpl
addOutTransition, entry, entryUp, equals, exit, exitUp, fire, getEntryAction, getExitAction, getName, getOutTransition, getOutTransitions, getParent, getSubtype, hasEntryAction, hasExitAction, hasName, hasOutTransition, hasOutTransitions, hasParent, hasSubtype, isFinal, isInitial, setEntryAction, setExitAction, setName, setOutTransitions, setParent, setSubtype
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.state4j.sm.SmState
addOutTransition, entry, entryUp, exit, exitUp, fire, getEntryAction, getExitAction, getName, getOutTransition, getOutTransitions, getParent, getSubtype, hasEntryAction, hasExitAction, hasName, hasOutTransition, hasOutTransitions, hasParent, hasSubtype, isFinal, isInitial, setEntryAction, setExitAction, setName, setOutTransitions, setParent, setSubtype
 

Constructor Detail

SmCompositeStateImpl

public SmCompositeStateImpl()
Method Detail

getInitialState

public org.state4j.sm.SmState getInitialState()
Specified by:
getInitialState in interface org.state4j.sm.SmCompositeState

getState

public org.state4j.sm.SmState getState(java.lang.String stateName)
Specified by:
getState in interface org.state4j.sm.SmCompositeState

getStates

public java.util.Map<java.lang.String,org.state4j.sm.SmState> getStates()
Specified by:
getStates in interface org.state4j.sm.SmCompositeState

hasState

public boolean hasState(java.lang.String stateName)
Specified by:
hasState in interface org.state4j.sm.SmCompositeState

hasStates

public boolean hasStates()
Specified by:
hasStates in interface org.state4j.sm.SmCompositeState

setStates

public void setStates(java.util.Map<java.lang.String,org.state4j.sm.SmState> states)
Specified by:
setStates in interface org.state4j.sm.SmCompositeState

getFireableTransitions

public java.util.List<org.state4j.sm.SmTransition> getFireableTransitions(org.state4j.sm.SmContext cntx,
                                                                          boolean withTrigger)
Specified by:
getFireableTransitions in interface org.state4j.sm.SmState
Overrides:
getFireableTransitions in class SmStateImpl

getActiveSubstate

public org.state4j.sm.SmState getActiveSubstate(org.state4j.sm.SmContext cntx)
Specified by:
getActiveSubstate in interface org.state4j.sm.SmCompositeState

hasActiveSubstate

public boolean hasActiveSubstate(org.state4j.sm.SmContext cntx)
Specified by:
hasActiveSubstate in interface org.state4j.sm.SmCompositeState

isActive

public boolean isActive(org.state4j.sm.SmContext cntx)
Specified by:
isActive in interface org.state4j.sm.SmState
Overrides:
isActive in class SmStateImpl

deepContainsState

public boolean deepContainsState(org.state4j.sm.SmState state)
Specified by:
deepContainsState in interface org.state4j.sm.SmState

containsState

public boolean containsState(org.state4j.sm.SmState state)
Specified by:
containsState in interface org.state4j.sm.SmState

closeDownState

public org.state4j.sm.SmState closeDownState()
Specified by:
closeDownState in interface org.state4j.sm.SmState

getLCA

public org.state4j.sm.SmCompositeState getLCA(org.state4j.sm.SmState state1,
                                              org.state4j.sm.SmState state2)
Specified by:
getLCA in interface org.state4j.sm.SmCompositeState

registerLCA

public void registerLCA(org.state4j.sm.SmTransition transition)
Specified by:
registerLCA in interface org.state4j.sm.SmCompositeState

init

public void init()
Specified by:
init in interface org.state4j.sm.SmState
Overrides:
init in class SmStateImpl


Copyright © 2006 . All Rights Reserved.