Package xal.smf

Class AcceleratorNodeFactory

java.lang.Object
xal.smf.AcceleratorNodeFactory

public final class AcceleratorNodeFactory extends Object
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 Details

    • AcceleratorNodeFactory

      public AcceleratorNodeFactory(ChannelFactory channelFactory)
      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 type
      softType - software type (null indicates there is no software type)
      nodeClass - Class class for the AcceleratorNode
    • createNode

      public AcceleratorNode createNode(DataAdaptor adaptor) throws ClassNotFoundException
      create an accelerator node based on a DataAdaptor
      Throws:
      ClassNotFoundException
    • getClassTable

      public Map<String,Class<?>> getClassTable()
      Return the class table used by this node factory.
      Returns:
    • getDefaultFactory

      public static AcceleratorNodeFactory getDefaultFactory()