Package org.jcsp.net2
Class NetConnectionLocation
java.lang.Object
org.jcsp.net2.NetLocation
org.jcsp.net2.NetConnectionLocation
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NodeID
The NodeID portion of the locationprivate static final long
The SUID representing this classprivate final int
The vconnn portion of the location -
Constructor Summary
ConstructorsConstructorDescriptionNetConnectionLocation
(NodeID aNodeID, int aVConnN) Creates a new NetConnectionLocation -
Method Summary
Modifier and TypeMethodDescriptionGets the NodeAddress part of the locationGets the NodeID part of the locationint
Gets the vconnn part of the locationstatic NetConnectionLocation
Converts the string form of a NetConnectionLocation back into its object formtoString()
Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN]
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe SUID representing this class- See Also:
-
nodeID
The NodeID portion of the location -
vconnn
private final int vconnnThe vconnn portion of the location
-
-
Constructor Details
-
NetConnectionLocation
Creates a new NetConnectionLocation- Parameters:
aNodeID
- The NodeID part of the locationaVConnN
- The vconnn part of the location
-
-
Method Details
-
getNodeID
Gets the NodeID part of the location- Specified by:
getNodeID
in classNetLocation
- Returns:
- The NodeID part of the NetConnectionLocation
-
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
Converts the NetConnectionLocation object into a string representation of the form nconnl://[NodeID]/[VConnN] -
parse
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
-