|
|||||||||
Home >> All >> alice >> [ tuplemedium overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
alice.tuplemedium
Class Event

java.lang.Objectalice.tuplemedium.Event
- All Implemented Interfaces:
- java.io.Serializable
- public class Event
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
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.
- Version:
- 1.0
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()
Convert this Object to a human-readable String. |
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()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null
, string concatenation will instead use"null"
.The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode())
.
|
|||||||||
Home >> All >> alice >> [ tuplemedium overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |