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
private static boolean DEBUG
          Determines whether debug info to be sent to debug-server.
private  boolean isActive
          Indicates whether this client is active or not.
private  CapabilitySet nodeCaps
          The nodes capabilities - can change.
private  MobilityApplicationActor parent
          Reference to parent.
private  long timer
          Interval between checks.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
Determines whether debug info to be sent to debug-server.

See Also:
Constant Field Values

timer

private long timer
Interval between checks.


nodeCaps

private CapabilitySet nodeCaps
The nodes capabilities - can change.


parent

private MobilityApplicationActor parent
Reference to parent.


isActive

private boolean isActive
Indicates whether this client is active or not.

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


The Telematics Architecture for Plug-and-Play Systems (TAPAS) is a research project undertaken by the Norwegian University of Science and Technology's Telematics department which aims at developing an architecture for network-based service systems with a) flexibility and adaptability, b) robustness and survivability, and c) QoS awareness and resource control.

More information can be found at the project's homepage at http://tapas.item.ntnu.no and the project manager, Professor Finn Arve Aagesen, can be reached at finn.arve.aagesen@item.ntnu.no.