Package org.jcsp.net
Class Profile
java.lang.Object
org.jcsp.net.Profile
This class is used to hold profiles of Nodes and Links.
Node profiles are not currently used.
Profile functionality is still being implemented.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Profileprivate booleanprivate static Hashtableprivate Stringprivate static Hashtableprivate Requirement[]private boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateProfile(String name, Requirement[] requirements, boolean exact, boolean system) -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcreateNewLinkProfile(String name, Requirement[] requirements, boolean exact) (package private) static voidcreateNewNodeProfile(String name, Requirement[] requirements, boolean exact) booleanCompares this Profile with another object.(package private) static Profilestatic ProfilegetLinkProfile(String name) Returns a link profile of a certain name from a static collection of link profiles.static ProfilegetNodeProfile(String name) Returns a Node profile of a certain name from a static collection of Node profiles.(package private) static ProfilegetProtocolProfile(ProtocolID protocolID) inthashCode()Returns a hash code for this object that follows the standard rule for hash codes stated in theObjectclass.(package private) intmatches(Specification[] specs) This tests whether a an array of Specification objects meet the requirements of this profile.(package private) boolean
-
Field Details
-
alwaysMatchProfile
-
linkProfiles
-
nodeProfiles
-
name
-
exact
private boolean exact -
system
private boolean system -
requirements
-
-
Constructor Details
-
Profile
-
-
Method Details
-
createNewLinkProfile
-
createNewNodeProfile
-
getLinkProfile
Returns a link profile of a certain name from a static collection of link profiles.- Parameters:
name- the name of theProfileto obtain.- Returns:
- a matching link profile or null if no match is found.
-
getNodeProfile
Returns a Node profile of a certain name from a static collection of Node profiles.- Parameters:
name- the name of theProfileto obtain.- Returns:
- a matching Node profile or null if no match is found.
-
getAlwaysMatchProfile
-
getProtocolProfile
-
matches
This tests whether a an array of Specification objects meet the requirements of this profile. This method will sort the array of specs in order of name. This sort will change the original array. -
requiresExactMatch
boolean requiresExactMatch() -
equals
Compares this Profile with another object. -
hashCode
public int hashCode()Returns a hash code for this object that follows the standard rule for hash codes stated in theObjectclass.
-