jsim.jmessage
Class EventMap

java.lang.Object
  extended by jsim.jmessage.EventMap

public class EventMap
extends java.lang.Object

This class contains all the events supported by JSIM.


Field Summary
static long CHANGE_EVT
          An event from a model agent to a model bean to reflect the changes made by the user to the model properties back to the model itself.
static long CHANGED_EVT
          An event from a model bean to notify a model agent that the changes to the model have been successfully updated.
static long INFORM_EVT
          An event from a model bean to inform a model agent about the properties of the model represented by the model bean.
static long INJECT_EVT
          An event from a model bean to another model bean for the purpose of simulation federation.
static long INQUIRE_EVT
          An event from a model agent to a model bean to inquire about the the properties of the model represented by the model bean.
static long INSTRUCT_EVT
          An event from the scenario agent to model agents participating in a simulation federation.
static long QUERY_EVT
          An event from the scenario agent to the database agent carrying a SQL query statement.
static long REPORT_EVT
          An event from a model bean to a model agent carrying interim or final simulation result.
static long RESULT_EVT
          An event from the database agent to the scenario agent carrying a query result.
static long SIMULATE_EVT
          An event from a model agent to a model bean containing instructions about how the simulation is to be executed.
static long STORE_EVT
          An event from a model agent to the database agent carrying data to to be stored in the database.
 
Constructor Summary
EventMap()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INJECT_EVT

public static final long INJECT_EVT
An event from a model bean to another model bean for the purpose of simulation federation. (Message type: Inject)

See Also:
Constant Field Values

INQUIRE_EVT

public static final long INQUIRE_EVT
An event from a model agent to a model bean to inquire about the the properties of the model represented by the model bean. (Message type: Inquire)

See Also:
Constant Field Values

INFORM_EVT

public static final long INFORM_EVT
An event from a model bean to inform a model agent about the properties of the model represented by the model bean. (Message type: ModelProperties)

See Also:
Constant Field Values

CHANGE_EVT

public static final long CHANGE_EVT
An event from a model agent to a model bean to reflect the changes made by the user to the model properties back to the model itself. (Message type: ModelProperties)

See Also:
Constant Field Values

CHANGED_EVT

public static final long CHANGED_EVT
An event from a model bean to notify a model agent that the changes to the model have been successfully updated. (Message type: NONE)

See Also:
Constant Field Values

SIMULATE_EVT

public static final long SIMULATE_EVT
An event from a model agent to a model bean containing instructions about how the simulation is to be executed. (Message type: Simulate)

See Also:
Constant Field Values

REPORT_EVT

public static final long REPORT_EVT
An event from a model bean to a model agent carrying interim or final simulation result. (Message type: InterimReport/FinalReport)

See Also:
Constant Field Values

INSTRUCT_EVT

public static final long INSTRUCT_EVT
An event from the scenario agent to model agents participating in a simulation federation. It carries a global ID for the scenario and instructions for all participating model agents to start the simulation. The simulation result collected by each of the model agent can later be stored in the database using the same scenario ID. (Message type: Instruct)

See Also:
Constant Field Values

STORE_EVT

public static final long STORE_EVT
An event from a model agent to the database agent carrying data to to be stored in the database. (Message type: Store)

See Also:
Constant Field Values

QUERY_EVT

public static final long QUERY_EVT
An event from the scenario agent to the database agent carrying a SQL query statement. (Message type: Query)

See Also:
Constant Field Values

RESULT_EVT

public static final long RESULT_EVT
An event from the database agent to the scenario agent carrying a query result. (Message type: Result)

See Also:
Constant Field Values
Constructor Detail

EventMap

public EventMap()