gov.sns.xal.model.gen
Interface IRule
- All Known Implementing Classes:
- GenerationRule
- public interface IRule
Interface to be exposed by classes implementing lattice element generation rules. Such classes
should take a set of AcceleratorNode objects (including a single element) and return an ordered
list of Element objects modeling the node set [set the function getElements()].
|
Method Summary |
java.util.List |
getElements(java.util.Set setNodeCombin)
|
java.util.Set |
getNodeCombination()
Returns a set of AcceleratorNode type string identifiers (order is not important). |
getNodeCombination
public java.util.Set getNodeCombination()
- Returns a set of AcceleratorNode type string identifiers (order is not important).
The class implementing this interface is able to generate an order list of Element
objects that model this node combination.
- Returns:
- set (unordered) of AcceleratorNode objects that generation rule handles
getElements
public java.util.List getElements(java.util.Set setNodeCombin)
throws GenerationException
GenerationException