JHPcte
Class PcteRunnable

java.lang.Object
  |
  +--JHPcte.PcteRunnable
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable

public abstract class PcteRunnable
extends java.lang.Object
implements java.lang.Runnable, java.awt.event.ActionListener

The base class for objects which want to be executed in a PcteProcess. pcteNotify is called in case of notification.


Constructor Summary
PcteRunnable()
           
 
Method Summary
 PcteProcess getProcessHandle()
          return a reference to the corresponding PcteProcess
abstract  void pcteNotify(PcteEventDescription e)
          Called when a notification has occured.
abstract  void run()
          Called when the PcteProcess is started.
 void setProcess(PcteProcess p)
          Initializes an instance variable that contains a reference to the process that executes the PcteRunnable, so that the process object can be accessed within the PcteRunnable instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

PcteRunnable

public PcteRunnable()
Method Detail

setProcess

public void setProcess(PcteProcess p)
Initializes an instance variable that contains a reference to the process that executes the PcteRunnable, so that the process object can be accessed within the PcteRunnable instance. The handling of the PcteProcess variable is in the responsibiliy of the application programmer.

getProcessHandle

public PcteProcess getProcessHandle()
return a reference to the corresponding PcteProcess

run

public abstract void run()
Called when the PcteProcess is started.
Specified by:
run in interface java.lang.Runnable

pcteNotify

public abstract void pcteNotify(PcteEventDescription e)
Called when a notification has occured.
Parameters:
eventDescription - PcteEventDescription which contains information about the event that caused the notification.