java.lang.Object
java.util.EventObject
alice.tuplemedium.ObservableEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ObservableEvent
- extends java.util.EventObject
Represents observable (by inspectors) events happening
inside tuple centre virtual machine
- Version:
- 1.0
Field Summary |
private java.lang.Object |
arg
auxiliary information about the event |
private long |
time
virtual machine time at which the event has been observed |
private int |
type
the type of the vent happened |
static int |
TYPE_NEWSTATE
constant tag identifying new state reached by tuple centre VM |
static int |
TYPE_REACTIONFAIL
constant tag identifying a failed reaction happened inside tuple centre VM |
static int |
TYPE_REACTIONOK
constant tag identifying a succesfull reaction happened inside tuple centre VM |
Method Summary |
java.lang.Object |
getArg()
Gets the auxiliary information provided by the event |
long |
getTime()
Gets the time at which the event has been observed inside the
tuple centre VM |
int |
getType()
Gets the type of the event |
TYPE_NEWSTATE
public static final int TYPE_NEWSTATE
- constant tag identifying new state reached by tuple centre VM
- See Also:
- Constant Field Values
TYPE_REACTIONOK
public static final int TYPE_REACTIONOK
- constant tag identifying a succesfull reaction happened inside tuple centre VM
- See Also:
- Constant Field Values
TYPE_REACTIONFAIL
public static final int TYPE_REACTIONFAIL
- constant tag identifying a failed reaction happened inside tuple centre VM
- See Also:
- Constant Field Values
time
private long time
- virtual machine time at which the event has been observed
type
private int type
- the type of the vent happened
arg
private java.lang.Object arg
- auxiliary information about the event
ObservableEvent
public ObservableEvent(java.lang.Object source,
int type_)
ObservableEvent
public ObservableEvent(java.lang.Object source,
int type_,
java.lang.Object arg_)
getTime
public long getTime()
- Gets the time at which the event has been observed inside the
tuple centre VM
getType
public int getType()
- Gets the type of the event
getArg
public java.lang.Object getArg()
- Gets the auxiliary information provided by the event