Package xal.smf.impl

Class Marker

All Implemented Interfaces:
Comparable, ElementType, DataListener

public class Marker extends AcceleratorNode
node representing a simple marker
  • Field Details

  • Constructor Details

    • Marker

      public Marker(String strID, ChannelFactory channelFactory)
      Primary Constructor
      Parameters:
      strID - the unique node identifier
      channelFactory - factory for generating channels
    • Marker

      public Marker(String strID)
      Constructor
      Parameters:
      strID - the unique node identifier
  • Method Details

    • getType

      public String getType()
      Overriden to provide type signature
      Specified by:
      getType in class AcceleratorNode
    • getSoftType

      public String getSoftType()
      Overriden to provide type signature
      Overrides:
      getSoftType in class AcceleratorNode
    • update

      public void update(DataAdaptor adaptor)
      Update the instance with data from the data adaptor. Overrides the default implementation to set the marker type since a marker type can be "Foil", "VIW" "Tgt", etc.
      Specified by:
      update in interface DataListener
      Overrides:
      update in class AcceleratorNode
      Parameters:
      adaptor - The data provider.
    • isKindOf

      public boolean isKindOf(String type)
      Determine if this node is of the specified type. Override the inherited method since the types of generic nodes are not associated with the class unlike typical nodes.
      Specified by:
      isKindOf in interface ElementType
      Overrides:
      isKindOf in class AcceleratorNode
      Parameters:
      type - The type to compare against.
      Returns:
      true if the node is a match and false otherwise.