org.apache.agila.engine
Interface EngineMessage

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
EngineMessageImpl

public interface EngineMessage
extends java.io.Serializable

Message passed to the engine to direct a change of state for an instance

Version:
$Id: $
Author:
Geir Magnusson Jr.

Field Summary
static int TYPE_HALT_EXECUTION
           
static int TYPE_MOVE_TOKEN
           
 
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
 

Field Detail

TYPE_MOVE_TOKEN

static final int TYPE_MOVE_TOKEN
See Also:
Constant Field Values

TYPE_HALT_EXECUTION

static final int TYPE_HALT_EXECUTION
See Also:
Constant Field Values
Method Detail

setMessageType

void setMessageType(int type)
Sets the type of the message

Parameters:
type -

getMessageType

int getMessageType()
gets the type of the message

Returns:

setCurrentTokenID

void setCurrentTokenID(TokenID tokenID)
Sets the current TokenID for this message

Parameters:
tokenID -

getCurrentTokenID

TokenID getCurrentTokenID()

addAppData

void addAppData(java.lang.String name,
                java.io.Serializable data)
Adds application data to the engine messages

Parameters:
name -
data -

getAppData

java.util.Map getAppData()


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