Package xal.smf.impl.qualify
Class KindQualifier
java.lang.Object
xal.smf.impl.qualify.KindQualifier
- All Implemented Interfaces:
TypeQualifier
KindQualifier is used to match nodes based upon the string type of nodes. For
example, the official naming convention specifies names and short names for
various elements in the accelerator (e.g. "Q" for quadrupole, "BPM" for a
"beam position monitor". The user can construct a qualifier by specifying an
element type by either its name or short name (usually given by the node's
"TYPE" property).
- Author:
- tap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(AcceleratorNode node) Determine if the specified node is a match based on this qualifier's criteriastatic TypeQualifier
qualifierWithStatusAndType
(boolean nodeStatus, String type) Get an qualifier for the specified node status and type.
-
Constructor Details
-
KindQualifier
Creates new KindQualifier- Parameters:
newKind
- The official element type of nodes to match (e.g. BPM.TYPE)
-
-
Method Details
-
qualifierWithStatusAndType
Get an qualifier for the specified node status and type.- Parameters:
nodeStatus
- the node statustype
- the node type- Returns:
- a qualifier restricted to both the status and type specified
-
match
Determine if the specified node is a match based on this qualifier's criteria- Specified by:
match
in interfaceTypeQualifier
- Parameters:
node
- The node to test- Returns:
- true if the node is a match and false if not
-