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

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.
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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