Package org.jcsp.net
Class ApplicationID
- java.lang.Object
-
- org.jcsp.net.AbstractID
-
- org.jcsp.net.ApplicationID
-
- All Implemented Interfaces:
java.io.Serializable
public class ApplicationID extends AbstractID implements java.io.Serializable
A Class whose instances represent a unique identifier for a JCSP.NET application. An application is defined as being a process network that forms a complete program. Applications have a parent Node which is the Node on which the application was started.
For a full explanation, see
.AbstractID
- Author:
- Quickstone Technologies Limited
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares the suppliedObject
with thisApplicationID
.AbstractID
getParentID()
Returns the parentNodeID
of this object.int
hashCode()
Returns a hash code for this Object.java.lang.String
toString()
Returns aString
representation of this object.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a
String
representation of this object. The current implemenation returns a human readableString
which shows the application's homeNodeID
and the integer application id.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the
String
representing this Application ID.
-
equals
public boolean equals(java.lang.Object o)
Compares the supplied
Object
with thisApplicationID
.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- anotherObject
to compare with thisApplicationID
.- Returns:
true
iff the parameter o is anApplicationID
that represents the same application as this object.
-
hashCode
public int hashCode()
Returns a hash code for this Object. Two equal
ApplicationID
objects return the same hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- an
int
hash code.
-
getParentID
public AbstractID getParentID()
Returns the parentNodeID
of this object.- Specified by:
getParentID
in classAbstractID
- Returns:
- the parent
NodeID
.
-
-