net.sf.neem.impl
Class Periodic

java.lang.Object
  extended by net.sf.neem.impl.Periodic
All Implemented Interfaces:
java.lang.Runnable

public abstract class Periodic
extends java.lang.Object
implements java.lang.Runnable

A stopable and restartable periodic activity. This uses the scheduling mechanism in the transport layer.


Constructor Summary
Periodic(java.util.Random rand, Transport trans, int interval)
           
 
Method Summary
 void doIt()
           
 int getInterval()
           
 void setInterval(int interval)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

Periodic

public Periodic(java.util.Random rand,
                Transport trans,
                int interval)
Method Detail

start

public void start()

stop

public void stop()

doIt

public void doIt()

getInterval

public int getInterval()

setInterval

public void setInterval(int interval)


Copyright © 2005 University of Minho, Portugal. All Rights Reserved.