Package org.jcsp.net
Class NodeUIImpl
- java.lang.Object
-
- org.jcsp.net.NodeUI
-
- org.jcsp.net.NodeUIImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
public class NodeUIImpl extends NodeUI
This is a default implementation forNodeUIthat is used if no other implementation is supplied.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeUIImpl()Constructor which is used as standard to create a newNodeUIImplobject.NodeUIImpl(java.lang.String s)A constructor which takes aStringthat should be in the format of that returned by thegetImplStringForm()method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckEqual(NodeUI other)Compares anotherNodeUIwith thisNodeUIImpl.protected java.lang.StringgetComparisonString()Returns aStringthat can be used by the superclass to compare twoNodeUIobjects.java.lang.StringgetImplStringForm()Returns aStringobject that can be used with the constructor that takes aStringparameter.inthashCode()Returns a hash code for this object.-
Methods inherited from class org.jcsp.net.NodeUI
compareTo, createFromStringForm, equals, getStringForm
-
-
-
-
Constructor Detail
-
NodeUIImpl
protected NodeUIImpl()
Constructor which is used as standard to create a newNodeUIImplobject.
-
NodeUIImpl
public NodeUIImpl(java.lang.String s)
A constructor which takes aStringthat should be in the format of that returned by thegetImplStringForm()method.- Parameters:
s- aStringused to construct theNodeUIImplobject.
-
-
Method Detail
-
getImplStringForm
public java.lang.String getImplStringForm()
Returns aStringobject that can be used with the constructor that takes aStringparameter.- Specified by:
getImplStringFormin classNodeUI- Returns:
- a
Stringthat holds this object in "string form".
-
checkEqual
public final boolean checkEqual(NodeUI other)
Compares anotherNodeUIwith thisNodeUIImpl.- Specified by:
checkEqualin classNodeUI- Parameters:
other- anotherNodeUIto compare with this object.- Returns:
trueiff theNodeUIsupplied is aNodeUIImplobject that contains the same internal unique identifier as this object.
-
getComparisonString
protected java.lang.String getComparisonString()
Returns aStringthat can be used by the superclass to compare twoNodeUIobjects.- Specified by:
getComparisonStringin classNodeUI- Returns:
- a
Stringthat follows the rules stated for this method in theNodeUIclass.
-
-