Package org.jcsp.net
Class Profile
- java.lang.Object
-
- org.jcsp.net.Profile
-
public class Profile extends java.lang.Object
This class is used to hold profiles of Nodes and Links.
Node profiles are not currently used.
Profile functionality is still being implemented.- Author:
- Quickstone Technologies Limited
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Compares this Profile with another object.static Profile
getLinkProfile(java.lang.String name)
Returns a link profile of a certain name from a static collection of link profiles.static Profile
getNodeProfile(java.lang.String name)
Returns a Node profile of a certain name from a static collection of Node profiles.int
hashCode()
Returns a hash code for this object that follows the standard rule for hash codes stated in theObject
class.
-
-
-
Method Detail
-
getLinkProfile
public static Profile getLinkProfile(java.lang.String name)
Returns a link profile of a certain name from a static collection of link profiles.- Parameters:
name
- the name of theProfile
to obtain.- Returns:
- a matching link profile or null if no match is found.
-
getNodeProfile
public static Profile getNodeProfile(java.lang.String name)
Returns a Node profile of a certain name from a static collection of Node profiles.- Parameters:
name
- the name of theProfile
to obtain.- Returns:
- a matching Node profile or null if no match is found.
-
equals
public boolean equals(java.lang.Object o)
Compares this Profile with another object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- another object to compare with this object.- Returns:
true
iff the supplied object is aProfile
object that is exactly equal.
-
hashCode
public int hashCode()
Returns a hash code for this object that follows the standard rule for hash codes stated in theObject
class.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- an
int
hash code for this object.
-
-