Class NameListReadSelectionFilter
- java.lang.Object
-
- cern.accsoft.steering.util.meas.read.filter.impl.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 propertiesallBeamCorrectorsorallBeamMonitors, respectively.
-
-
Constructor Summary
Constructors Constructor Description NameListReadSelectionFilter(BeamNumber beamNumber)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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getCorrectorNames()java.util.List<java.lang.String>getMonitorNames()booleanisOfInterest(CorrectorValue correctorValue)decides if we will use the given correctorbooleanisOfInterest(MonitorValue monitorValue)decides if we will use the given monitorvoidsetAllBeamCorrectors(boolean allBeamCorrectors)voidsetAllBeamMonitors(boolean allBeamMonitors)
-
-
-
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:ReadSelectionFilterdecides if we will use the given monitor- Specified by:
isOfInterestin interfaceReadSelectionFilter- Parameters:
monitorValue- the monitor-value to test- Returns:
trueif the monitor shall be loaded, false otherwise
-
isOfInterest
public boolean isOfInterest(CorrectorValue correctorValue)
Description copied from interface:ReadSelectionFilterdecides if we will use the given corrector- Specified by:
isOfInterestin interfaceReadSelectionFilter- Parameters:
correctorValue- the value in question- Returns:
trueif the the given value should be loaded,falseotherwise
-
setAllBeamCorrectors
public void setAllBeamCorrectors(boolean allBeamCorrectors)
- Parameters:
allBeamCorrectors- the allBeamCorrectors to set
-
setAllBeamMonitors
public void setAllBeamMonitors(boolean allBeamMonitors)
- Parameters:
allBeamMonitors- the allBeamMonitors to set
-
-