org.jcsp.net2
Class NetConnectionLocation

java.lang.Object
  extended by org.jcsp.net2.NetLocation
      extended by org.jcsp.net2.NetConnectionLocation
All Implemented Interfaces:
Serializable

public final class NetConnectionLocation
extends NetLocation
implements Serializable

Author:
Kevin
See Also:
Serialized Form

Constructor Summary
NetConnectionLocation(NodeID aNodeID, int aVConnN)
          Creates a new NetConnectionLocation
 
Method Summary
 NodeAddress getNodeAddress()
          Gets the NodeAddress part of the location
 NodeID getNodeID()
          Gets the NodeID part of the location
 int getVConnN()
          Gets the vconnn part of the location
static NetConnectionLocation parse(String str)
          Converts the string form of a NetConnectionLocation back into its object form
 String toString()
          Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN]
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetConnectionLocation

public NetConnectionLocation(NodeID aNodeID,
                             int aVConnN)
Creates a new NetConnectionLocation

Parameters:
aNodeID - The NodeID part of the location
aVConnN - The vconnn part of the location
Method Detail

getNodeID

public NodeID getNodeID()
Gets the NodeID part of the location

Specified by:
getNodeID in class NetLocation
Returns:
The NodeID part of the NetConnectionLocation

getNodeAddress

public NodeAddress getNodeAddress()
Gets the NodeAddress part of the location

Specified by:
getNodeAddress in class NetLocation
Returns:
The NodeAddress part of the NetConnectionLocation

getVConnN

public int getVConnN()
Gets the vconnn part of the location

Returns:
The VConnN part of the NetConnectionLocation

toString

public String toString()
Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN]

Overrides:
toString in class Object
Returns:
The String form of the NetConnectionLocation

parse

public static NetConnectionLocation parse(String str)
Converts the string form of a NetConnectionLocation back into its object form

Parameters:
str - The string representation of a NetConnectionLocation
Returns:
A new NetConnectionLocation created from the String representation


Copyright © 1996-2012. All Rights Reserved.