net.java.dev.moskito.core.timing
Class UpdateableWrapper

java.lang.Object
  extended by net.java.dev.moskito.core.timing.UpdateableWrapper
All Implemented Interfaces:
ITimerConsumer

final class UpdateableWrapper
extends Object
implements ITimerConsumer

This class implements an adapter to handle IUpdatable instances as ITimerConsumers.

Author:
dvayanu

Field Summary
private  IUpdateable delegate
          This is the delegate that will be called.
 
Constructor Summary
UpdateableWrapper(IUpdateable aDelegate)
          The constructor.
 
Method Summary
 void receiveTimerEvent(int ticks)
          Called by the Timer, with ticks count the entry was registered for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private IUpdateable delegate
This is the delegate that will be called.

Constructor Detail

UpdateableWrapper

UpdateableWrapper(IUpdateable aDelegate)
The constructor.

Parameters:
aDelegate - the delegate to use
Method Detail

receiveTimerEvent

public final void receiveTimerEvent(int ticks)
Description copied from interface: ITimerConsumer
Called by the Timer, with ticks count the entry was registered for.

Specified by:
receiveTimerEvent in interface ITimerConsumer
Parameters:
ticks - number of ticks for which this consumer was registered.
See Also:
ITimerConsumer.receiveTimerEvent(int)


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