public class GEODataClipIn extends java.lang.Object implements ClipIn
Constructor and Description |
---|
GEODataClipIn()
Constructs an empty GEODataClipIn.
|
GEODataClipIn(java.lang.String det,
java.lang.String name,
int prec,
boolean cal,
boolean dewhite,
int yr,
int mo,
int da,
int hr,
int min,
int sec)
Constructs a GEODataClipIn using the desired input data, with the time given by calendar arguments.
|
GEODataClipIn(java.lang.String det,
java.lang.String name,
int prec,
boolean cal,
boolean dewhite,
long gpsMs)
Constructs a GEODataClipIn using the desired input data, with the time given in GPS milliseconds.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones the ClipIn to an identical one.
|
void |
finalizeAttach(AttachInfo info)
This method is called when the clip-in is removed from a task's clip-in bucket.
|
boolean |
getCalibrated()
Returns the calibration state of the data
|
java.lang.String |
getChannel()
Returns the channel name.
|
java.lang.String |
getDetector()
Returns the detector name.
|
boolean |
getDewhitened()
Returns the dewhitening state of the data
|
java.lang.String |
getGPSDateString()
Returns the GPS time of the first sample of the data by giving calendar information
|
long |
getGPSMs()
Returns the GPS time in milliseconds of the first sample of the data
|
int |
getPrecision()
Returns the precision of the acquired data, in bits.
|
void |
initializeAttach(AttachInfo info)
This method is called before the clip-in enters a task's clip-in bucket.
|
void |
setCalibrated(boolean cal)
Sets the calibration state of the data
|
void |
setChannel(java.lang.String chan)
Sets the channel name.
|
void |
setDetector(java.lang.String name)
Sets the detector name.
|
void |
setDewhitened(boolean dewhite)
Sets the dewhitening state of the data
|
void |
setGPS(int yr,
int mo,
int da,
int hr,
int min,
int sec)
Sets the GPS time of the first sample of the data by giving calendar information
|
void |
setGPS(long gps)
Sets the GPS time in milliseconds of the first sample of the data
|
void |
setPrecision(int bits)
Sets the precision of the acquired data, in bits.
|
public GEODataClipIn()
public GEODataClipIn(java.lang.String det, java.lang.String name, int prec, boolean cal, boolean dewhite, long gpsMs)
public GEODataClipIn(java.lang.String det, java.lang.String name, int prec, boolean cal, boolean dewhite, int yr, int mo, int da, int hr, int min, int sec)
public void initializeAttach(AttachInfo info)
initializeAttach
in interface ClipIn
info
- info about the task the clip-in is being attached topublic void finalizeAttach(AttachInfo info)
finalizeAttach
in interface ClipIn
info
- info about the task the clip-in is being removed frompublic java.lang.Object clone()
public void setDetector(java.lang.String name)
name
- The new detector namepublic void setChannel(java.lang.String chan)
chan
- The new channel namepublic void setPrecision(int bits)
bits
- The new precisionpublic void setCalibrated(boolean cal)
cal
- The new calibration statepublic void setDewhitened(boolean dewhite)
dewhite
- The new whitening statepublic void setGPS(long gps)
gps
- The new first sample time in millisecondspublic void setGPS(int yr, int mo, int da, int hr, int min, int sec)
yr
- The year of the first sample (4 digits)mo
- The month of the first sample (January = 0)da
- The day of the month of the first sample (starting at 1)hr
- The hour of the day of the first samplemin
- The minute of the hour of the first samplesec
- The second of the minute of the first samplepublic java.lang.String getDetector()
public java.lang.String getChannel()
public int getPrecision()
public boolean getCalibrated()
public boolean getDewhitened()
public long getGPSMs()
public java.lang.String getGPSDateString()