alice.tuplemedium
Class Event

java.lang.Object
  |
  +--alice.tuplemedium.Event
All Implemented Interfaces:
java.io.Serializable

public class Event
extends java.lang.Object
implements java.io.Serializable

Represents internal events of the tuple centre virtual machine According to the tuple centre model, an event is characterised by the operation which caused the event, the tuple or the tuple template as information content of the operation, the direction of the event (from agent to the tuple centre, or viceversa), the identification of the agent responsible of the operation, the identification of the tuple centre where the event has happened.

See Also:
EventOperation, EventDirection, TupleCentreVM, Serialized Form

Field Summary
 int direction
          the direction of the event (from tuple centre to agent or viceversa)
 java.lang.Long id
          a unique id identifying the event
 AgentId idAgent
          the identifier of the agent involved in the event
 TupleCentreId idTupleCentre
          the identifier of the tuple centre where the event took place
 EventOperation operation
          the type of the operation which caused the event
 TupleTemplate template
          if speficied, the information template content of the operation
 Tuple tuple
          if specified, the information content of the operation
 
Constructor Summary
Event()
           
Event(java.lang.Long myid, AgentId aid, EventOperation op, TupleCentreId tid, int evd, Tuple t, TupleTemplate templ)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

idAgent

public AgentId idAgent
the identifier of the agent involved in the event

idTupleCentre

public TupleCentreId idTupleCentre
the identifier of the tuple centre where the event took place

direction

public int direction
the direction of the event (from tuple centre to agent or viceversa)

tuple

public Tuple tuple
if specified, the information content of the operation

template

public TupleTemplate template
if speficied, the information template content of the operation

operation

public EventOperation operation
the type of the operation which caused the event

id

public java.lang.Long id
a unique id identifying the event
Constructor Detail

Event

public Event()

Event

public Event(java.lang.Long myid,
             AgentId aid,
             EventOperation op,
             TupleCentreId tid,
             int evd,
             Tuple t,
             TupleTemplate templ)
Method Detail

toString

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