net.java.dev.moskito.core.timing.timer
Class TimerServiceImpl.TimerObject

java.lang.Object
  extended by net.java.dev.moskito.core.timing.timer.TimerServiceImpl.TimerObject
Enclosing class:
TimerServiceImpl

 class TimerServiceImpl.TimerObject
extends Object

The Holder class for the information of upcoming events.

Author:
hwa
Created:
12. Februar 2001

Field Summary
(package private)  int amount
          Amount for this timer object to sleep.
(package private)  List<ITimerConsumer> consumers
          Receiver of this Timer Event.
(package private)  int remaining
          Amount of time remaining for activation
 
Constructor Summary
TimerServiceImpl.TimerObject(int amount)
          Default constructor.
 
Method Summary
 void addConsumer(ITimerConsumer rec)
          Adds a new receiver to an existing TimerObject.
 boolean equals(Object o)
          For indexOf in java.util.Vector
 void removeConsumer(ITimerConsumer rec)
          Removes the given receiver from this TimerObject.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remaining

int remaining
Amount of time remaining for activation


amount

int amount
Amount for this timer object to sleep.


consumers

List<ITimerConsumer> consumers
Receiver of this Timer Event.

Constructor Detail

TimerServiceImpl.TimerObject

public TimerServiceImpl.TimerObject(int amount)
Default constructor.

Parameters:
amount - Description of Parameter
Method Detail

addConsumer

public void addConsumer(ITimerConsumer rec)
Adds a new receiver to an existing TimerObject.

Parameters:
rec - The feature to be added to the Receiver attribute

removeConsumer

public void removeConsumer(ITimerConsumer rec)
Removes the given receiver from this TimerObject. If this receiver doesn't exist, the method call will be simply ignored.

Parameters:
rec - Description of Parameter

equals

public boolean equals(Object o)
For indexOf in java.util.Vector

Overrides:
equals in class Object
Parameters:
o - Description of Parameter
Returns:
Description of the Returned Value


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework