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.| Modifier and Type | Field and Description |
|---|---|
private static Profile |
alwaysMatchProfile |
private boolean |
exact |
private static java.util.Hashtable |
linkProfiles |
private java.lang.String |
name |
private static java.util.Hashtable |
nodeProfiles |
private Requirement[] |
requirements |
private boolean |
system |
| Modifier | Constructor and Description |
|---|---|
private |
Profile(java.lang.String name,
Requirement[] requirements,
boolean exact,
boolean system) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
createNewLinkProfile(java.lang.String name,
Requirement[] requirements,
boolean exact) |
(package private) static void |
createNewNodeProfile(java.lang.String name,
Requirement[] requirements,
boolean exact) |
boolean |
equals(java.lang.Object o)
Compares this Profile with another object.
|
(package private) static Profile |
getAlwaysMatchProfile() |
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.
|
(package private) static Profile |
getProtocolProfile(ProtocolID protocolID) |
int |
hashCode()
Returns a hash code for this object that follows the
standard rule for hash codes stated in the
Object class. |
(package private) int |
matches(Specification[] specs)
This tests whether a an array of Specification objects meet the
requirements of this profile.
|
(package private) boolean |
requiresExactMatch() |
private static Profile alwaysMatchProfile
private static java.util.Hashtable linkProfiles
private static java.util.Hashtable nodeProfiles
private java.lang.String name
private boolean exact
private boolean system
private Requirement[] requirements
private Profile(java.lang.String name,
Requirement[] requirements,
boolean exact,
boolean system)
static void createNewLinkProfile(java.lang.String name,
Requirement[] requirements,
boolean exact)
static void createNewNodeProfile(java.lang.String name,
Requirement[] requirements,
boolean exact)
public static Profile getLinkProfile(java.lang.String name)
name - the name of the Profile to obtain.public static Profile getNodeProfile(java.lang.String name)
name - the name of the Profile to obtain.static Profile getAlwaysMatchProfile()
static Profile getProtocolProfile(ProtocolID protocolID)
int matches(Specification[] specs)
boolean requiresExactMatch()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - another object to compare with this object.true iff the supplied object is a Profile object that
is exactly equal.public int hashCode()
Object class.hashCode in class java.lang.Objectint hash code for this object.