public class EtStationConfig
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EtStationConfig()
Creates a new StationConfig object with default values for everything.
|
EtStationConfig(EtStationConfig config)
Creates a new StationConfig object from an existing one.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
compatibleParallelConfigs(EtStationConfig group,
EtStationConfig config)
Checks to see if station configurations are compatible when adding
a parallel station to an existing group of parallel stations.
|
int |
getBlockMode()
Gets the block mode.
|
int |
getCue()
Gets the cue size.
|
int |
getFlowMode()
Gets the flow mode.
|
int |
getPrescale()
Gets the prescale value.
|
int |
getRestoreMode()
Gets the restore mode.
|
int[] |
getSelect()
Gets a copy of the select integer array.
|
java.lang.String |
getSelectClass()
Gets the name of the class containing the user-defined select method.
|
java.lang.String |
getSelectFunction()
Gets the user-defined select function name.
|
java.lang.String |
getSelectLibrary()
Gets the name of the library containing the user-defined select function.
|
int |
getSelectMode()
Gets the select mode.
|
int |
getUserMode()
Gets the user mode.
|
void |
setBlockMode(int mode)
Sets the station's block mode value.
|
void |
setCue(int q)
Sets the station's cue size.
|
void |
setFlowMode(int mode)
Sets the station's flow mode value.
|
void |
setPrescale(int pre)
Sets the station's prescale value.
|
void |
setRestoreMode(int mode)
Sets the station's restore mode value.
|
void |
setSelect(int[] sel)
Sets the station's select integer array.
|
void |
setSelectClass(java.lang.String sClass)
Sets the class containing the user-defined select method.
|
void |
setSelectFunction(java.lang.String func)
Sets the station's user-defined select function.
|
void |
setSelectLibrary(java.lang.String lib)
Sets the library containing the user-defined select function.
|
void |
setSelectMode(int mode)
Sets the station's select mode value.
|
void |
setUserMode(int mode)
Sets the station's user mode value.
|
public EtStationConfig()
EtConstants.defaultStationCue
,
prescale = EtConstants.defaultStationPrescale
,
flowMode = EtConstants.stationSerial
,
userMode = EtConstants.stationUserMulti
,
restoreMode = EtConstants.stationRestoreOut
,
blockMode = EtConstants.stationBlocking
,
selectMode = EtConstants.stationSelectAll
, and
select = filled with -1'spublic EtStationConfig(EtStationConfig config)
config
- config to copypublic static boolean compatibleParallelConfigs(EtStationConfig group, EtStationConfig config)
group
- station configuration of head of existing group of parallel stationsconfig
- configuration of station seeking to be added to the grouppublic int getCue()
public int getPrescale()
public int getFlowMode()
public int getUserMode()
public int getRestoreMode()
public int getBlockMode()
public int getSelectMode()
public int[] getSelect()
public java.lang.String getSelectFunction()
public java.lang.String getSelectLibrary()
public java.lang.String getSelectClass()
public void setCue(int q) throws org.jlab.coda.et.exception.EtException
q
- cue sizeorg.jlab.coda.et.exception.EtException
- if there is a bad cue size valuepublic void setPrescale(int pre) throws org.jlab.coda.et.exception.EtException
pre
- prescale valueorg.jlab.coda.et.exception.EtException
- if there is a bad prescale valuepublic void setFlowMode(int mode) throws org.jlab.coda.et.exception.EtException
mode
- flow modeorg.jlab.coda.et.exception.EtException
- if there is a bad flow mode valuepublic void setUserMode(int mode) throws org.jlab.coda.et.exception.EtException
mode
- user modeorg.jlab.coda.et.exception.EtException
- if there is a bad user mode valuepublic void setRestoreMode(int mode) throws org.jlab.coda.et.exception.EtException
mode
- restore modeorg.jlab.coda.et.exception.EtException
- if there is a bad restore mode valuepublic void setBlockMode(int mode) throws org.jlab.coda.et.exception.EtException
mode
- block modeorg.jlab.coda.et.exception.EtException
- if there is a bad block mode valuepublic void setSelectMode(int mode) throws org.jlab.coda.et.exception.EtException
mode
- select modeorg.jlab.coda.et.exception.EtException
- if there is a bad select mode valuepublic void setSelect(int[] sel) throws org.jlab.coda.et.exception.EtException
sel
- select integer arrayorg.jlab.coda.et.exception.EtException
- if there are the wrong number of elements in the arraypublic void setSelectFunction(java.lang.String func) throws org.jlab.coda.et.exception.EtException
func
- name of the user-defined select functionorg.jlab.coda.et.exception.EtException
- if argument is too longpublic void setSelectLibrary(java.lang.String lib) throws org.jlab.coda.et.exception.EtException
lib
- name of the library containing the user-defined select functionorg.jlab.coda.et.exception.EtException
- if argument is too longpublic void setSelectClass(java.lang.String sClass) throws org.jlab.coda.et.exception.EtException
sClass
- name of the class containing the user-defined select methodorg.jlab.coda.et.exception.EtException
- if argument is too long