public class EtAttachment
extends java.lang.Object
EtSystem.attach(EtStation)
method. Attachments are means of designating the
ownership of events and keeping track of events.Constructor and Description |
---|
EtAttachment(EtStation station,
int id,
EtSystem sys)
Constructor for creating an attachment to a specific ET system and station.
|
Modifier and Type | Method and Description |
---|---|
long |
getEventsDump()
Gets the number of events dumped (recycled by returning to GRAND_CENTRAL
station) through this attachment.
|
long |
getEventsGet()
Gets the number of events gotten from the ET system by this attachment.
|
long |
getEventsMake()
Gets the number of new events gotten from the ET system by this attachment.
|
long |
getEventsPut()
Gets the number of events put into the ET system by this attachment.
|
int |
getId()
Gets the id number of this attachment.
|
EtStation |
getStation()
Gets the object of the station attached to.
|
EtSystem |
getSys()
Sets the EtSystemUse object for using the ET system.
|
boolean |
isUsable()
Tells if this attachment object is usable.
|
(package private) void |
setUsable(boolean usable)
Sets whether this attachment object is usable or not.
|
EtAttachment(EtStation station, int id, EtSystem sys)
EtSystem.attach(EtStation)
method.station
- station objectid
- unique attachment id numbersys
- ET system objectpublic EtStation getStation()
public int getId()
public boolean isUsable()
true
if attachment object is usable and false
otherwisevoid setUsable(boolean usable)
usable
- true
if this attachment object is usable and false
otherwisepublic EtSystem getSys()
public long getEventsPut() throws java.io.IOException, org.jlab.coda.et.exception.EtException
java.io.IOException
- if there are network communication problemsorg.jlab.coda.et.exception.EtException
- if the station no longer existspublic long getEventsGet() throws java.io.IOException, org.jlab.coda.et.exception.EtException
java.io.IOException
- if there are network communication problemsorg.jlab.coda.et.exception.EtException
- if the station no longer existspublic long getEventsDump() throws java.io.IOException, org.jlab.coda.et.exception.EtException
java.io.IOException
- if there are network communication problemsorg.jlab.coda.et.exception.EtException
- if the station no longer existspublic long getEventsMake() throws java.io.IOException, org.jlab.coda.et.exception.EtException
java.io.IOException
- if there are network communication problemsorg.jlab.coda.et.exception.EtException
- if the station no longer exists