Package org.jcsp.net
Class NodeUIImpl
- java.lang.Object
-
- org.jcsp.net.NodeUI
-
- org.jcsp.net.NodeUIImpl
-
- All Implemented Interfaces:
Serializable,Comparable
public class NodeUIImpl extends NodeUI
This is a default implementation forNodeUIthat is used if no other implementation is supplied.- Author:
- Quickstone Technologies Limited
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeUIImpl()Constructor which is used as standard to create a newNodeUIImplobject.NodeUIImpl(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 StringgetComparisonString()Returns aStringthat can be used by the superclass to compare twoNodeUIobjects.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
-
-
-
-
Constructor Detail
-
NodeUIImpl
protected NodeUIImpl()
Constructor which is used as standard to create a newNodeUIImplobject.
-
NodeUIImpl
public NodeUIImpl(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 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 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.
-
-