Package org.jcsp.net2
Class NetConnectionLocation
- java.lang.Object
-
- org.jcsp.net2.NetLocation
-
- org.jcsp.net2.NetConnectionLocation
-
- All Implemented Interfaces:
java.io.Serializable
public final class NetConnectionLocation extends NetLocation implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private NodeID
nodeID
The NodeID portion of the locationprivate static long
serialVersionUID
The SUID representing this classprivate int
vconnn
The vconnn portion of the location
-
Constructor Summary
Constructors Constructor Description NetConnectionLocation(NodeID aNodeID, int aVConnN)
Creates a new NetConnectionLocation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAddress
getNodeAddress()
Gets the NodeAddress part of the locationNodeID
getNodeID()
Gets the NodeID part of the locationint
getVConnN()
Gets the vconnn part of the locationstatic NetConnectionLocation
parse(java.lang.String str)
Converts the string form of a NetConnectionLocation back into its object formjava.lang.String
toString()
Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN]
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The SUID representing this class- See Also:
- Constant Field Values
-
nodeID
private final NodeID nodeID
The NodeID portion of the location
-
vconnn
private final int vconnn
The vconnn portion of the location
-
-
Constructor Detail
-
NetConnectionLocation
public NetConnectionLocation(NodeID aNodeID, int aVConnN)
Creates a new NetConnectionLocation- Parameters:
aNodeID
- The NodeID part of the locationaVConnN
- The vconnn part of the location
-
-
Method Detail
-
getNodeID
public NodeID getNodeID()
Gets the NodeID part of the location- Specified by:
getNodeID
in classNetLocation
- Returns:
- The NodeID part of the NetConnectionLocation
-
getNodeAddress
public NodeAddress getNodeAddress()
Gets the NodeAddress part of the location- Specified by:
getNodeAddress
in classNetLocation
- 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 java.lang.String toString()
Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN]- Overrides:
toString
in classjava.lang.Object
- Returns:
- The String form of the NetConnectionLocation
-
parse
public static NetConnectionLocation parse(java.lang.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
-
-