Package xal.smf
Class AcceleratorNodeFactory
java.lang.Object
xal.smf.AcceleratorNodeFactory
Class factory for all AcceleratorNode objects. The factory is used in parsing
XML files in XDXF format. Every AcceleratorNode has a type code (in String
format) which may be used to instantiate the class.
- Author:
- Nikolay Malitsky, Christopher K. Allen, Tom Pelaia
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorAcceleratorNodeFactory
(ChannelFactory channelFactory) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncreateNode
(DataAdaptor adaptor) create an accelerator node based on a DataAdaptorReturn the class table used by this node factory.static AcceleratorNodeFactory
<T extends AcceleratorNode>
voidregisterNodeClass
(String deviceType, String softType, Class<T> nodeClass) Associate the specified AcceleratorNode class with the specified node type
-
Constructor Details
-
AcceleratorNodeFactory
Constructor -
AcceleratorNodeFactory
public AcceleratorNodeFactory()Constructor
-
-
Method Details
-
registerNodeClass
public <T extends AcceleratorNode> void registerNodeClass(String deviceType, String softType, Class<T> nodeClass) Associate the specified AcceleratorNode class with the specified node type- Parameters:
deviceType
- device typesoftType
- software type (null indicates there is no software type)nodeClass
- Class class for the AcceleratorNode
-
createNode
create an accelerator node based on a DataAdaptor- Throws:
ClassNotFoundException
-
getClassTable
Return the class table used by this node factory.- Returns:
-
getDefaultFactory
-