Package org.jcsp.net
Class NodeUIImpl
java.lang.Object
org.jcsp.net.NodeUI
org.jcsp.net.NodeUIImpl
- All Implemented Interfaces:
Serializable,Comparable
This is a default implementation for
NodeUI that is used if no
other implementation is supplied.- Author:
- Quickstone Technologies Limited
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor 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
Modifier and TypeMethodDescriptionfinal booleancheckEqual(NodeUI other) Compares anotherNodeUIwith thisNodeUIImpl.protected StringReturns aStringthat can be used by the superclass to compare twoNodeUIobjects.Returns aStringobject that can be used with the constructor that takes aStringparameter.final inthashCode()Returns a hash code for this object.Methods inherited from class org.jcsp.net.NodeUI
compareTo, createFromStringForm, equals
-
Constructor Details
-
NodeUIImpl
protected NodeUIImpl()Constructor which is used as standard to create a newNodeUIImplobject. -
NodeUIImpl
A constructor which takes aStringthat should be in the format of that returned by thegetImplStringForm()method.- Parameters:
s- aStringused to construct theNodeUIImplobject.
-
-
Method Details
-
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
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
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.
-
hashCode
public final int hashCode()Returns a hash code for this object.
-