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

java.lang.Object
  extended by org.state4j.sm.SmContextBaseImpl<T>
All Implemented Interfaces:
java.lang.Cloneable, org.state4j.sm.SmContext<T>

public class SmContextBaseImpl<T extends org.state4j.sm.SmTarget>
extends java.lang.Object
implements org.state4j.sm.SmContext<T>

Author:
andrea

Field Summary
(package private)  org.apache.commons.logging.Log logger
           
 
Constructor Summary
SmContextBaseImpl()
           
 
Method Summary
 void addAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)
           
 java.lang.Object clone()
           
 void entryInState(org.state4j.sm.SmState state)
           
 void exitFromState(org.state4j.sm.SmState state)
           
 java.lang.String getAttribute(java.lang.String key)
           
 org.state4j.sm.SmEvent getCurrentEvent()
           
 org.state4j.sm.SmState getCurrentState()
           
 T getTarget()
           
 boolean hasAttribute(java.lang.String key)
           
 boolean hasCurrentEvent()
           
 boolean hasCurrentState()
           
 boolean hasTarget()
           
 void setAttribute(java.lang.String key, java.lang.String value)
           
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)
           
 void setCurrentEvent(org.state4j.sm.SmEvent event)
           
 void setCurrentState(org.state4j.sm.SmState state)
           
 void setTarget(T target)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

org.apache.commons.logging.Log logger
Constructor Detail

SmContextBaseImpl

public SmContextBaseImpl()
Method Detail

entryInState

public void entryInState(org.state4j.sm.SmState state)
Specified by:
entryInState in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

exitFromState

public void exitFromState(org.state4j.sm.SmState state)
Specified by:
exitFromState in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

setCurrentState

public void setCurrentState(org.state4j.sm.SmState state)
Specified by:
setCurrentState in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

getCurrentEvent

public org.state4j.sm.SmEvent getCurrentEvent()
Specified by:
getCurrentEvent in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

setCurrentEvent

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

hasCurrentEvent

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

getCurrentState

public org.state4j.sm.SmState getCurrentState()
Specified by:
getCurrentState in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

hasCurrentState

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

setTarget

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

getTarget

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

hasTarget

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

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)
Specified by:
setAttribute in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

getAttribute

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

hasAttribute

public boolean hasAttribute(java.lang.String key)
Specified by:
hasAttribute in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

addAttributes

public void addAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)
Specified by:
addAttributes in interface org.state4j.sm.SmContext<T extends org.state4j.sm.SmTarget>


Copyright © 2006 . All Rights Reserved.