public class EtStation
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockMode()
Gets the station configuration's block mode.
|
int |
getCue()
Gets the station configuration's cue.
|
int |
getId()
Gets the station id.
|
int |
getInputCount()
Gets the number of events in the station's input list.
|
java.lang.String |
getName()
Gets the station name.
|
int |
getNumAttachments()
Gets the station's number of attachments.
|
int |
getOutputCount()
Gets the number of events in the station's output list.
|
int |
getPrescale()
Gets the station configuration's prescale.
|
int |
getRestoreMode()
Gets the station configuration's restore mode.
|
java.lang.String |
getSelectClass()
Gets the name of the class containing the station's user-defined select
method.
|
java.lang.String |
getSelectFunction()
Gets the name of the station's user-defined select function.
|
java.lang.String |
getSelectLibrary()
Gets the name of the library containing the station's user-defined select
function.
|
int |
getSelectMode()
Gets the station configuration's select mode.
|
int[] |
getSelectWords()
Gets the station's select array used for filtering events.
|
int |
getStatus()
Gets the station's status.
|
EtSystem |
getSys()
Gets the ET system object.
|
int |
getUserMode()
Gets the station configuration's user mode.
|
boolean |
isUsable()
Tells if this station object is usable.
|
void |
setBlockMode(int mode)
Sets the station's block mode dynamically.
|
void |
setCue(int cue)
Sets the station's cue size dynamically.
|
void |
setPrescale(int prescale)
Sets the station's prescale dynamically.
|
void |
setRestoreMode(int mode)
Sets the station's restore mode dynamically.
|
void |
setSelectWords(int[] select)
Sets the station's select array - used for filtering events.
|
void |
setUserMode(int mode)
Sets the station's user mode dynamically.
|
public java.lang.String getName()
public int getId()
public EtSystem getSys()
public boolean isUsable()
true if station object is usable and false otherwisepublic int[] getSelectWords()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
org.jlab.coda.et.exception.EtException - if the station has been removed or cannot be foundjava.io.IOExceptionEtStationConfig.selectpublic void setSelectWords(int[] select)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
select - array of select integersjava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed or cannot be found;
if wrong size array, or if the station is GRAND_CENTRALEtStationConfig.selectpublic java.lang.String getSelectLibrary()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.selectLibrarypublic java.lang.String getSelectFunction()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.selectFunctionpublic java.lang.String getSelectClass()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.selectClasspublic int getNumAttachments()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedpublic int getStatus()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
EtConstants.stationUnused, EtConstants.stationCreating,
EtConstants.stationIdle, and EtConstants.stationActive.java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedpublic int getInputCount()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedpublic int getOutputCount()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedpublic int getBlockMode()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.blockModepublic void setBlockMode(int mode)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
mode - block mode valuejava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed, bad mode value, or
the station is GRAND_CENTRALEtStationConfig.blockModepublic int getUserMode()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.userModepublic void setUserMode(int mode)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
mode - user mode valuejava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed, bad mode value, or
the station is GRAND_CENTRALEtStationConfig.userModepublic int getRestoreMode()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.restoreModepublic void setRestoreMode(int mode)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
mode - restore mode valuejava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed, bad mode value, or
the station is GRAND_CENTRALEtStationConfig.restoreModepublic int getSelectMode()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.selectModepublic int getCue()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.cuepublic void setCue(int cue)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
cue - cue valuejava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed, bad cue value, or
the station is GRAND_CENTRALEtStationConfig.cuepublic int getPrescale()
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
java.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removedEtStationConfig.prescalepublic void setPrescale(int prescale)
throws java.io.IOException,
org.jlab.coda.et.exception.EtException
prescale - prescale valuejava.io.IOException - if there are problems with network communicationorg.jlab.coda.et.exception.EtException - if the station has been removed, bad prescale value, or
the station is GRAND_CENTRALEtStationConfig.prescale