jade.core
Class TimerDispatcher

java.lang.Object
  extended byjade.core.TimerDispatcher
All Implemented Interfaces:
Runnable

public class TimerDispatcher
extends Object
implements Runnable

This class implements the JADE internal timing system. It should not be used by application developers.

Version:
$Date: 2006-04-13 16:57:28 +0200 (Thu, 13 Apr 2006) $ $Revision: 1.1 $
Author:
Giovanni Rimassa - Universita' di Parma

Field Summary
private  boolean active
           
private  Thread myThread
           
private static TimerDispatcher theDispatcher
           
private  Vector timers
           
 
Constructor Summary
TimerDispatcher()
           
 
Method Summary
 jade.core.Timer add(jade.core.Timer t)
           
private  boolean addTimer(jade.core.Timer t)
           
private  boolean emptySet()
           
static TimerDispatcher getTimerDispatcher()
           
 void remove(jade.core.Timer t)
           
 void run()
           
 void setThread(Thread t)
           
(package private) static void setTimerDispatcher(TimerDispatcher td)
           
(package private)  void start()
           
(package private)  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theDispatcher

private static TimerDispatcher theDispatcher

myThread

private Thread myThread

timers

private Vector timers

active

private boolean active
Constructor Detail

TimerDispatcher

public TimerDispatcher()
Method Detail

setThread

public void setThread(Thread t)

add

public jade.core.Timer add(jade.core.Timer t)

remove

public void remove(jade.core.Timer t)

emptySet

private boolean emptySet()

run

public void run()
Specified by:
run in interface Runnable

start

void start()

stop

void stop()

getTimerDispatcher

public static TimerDispatcher getTimerDispatcher()

setTimerDispatcher

static void setTimerDispatcher(TimerDispatcher td)

addTimer

private boolean addTimer(jade.core.Timer t)


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.