org.state4j.sm
Class SmEngineImpl<T extends org.state4j.sm.SmTarget>

java.lang.Object
  extended by org.state4j.sm.SmEngineImpl<T>
All Implemented Interfaces:
org.state4j.sm.SmEngine<T>

public class SmEngineImpl<T extends org.state4j.sm.SmTarget>
extends java.lang.Object
implements org.state4j.sm.SmEngine<T>

Author:
andrea

Constructor Summary
SmEngineImpl()
           
 
Method Summary
 void fireEvent(org.state4j.sm.SmEvent event)
           
 org.state4j.sm.SmContext<T> getContext()
           
 java.lang.String getCurrentState()
           
 org.apache.commons.logging.Log getLogger()
           
 org.state4j.sm.SmState getStateMachine()
           
 T getTarget()
           
 boolean hasContext()
           
 boolean hasStateMachine()
           
 boolean hasTarget()
           
 void setContext(org.state4j.sm.SmContext<T> cntx)
           
 void setStateMachine(org.state4j.sm.SmState sm)
           
 void setTarget(T target)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmEngineImpl

public SmEngineImpl()
Method Detail

setTarget

public void setTarget(T target)
Specified by:
setTarget in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>

start

public void start()
Specified by:
start in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>

getStateMachine

public org.state4j.sm.SmState getStateMachine()

setStateMachine

public void setStateMachine(org.state4j.sm.SmState sm)

hasStateMachine

public boolean hasStateMachine()

getContext

public org.state4j.sm.SmContext<T> getContext()

setContext

public void setContext(org.state4j.sm.SmContext<T> cntx)

hasContext

public boolean hasContext()

getCurrentState

public java.lang.String getCurrentState()
Specified by:
getCurrentState in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>

fireEvent

public void fireEvent(org.state4j.sm.SmEvent event)
Specified by:
fireEvent in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>

getLogger

public org.apache.commons.logging.Log getLogger()

getTarget

public T getTarget()
Specified by:
getTarget in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>

hasTarget

public boolean hasTarget()
Specified by:
hasTarget in interface org.state4j.sm.SmEngine<T extends org.state4j.sm.SmTarget>


Copyright © 2006 . All Rights Reserved.