Package org.jcsp.net
Class ApplicationID
- java.lang.Object
-
- org.jcsp.net.AbstractID
-
- org.jcsp.net.ApplicationID
-
- All Implemented Interfaces:
Serializable
public class ApplicationID extends AbstractID implements 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 booleanequals(Object o)Compares the suppliedObjectwith thisApplicationID.AbstractIDgetParentID()Returns the parentNodeIDof this object.inthashCode()Returns a hash code for this Object.StringtoString()Returns aStringrepresentation of this object.
-
-
-
Method Detail
-
toString
public String toString()
Returns a
Stringrepresentation of this object. The current implemenation returns a human readableStringwhich shows the application's homeNodeIDand the integer application id.
-
equals
public boolean equals(Object o)
Compares the supplied
Objectwith thisApplicationID.
-
hashCode
public int hashCode()
Returns a hash code for this Object. Two equal
ApplicationIDobjects return the same hash code.
-
getParentID
public AbstractID getParentID()
Returns the parentNodeIDof this object.- Specified by:
getParentIDin classAbstractID- Returns:
- the parent
NodeID.
-
-