CSP for Java
(JCSP) 1.1-rc4

org.jcsp.net
Class NodeUIImpl

java.lang.Object
  extended by org.jcsp.net.NodeUI
      extended by org.jcsp.net.NodeUIImpl
All Implemented Interfaces:
Serializable, Comparable

public class NodeUIImpl
extends NodeUI

This is a default implementation for NodeUI that is used if no other implementation is supplied.

Author:
Quickstone Technologies Limited
See Also:
Serialized Form

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

NodeUIImpl

protected NodeUIImpl()
Constructor which is used as standard to create a new NodeUIImpl object.


NodeUIImpl

public NodeUIImpl(String s)
A constructor which takes a String that should be in the format of that returned by the getImplStringForm() method.

Parameters:
s - a String used to construct the NodeUIImpl object.
Method Detail

getImplStringForm

public String getImplStringForm()
Returns a String object that can be used with the constructor that takes a String parameter.

Specified by:
getImplStringForm in class NodeUI
Returns:
a String that holds this object in "string form".

checkEqual

public final boolean checkEqual(NodeUI other)
Compares another NodeUI with this NodeUIImpl.

Specified by:
checkEqual in class NodeUI
Parameters:
other - another NodeUI to compare with this object.
Returns:
true iff the NodeUI supplied is a NodeUIImpl object that contains the same internal unique identifier as this object.

getComparisonString

protected String getComparisonString()
Returns a String that can be used by the superclass to compare two NodeUI objects.

Specified by:
getComparisonString in class NodeUI
Returns:
a String that follows the rules stated for this method in the NodeUI class.

hashCode

public final int hashCode()
Returns a hash code for this object.

Specified by:
hashCode in class NodeUI
Returns:
an int hash code for this object.

CSP for Java
(JCSP) 1.1-rc4

Submit a bug or feature to jcsp-team@kent.ac.uk
Version 1.1-rc4 of the JCSP API Specification (Copyright 1997-2008 P.D.Austin and P.H.Welch - All Rights Reserved)
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.