public class AngleVetoes extends java.lang.Object implements PamSettings
This is all much more complicated than in RainbowClick since there may be multiple channel groups and there may be multiple vetoes looking at specific angles. For now though, it just handles min and max angles to veto, but you can have multiple vetoes.
Constructor and Description |
---|
AngleVetoes(PamControlledUnit pamControlledUnit) |
Modifier and Type | Method and Description |
---|---|
void |
addAngleData(double angle)
Add data to angle stats histogram for display
|
void |
addPassData(boolean pass)
Add data to pas / fail stats for display
|
AngleVetoParameters |
getAngleVetoParameters()
Access to the veto parameters
|
javax.swing.JMenuItem |
getDisplayMenuItem(java.awt.Frame frame)
Get a menu item for inclusion in menus of detectors using the veto (i.e.
|
javax.swing.JMenuItem |
getSettingsMenuItem(java.awt.Frame frame)
Get a menu item for inclusion in menus of detectors using the veto (i.e.
|
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
passAllVetoes(double angle,
boolean collectStats)
Test a particular angle to see if it passes all veto tests.
|
boolean |
passVeto(AngleVeto angleVeto,
double angle)
Test to see if a given angle passes a particular veto
|
boolean |
passVeto(int vetoIndex,
double angle)
Test to see if a given angle passes a particular veto
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setAngleVetoParameters(AngleVetoParameters angleVetoParameters)
set angle veto parameters
|
public AngleVetoes(PamControlledUnit pamControlledUnit)
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public javax.swing.JMenuItem getSettingsMenuItem(java.awt.Frame frame)
frame
- Frame holding the menupublic javax.swing.JMenuItem getDisplayMenuItem(java.awt.Frame frame)
frame
- Frame holding the menupublic AngleVetoParameters getAngleVetoParameters()
public void setAngleVetoParameters(AngleVetoParameters angleVetoParameters)
angleVetoParameters
- public boolean passVeto(int vetoIndex, double angle)
vetoIndex
- index of vetoangle
- angle in degreespublic boolean passVeto(AngleVeto angleVeto, double angle)
angleVeto
- reference to vetoangle
- angle in degreespublic boolean passAllVetoes(double angle, boolean collectStats)
Optionally add data about the angle and whether or not it passed the tests to the display data histograms.
angle
- angle to test in degreescollectStats
- set to true if you want to collect stats for display purposes.public void addAngleData(double angle)
angle
- angle in degreespublic void addPassData(boolean pass)
pass
- true if there was a pass, false for a fail.