alice.tuplemedium
Class ObservableEvent

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

See Also:
ObservableEventListener, TupleCentreVM, Serialized Form

Field Summary
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
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ObservableEvent(java.lang.Object source, int type_)
           
ObservableEvent(java.lang.Object source, int type_, java.lang.Object arg_)
           
 
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
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NEWSTATE

public static final int TYPE_NEWSTATE
constant tag identifying new state reached by tuple centre VM

TYPE_REACTIONOK

public static final int TYPE_REACTIONOK
constant tag identifying a succesfull reaction happened inside tuple centre VM

TYPE_REACTIONFAIL

public static final int TYPE_REACTIONFAIL
constant tag identifying a failed reaction happened inside tuple centre VM
Constructor Detail

ObservableEvent

public ObservableEvent(java.lang.Object source,
                       int type_)

ObservableEvent

public ObservableEvent(java.lang.Object source,
                       int type_,
                       java.lang.Object arg_)
Method Detail

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