Class NameListReadSelectionFilter

  • All Implemented Interfaces:
    ReadSelectionFilter

    public class NameListReadSelectionFilter
    extends java.lang.Object
    implements ReadSelectionFilter
    This class decides on a list of names, if the values for monitors and correctors shall be loaded. Additionally, it allows to laod all correctors or monitors by setting the properties allBeamCorrectors or allBeamMonitors, respectively.
    • Constructor Detail

      • NameListReadSelectionFilter

        public NameListReadSelectionFilter​(java.util.List<java.lang.String> correctorNames,
                                           java.util.List<java.lang.String> monitorNames,
                                           BeamNumber beamNumber)
        the constructor, which requires the elements to load
        Parameters:
        correctorNames -
        monitorNames -
        beamNumber -
      • NameListReadSelectionFilter

        public NameListReadSelectionFilter​(BeamNumber beamNumber)
    • Method Detail

      • getCorrectorNames

        public java.util.List<java.lang.String> getCorrectorNames()
        Returns:
        the correctorNames
      • getMonitorNames

        public java.util.List<java.lang.String> getMonitorNames()
        Returns:
        the monitorNames
      • isOfInterest

        public boolean isOfInterest​(MonitorValue monitorValue)
        Description copied from interface: ReadSelectionFilter
        decides if we will use the given monitor
        Specified by:
        isOfInterest in interface ReadSelectionFilter
        Parameters:
        monitorValue - the monitor-value to test
        Returns:
        true if the monitor shall be loaded, false otherwise
      • isOfInterest

        public boolean isOfInterest​(CorrectorValue correctorValue)
        Description copied from interface: ReadSelectionFilter
        decides if we will use the given corrector
        Specified by:
        isOfInterest in interface ReadSelectionFilter
        Parameters:
        correctorValue - the value in question
        Returns:
        true if the the given value should be loaded, false otherwise
      • setAllBeamCorrectors

        public void setAllBeamCorrectors​(boolean allBeamCorrectors)
        Parameters:
        allBeamCorrectors - the allBeamCorrectors to set
      • setAllBeamMonitors

        public void setAllBeamMonitors​(boolean allBeamMonitors)
        Parameters:
        allBeamMonitors - the allBeamMonitors to set