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

Quick Search    Search Deep

alice.tuplemedium.runtime
Class InspectorListener  view InspectorListener download InspectorListener.java

java.lang.Object
  extended byalice.tuplemedium.runtime.InspectorListener
All Implemented Interfaces:
java.util.EventListener, alice.tuplemedium.ObservableEventListener, java.lang.Runnable

public class InspectorListener
extends java.lang.Object
implements alice.tuplemedium.ObservableEventListener, java.lang.Runnable

this is inspector active acceptor class receiving communication events from user proxy and dispatching them to the referenced tuple centre virtual machine.

The interaction is bidirectional: output events from tuple centre vm are dispatched to user proxy.

the inspector acceptor observe specific tuple centre events according to the current inspector protocol

the inspector implements ObservableEventListener in order to observe tuple centre observable events


Field Summary
(package private)  alice.tuplemedium.TupleCentreVM core
          reference to the observed tuple centre
(package private)  java.io.ObjectInputStream inStream
           
(package private)  boolean nextStep
           
(package private)  java.io.ObjectOutputStream outStream
           
(package private)  InspectorProtocol protocol
          current observation protocol
(package private)  boolean shutdown
           
(package private)  java.net.Socket socket
          channel with remote inspector proxy
 
Constructor Summary
InspectorListener(java.net.Socket s, java.io.ObjectOutputStream out, java.io.ObjectInputStream in, alice.tuplemedium.TupleCentreVM core_, InspectorProtocol protocol_)
           
 
Method Summary
 void getSnapshot(GetSnapshotMsg m)
          get a tuple centre set (T set, W set,...) snapshot
 void nextStep(NextStepMsg msg)
          ask a new step for a tuple centre vm during tracing
 void onObservableEvent(alice.tuplemedium.ObservableEvent ev)
          notifying service invoked by the tuple centre virtual machine when a new observable event has been produced
 void reset(ResetMsg msg)
          reset the tuple centre VM
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void setEventSet(SetEventSetMsg m)
          set a new Wn event set
 void setProtocol(SetProtocolMsg msg)
          setting new observation protocol
 void setTupleSet(SetTupleSetMsg m)
          set a new tuple set
 void shutdown(ShutdownMsg msg)
          shutdown the inspector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

java.net.Socket socket
channel with remote inspector proxy


outStream

java.io.ObjectOutputStream outStream

inStream

java.io.ObjectInputStream inStream

core

alice.tuplemedium.TupleCentreVM core
reference to the observed tuple centre


protocol

InspectorProtocol protocol
current observation protocol


nextStep

boolean nextStep

shutdown

boolean shutdown
Constructor Detail

InspectorListener

public InspectorListener(java.net.Socket s,
                         java.io.ObjectOutputStream out,
                         java.io.ObjectInputStream in,
                         alice.tuplemedium.TupleCentreVM core_,
                         InspectorProtocol protocol_)
Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

onObservableEvent

public void onObservableEvent(alice.tuplemedium.ObservableEvent ev)
notifying service invoked by the tuple centre virtual machine when a new observable event has been produced

Specified by:
onObservableEvent in interface alice.tuplemedium.ObservableEventListener

setProtocol

public void setProtocol(SetProtocolMsg msg)
setting new observation protocol


getSnapshot

public void getSnapshot(GetSnapshotMsg m)
get a tuple centre set (T set, W set,...) snapshot


reset

public void reset(ResetMsg msg)
reset the tuple centre VM


nextStep

public void nextStep(NextStepMsg msg)
ask a new step for a tuple centre vm during tracing


setTupleSet

public void setTupleSet(SetTupleSetMsg m)
set a new tuple set


setEventSet

public void setEventSet(SetEventSetMsg m)
set a new Wn event set


shutdown

public void shutdown(ShutdownMsg msg)
shutdown the inspector