MicroTAPAS.mobility
Class Node

java.lang.Object
  |
  +--MicroTAPAS.mobility.Node
All Implemented Interfaces:
java.io.Serializable

public class Node
extends java.lang.Object
implements java.io.Serializable

This class is a representation of a node in the MicroTAPAS system.

See Also:
Serialized Form

Field Summary
 GAI dirGAI
          Address of current director.
static int MA
          MobilityAgent node type variable.
 GAI maGAI
          Current MA - changes as the node is moved around.
static int MM
          MobilityManager node type variable.
 GAI mmGAI
          Current MM - changes as the node is moved around.
 java.lang.String nodeID
          Uniquie ID of this node.
static int UNDEFINED
          Undefined node type variable.
 
Constructor Summary
Node()
          Constructor
 
Method Summary
 boolean actorMove(java.lang.String aID, GAI oldGAI, GAI newGAI)
          Method to delete an actor entry in the actor registry when an actor has moved to a different node.
 RequestResult addActor(RequestPars pRP)
          Adds an actor (really ActorPlugInReq) to to the actor register.
 Item getActorStatus()
          Status report of registered actors in this entity in Item hierarchy of information elements.
 java.util.Vector getAllActorGAI()
          Returns a vector of all registered actors GAI's.
 CapabilitySet getCaps()
          Returns the CapabilitySet of this node.
 boolean getConnected()
          Returns whether this node is connected or not.
 int getType()
           
 RequestResult removeActor(RequestPars pRP)
          Removes a previously added actor from the actor registry.
 void setConnected(boolean pIsConnected)
          Sets the connection status of this node.
 Item status()
          Status report of this entity in Item hierarchy of information elements.
 void terminalMove(java.lang.String oldNode, java.lang.String newNode)
          Updates this object whenever the terminal is moved from one node to another.
 java.lang.String toString()
          Overloaded toString mehtod.
 void updateCapabilities()
          Updates the node capabilities for this node by reading them from file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
Undefined node type variable.

See Also:
Constant Field Values

MM

public static final int MM
MobilityManager node type variable.

See Also:
Constant Field Values

MA

public static final int MA
MobilityAgent node type variable.

See Also:
Constant Field Values

nodeID

public java.lang.String nodeID
Uniquie ID of this node.


maGAI

public GAI maGAI
Current MA - changes as the node is moved around.


mmGAI

public GAI mmGAI
Current MM - changes as the node is moved around.


dirGAI

public GAI dirGAI
Address of current director.

Constructor Detail

Node

public Node()
Constructor

Method Detail

setConnected

public void setConnected(boolean pIsConnected)
Sets the connection status of this node. This method is used by the MicroTAPAS.pingClint to set the connection status of the node.

Parameters:
pIsConnected - True if the node is connected, false otherwise.

getConnected

public boolean getConnected()
Returns whether this node is connected or not.

Returns:
True if the node is connected, false otherwise.

getCaps

public CapabilitySet getCaps()
Returns the CapabilitySet of this node.

Returns:
The node's capability set.

updateCapabilities

public void updateCapabilities()
Updates the node capabilities for this node by reading them from file.


terminalMove

public void terminalMove(java.lang.String oldNode,
                         java.lang.String newNode)
Updates this object whenever the terminal is moved from one node to another.

Parameters:
oldNode - The old node
newNode - The new node

addActor

public RequestResult addActor(RequestPars pRP)
Adds an actor (really ActorPlugInReq) to to the actor register.

Parameters:
pRP - TAPAS-style request parameters.
Returns:
TAPAS-style request result.

removeActor

public RequestResult removeActor(RequestPars pRP)
Removes a previously added actor from the actor registry.

Parameters:
pRP - TAPAS-style request parameters.
Returns:
TAPAS-style request result.

getAllActorGAI

public java.util.Vector getAllActorGAI()
Returns a vector of all registered actors GAI's.

Returns:
A vector containing the String representation GAI of all registered actors.

actorMove

public boolean actorMove(java.lang.String aID,
                         GAI oldGAI,
                         GAI newGAI)
Method to delete an actor entry in the actor registry when an actor has moved to a different node.

Parameters:
aID - The unique actor identificator.
oldGAI - The old GAI of the actor.
newGAI - The new GAI of the actor.
Returns:
Success indicator

getType

public int getType()

toString

public java.lang.String toString()
Overloaded toString mehtod.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

status

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

Returns:
Hierarchy of Item information elements

getActorStatus

public Item getActorStatus()
Status report of registered actors in this entity in Item hierarchy of information elements.

Returns:
Hierarchy of Item information elements