MicroTAPAS.mobility
Class CapsMonitorAgent

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--MicroTAPAS.mobility.CapsMonitorAgent
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class CapsMonitorAgent
extends java.lang.Thread
implements java.io.Serializable

Monitor agent responsible for monitoring the offered capabilities with the required capabilities of an actor. If the offered caps. are found to be 'less' than the required, an actorMove procedure will be set in motion.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CapsMonitorAgent(MobilityApplicationActor pParent)
          Constructor.
 
Method Summary
 void destroy()
          Destroy method
 void monitorLoop()
          Main procedure in this thread that takes care of monitoring offered vs required capabilities.
 void run()
          Run method that starts this thread
 Item status()
          Status report of MicroPingClient in Item hierarchy of information elements.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CapsMonitorAgent

public CapsMonitorAgent(MobilityApplicationActor pParent)
Constructor.

Parameters:
pParent - Reference to the parent object.
Method Detail

run

public void run()
Run method that starts this thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

destroy

public void destroy()
Destroy method

Overrides:
destroy in class java.lang.Thread

monitorLoop

public void monitorLoop()
                 throws java.lang.Exception
Main procedure in this thread that takes care of monitoring offered vs required capabilities.

Throws:
Excption
java.lang.Exception

status

public Item status()
Status report of MicroPingClient in Item hierarchy of information elements.

Returns:
Hierarchy of Item information elements