Class semper.SemperClient.SCTimer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.SemperClient.SCTimer

java.lang.Object
   |
   +----semper.SemperClient.SCTimer

public class SCTimer
extends Object
implements Runnable
This class defines methods for the implementation of an external interruptable timer.
Author:
Petros Pantis, Kostas Tzelepis
See Also:
Run

Variable Index

 o monitorProc

Constructor Index

 o SCTimer(SCMonitor)
Constructor for the SCTimer object

Method Index

 o run()
This method calls implements the timer loop
 o starting()
Starts the timer thread
 o WaitTimer(long)
Waits until an internal or external notification message will occur
 o WakeUp()
Called from the currently running thread in order to interrupt the counting

Variables

 o monitorProc
  public SCMonitor monitorProc

Constructors

 o SCTimer
  public SCTimer(SCMonitor mProc)
Constructor for the SCTimer object
Parameters:
mProc - the reference to the Monitor object
See Also:
start

Methods

 o WakeUp
  public synchronized boolean WakeUp()
Called from the currently running thread in order to interrupt the counting
Parameters:
flag - the execution state for the current thread proccess
obj - the reference to a Socket object or null
See Also:
run
 o WaitTimer
  public synchronized void WaitTimer(long time)
Waits until an internal or external notification message will occur
Parameters:
time - the timeout
 o starting
  public void starting()
Starts the timer thread
 o run
  public void run()
This method calls implements the timer loop

All Packages  Class Hierarchy  This Package  Previous  Next  Index