|
CSP for Java (JCSP) 1.1-rc1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.net.NodeUI
org.jcsp.net.NodeUIImpl
public class NodeUIImpl
This is a default implementation for NodeUI
that is used if no
other implementation is supplied.
Constructor Summary | |
---|---|
protected |
NodeUIImpl()
Constructor which is used as standard to create a new NodeUIImpl
object. |
|
NodeUIImpl(String s)
A constructor which takes a String that should be in the
format of that returned by the getImplStringForm() method. |
Method Summary | |
---|---|
boolean |
checkEqual(NodeUI other)
Compares another NodeUI with this NodeUIImpl . |
protected String |
getComparisonString()
Returns a String that can be used by the superclass to compare
two NodeUI objects. |
String |
getImplStringForm()
Returns a String object that can be used with the constructor
that takes a String parameter. |
int |
hashCode()
Returns a hash code for this object. |
Methods inherited from class org.jcsp.net.NodeUI |
---|
compareTo, createFromStringForm, equals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NodeUIImpl()
NodeUIImpl
object.
public NodeUIImpl(String s)
String
that should be in the
format of that returned by the getImplStringForm()
method.
s
- a String
used to construct the NodeUIImpl
object.Method Detail |
---|
public String getImplStringForm()
String
object that can be used with the constructor
that takes a String
parameter.
getImplStringForm
in class NodeUI
String
that holds this object in "string form".public final boolean checkEqual(NodeUI other)
NodeUI
with this NodeUIImpl
.
checkEqual
in class NodeUI
other
- another NodeUI
to compare with this object.
true
iff the NodeUI
supplied is a NodeUIImpl
object that contains
the same internal unique identifier as this object.protected String getComparisonString()
String
that can be used by the superclass to compare
two NodeUI
objects.
getComparisonString
in class NodeUI
String
that follows the rules stated for this method in the
NodeUI
class.public final int hashCode()
hashCode
in class NodeUI
int
hash code for this object.
|
CSP for Java (JCSP) 1.1-rc1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |