MicroTAPAS
Class GAI

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

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

See Also:
Serialized Form

Field Summary
private  java.lang.String address
          Holds the unique IP-address for a node
private static boolean initialized
          Unique ID
private  java.lang.String name
          Unique Actor name
private  java.lang.String node
          Node/PNES name; there can only be one PNES per node
private  java.lang.String pnes
          PNES name
private  java.lang.String type
          Type of the GAI; can be any of: "PNES", "Actor", "RoleSession"?
 
Constructor Summary
GAI(GAI g)
          Constructs a new GAI object from the given GAI
GAI(java.lang.String pGAIString)
          Constructs a new GAI object from the given string parameter
GAI(java.lang.String pType, java.lang.String pNode, java.lang.String pPnes, java.lang.String pName)
          Constructs a new GAI object from the four given string parameters
 
Method Summary
 boolean equalTo(GAI pGAI)
          Tests equality of this GAI to another one
 java.lang.String getAddress()
          Returns the address of this address.
 java.lang.String getGAI()
          Utility to retrun the GAI address string representation of this GAI object
 java.lang.String getName()
          Returns the name of this address.
 java.lang.String getNode()
          Returns the node of this address.
 java.lang.String getPNES()
          Returns the pnes of this address.
 GAI getPNESGAI()
          Returns the address of the PNES represented by this address.
 java.lang.String getType()
          Returns the type of this address.
private  void init(java.lang.String pType, java.lang.String pNode, java.lang.String pPnes, java.lang.String pName)
          Common private method to initialize this instance
 boolean pluggable(GAI pLocation)
          Tests pluggability of this GAI into another one
static GAI String2GAI(java.lang.String pS)
          Deprecated. Replaced by stringToGAI(String)
static GAI stringToGAI(java.lang.String pS)
          Creates a new GAI object with the GAI address being compiled from parameter pS
 java.lang.String toString()
          Utility to retrun the GAI address string representation of this GAI object
static java.lang.String toString(GAI obj)
          Utility to retrun the GAI address string representation of this GAI object
 void updateNode()
          Deprecated. Replaced by updateNode(String, String)
 void updateNode(java.lang.String oldNode, java.lang.String newNode)
          Method that is used to update the node/address part of this GAI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private java.lang.String type
Type of the GAI; can be any of: "PNES", "Actor", "RoleSession"?


node

private java.lang.String node
Node/PNES name; there can only be one PNES per node


address

private java.lang.String address
Holds the unique IP-address for a node


pnes

private java.lang.String pnes
PNES name


name

private java.lang.String name
Unique Actor name


initialized

private static boolean initialized
Unique ID

Constructor Detail

GAI

public GAI(java.lang.String pType,
           java.lang.String pNode,
           java.lang.String pPnes,
           java.lang.String pName)
Constructs a new GAI object from the four given string parameters


GAI

public GAI(GAI g)
Constructs a new GAI object from the given GAI


GAI

public GAI(java.lang.String pGAIString)
Constructs a new GAI object from the given string parameter

Method Detail

init

private void init(java.lang.String pType,
                  java.lang.String pNode,
                  java.lang.String pPnes,
                  java.lang.String pName)
Common private method to initialize this instance


updateNode

public void updateNode()
Deprecated. Replaced by updateNode(String, String)

Method that is used to update the node/address part of this GAI


updateNode

public void updateNode(java.lang.String oldNode,
                       java.lang.String newNode)
Method that is used to update the node/address part of this GAI. Only updates node if the current node is equal to the old node.

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

String2GAI

public static GAI String2GAI(java.lang.String pS)
Deprecated. Replaced by stringToGAI(String)

Creates a new GAI object with the GAI address being compiled from parameter pS

Parameters:
pS - The new address that shall be assigned to the new GAI object
Returns:
The new GAI object

stringToGAI

public static GAI stringToGAI(java.lang.String pS)
Creates a new GAI object with the GAI address being compiled from parameter pS

Parameters:
pS - The new address that shall be assigned to the new GAI object
Returns:
The new GAI object

getGAI

public java.lang.String getGAI()
Utility to retrun the GAI address string representation of this GAI object

Returns:
The GAI address string representation of this GAI object

toString

public java.lang.String toString()
Utility to retrun the GAI address string representation of this GAI object

Overrides:
toString in class java.lang.Object
Returns:
The GAI address string representation of this GAI object

toString

public static java.lang.String toString(GAI obj)
Utility to retrun the GAI address string representation of this GAI object

Returns:
The GAI address string representation of this GAI object

getPNESGAI

public GAI getPNESGAI()
Returns the address of the PNES represented by this address.

Returns:
The address of the PNES represented by this address.

getType

public java.lang.String getType()
Returns the type of this address.

Returns:
The type of this address.

getNode

public java.lang.String getNode()
Returns the node of this address.

Returns:
The node of this address.

getAddress

public java.lang.String getAddress()
Returns the address of this address.

Returns:
The address of this address.

getPNES

public java.lang.String getPNES()
Returns the pnes of this address.

Returns:
The pnes of this address.

getName

public java.lang.String getName()
Returns the name of this address.

Returns:
The name of this address.

equalTo

public boolean equalTo(GAI pGAI)
Tests equality of this GAI to another one

Parameters:
pGAI - The other GAI to test for equality
Returns:
true if this GAI is equal to pGAI

pluggable

public boolean pluggable(GAI pLocation)
Tests pluggability of this GAI into another one

Parameters:
pLocation - The other GAI to test for pluggability
Returns:
true if this actor can be plugged in to pLocation


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.