Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

alice.tuplemedium
Class ObservableEvent  view ObservableEvent download ObservableEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byalice.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
 
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

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

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