fr.dyade.aaa.agent
Class WakeUpTask

java.lang.Object
  extended by java.util.TimerTask
      extended by fr.dyade.aaa.agent.WakeUpTask
All Implemented Interfaces:
java.lang.Runnable

public class WakeUpTask
extends java.util.TimerTask

Class used to schedule a wake up on a specific agent. A notification is sent to activate the agent.


Constructor Summary
WakeUpTask(AgentId id, java.lang.Class wakeUpNotClass, long period)
          Creates a new WakeUpTask and schedules it.
 
Method Summary
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WakeUpTask

public WakeUpTask(AgentId id,
                  java.lang.Class wakeUpNotClass,
                  long period)
Creates a new WakeUpTask and schedules it.

Parameters:
id - the id of the agent to wake up.
wakeUpNotClass - the notification which will be sent to the agent
period - period to wake up.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.