org.state4j.sm
Class SmStateImpl
java.lang.Object
org.state4j.sm.SmStateImpl
- All Implemented Interfaces:
- org.state4j.sm.SmState
- Direct Known Subclasses:
- SmCompositeStateImpl, SmSimpleStateImpl
public abstract class SmStateImpl
- extends java.lang.Object
- implements org.state4j.sm.SmState
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 |
closeDownState, containsState, deepContainsState |
SmStateImpl
public SmStateImpl()
hasEntryAction
public boolean hasEntryAction()
- Specified by:
hasEntryAction
in interface org.state4j.sm.SmState
hasExitAction
public boolean hasExitAction()
- Specified by:
hasExitAction
in interface org.state4j.sm.SmState
hasSubtype
public boolean hasSubtype()
- Specified by:
hasSubtype
in interface org.state4j.sm.SmState
getEntryAction
public org.state4j.sm.SmAction getEntryAction()
- Specified by:
getEntryAction
in interface org.state4j.sm.SmState
setEntryAction
public void setEntryAction(org.state4j.sm.SmAction entryAction)
- Specified by:
setEntryAction
in interface org.state4j.sm.SmState
getExitAction
public org.state4j.sm.SmAction getExitAction()
- Specified by:
getExitAction
in interface org.state4j.sm.SmState
setExitAction
public void setExitAction(org.state4j.sm.SmAction exitAction)
- Specified by:
setExitAction
in interface org.state4j.sm.SmState
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.state4j.sm.SmState
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface org.state4j.sm.SmState
hasName
public boolean hasName()
- Specified by:
hasName
in interface org.state4j.sm.SmState
getSubtype
public java.lang.String getSubtype()
- Specified by:
getSubtype
in interface org.state4j.sm.SmState
setSubtype
public void setSubtype(java.lang.String subtype)
- Specified by:
setSubtype
in interface org.state4j.sm.SmState
entry
public void entry(org.state4j.sm.SmContext cntx)
- Specified by:
entry
in interface org.state4j.sm.SmState
entryUp
public void entryUp(org.state4j.sm.SmContext cntx,
org.state4j.sm.SmCompositeState toParent)
- Specified by:
entryUp
in interface org.state4j.sm.SmState
exit
public void exit(org.state4j.sm.SmContext cntx)
- Specified by:
exit
in interface org.state4j.sm.SmState
exitUp
public void exitUp(org.state4j.sm.SmContext cntx,
org.state4j.sm.SmCompositeState toParent)
- Specified by:
exitUp
in interface org.state4j.sm.SmState
isInitial
public boolean isInitial()
- Specified by:
isInitial
in interface org.state4j.sm.SmState
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interface org.state4j.sm.SmState
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
getOutTransition
public org.state4j.sm.SmTransition getOutTransition(java.lang.String transName)
- Specified by:
getOutTransition
in interface org.state4j.sm.SmState
getOutTransitions
public java.util.Map<java.lang.String,org.state4j.sm.SmTransition> getOutTransitions()
- Specified by:
getOutTransitions
in interface org.state4j.sm.SmState
hasOutTransition
public boolean hasOutTransition(java.lang.String transName)
- Specified by:
hasOutTransition
in interface org.state4j.sm.SmState
hasOutTransitions
public boolean hasOutTransitions()
- Specified by:
hasOutTransitions
in interface org.state4j.sm.SmState
setOutTransitions
public void setOutTransitions(java.util.Map<java.lang.String,org.state4j.sm.SmTransition> transitions)
- Specified by:
setOutTransitions
in interface org.state4j.sm.SmState
fire
public void fire(org.state4j.sm.SmContext cntx)
- Specified by:
fire
in interface org.state4j.sm.SmState
isActive
public boolean isActive(org.state4j.sm.SmContext cntx)
- Specified by:
isActive
in interface org.state4j.sm.SmState
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
init
public void init()
- Specified by:
init
in interface org.state4j.sm.SmState
hasParent
public boolean hasParent()
- Specified by:
hasParent
in interface org.state4j.sm.SmState
getParent
public org.state4j.sm.SmCompositeState getParent()
- Specified by:
getParent
in interface org.state4j.sm.SmState
- Returns:
- Returns the parent.
setParent
public void setParent(org.state4j.sm.SmCompositeState parent)
- Specified by:
setParent
in interface org.state4j.sm.SmState
- Parameters:
parent
- The parent to set.
addOutTransition
public void addOutTransition(org.state4j.sm.SmTransition transition)
- Specified by:
addOutTransition
in interface org.state4j.sm.SmState
Copyright © 2006 . All Rights Reserved.