org.apache.agila.impl
Class EngineMessageImpl

java.lang.Object
  extended by org.apache.agila.impl.EngineMessageImpl
All Implemented Interfaces:
java.io.Serializable, EngineMessage

public class EngineMessageImpl
extends java.lang.Object
implements EngineMessage

Simpl impl of an engine message

Version:
$Id: $
Author:
Geir Magnusson Jr.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.agila.engine.EngineMessage
TYPE_HALT_EXECUTION, TYPE_MOVE_TOKEN
 
Constructor Summary
EngineMessageImpl()
           
 
Method Summary
 void addAppData(java.lang.String name, java.io.Serializable data)
          Adds application data to the engine messages
 java.util.Map getAppData()
           
 TokenID getCurrentTokenID()
           
 int getMessageType()
          gets the type of the message
 void setCurrentTokenID(TokenID tokenID)
          Sets the current TokenID for this message
 void setMessageType(int type)
          Sets the type of the message
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EngineMessageImpl

public EngineMessageImpl()
Method Detail

setMessageType

public void setMessageType(int type)
Description copied from interface: EngineMessage
Sets the type of the message

Specified by:
setMessageType in interface EngineMessage

getMessageType

public int getMessageType()
Description copied from interface: EngineMessage
gets the type of the message

Specified by:
getMessageType in interface EngineMessage
Returns:

setCurrentTokenID

public void setCurrentTokenID(TokenID tokenID)
Description copied from interface: EngineMessage
Sets the current TokenID for this message

Specified by:
setCurrentTokenID in interface EngineMessage

getCurrentTokenID

public TokenID getCurrentTokenID()
Specified by:
getCurrentTokenID in interface EngineMessage

addAppData

public void addAppData(java.lang.String name,
                       java.io.Serializable data)
Description copied from interface: EngineMessage
Adds application data to the engine messages

Specified by:
addAppData in interface EngineMessage

getAppData

public java.util.Map getAppData()
Specified by:
getAppData in interface EngineMessage

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.