|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.Fissures.IfSeismogramDC.SeismogramAttr
edu.iris.Fissures.IfSeismogramDC.LocalSeismogram
edu.iris.Fissures.seismogramDC.SeismogramAttrImpl
edu.iris.Fissures.seismogramDC.LocalSeismogramImpl
public class LocalSeismogramImpl
Implementation of the LocalSeismogram abstract class the is generated from the LocalSeismogram valuetype byte the IDL compiler. Extends SeismogramAttrImpl which in turn extends LocalSeismogram. Created: Wed Feb 23 13:19:30 2000
| Field Summary | |
|---|---|
protected static edu.iris.dmc.seedcodec.Codec |
codec
decompression class that understands different compression routines. |
protected edu.iris.dmc.seedcodec.DecompressedData |
decomp
holds a decompressed copy of the data elements. |
| Fields inherited from class edu.iris.Fissures.seismogramDC.SeismogramAttrImpl |
|---|
beginTime |
| Fields inherited from class edu.iris.Fissures.IfSeismogramDC.LocalSeismogram |
|---|
data |
| Fields inherited from class edu.iris.Fissures.IfSeismogramDC.SeismogramAttr |
|---|
begin_time, channel_id, id, num_points, parm_ids, properties, sample_rate_history, sampling_info, time_corrections, y_unit |
| Constructor Summary | |
|---|---|
protected |
LocalSeismogramImpl()
Empty constructor to be used only for valuetype marshaling. |
|
LocalSeismogramImpl(SeismogramAttr attr,
double[] data)
Constructs a new LocalSeismogram from the given attributes and data. |
|
LocalSeismogramImpl(SeismogramAttr attr,
float[] data)
Constructs a new LocalSeismogram from the given attributes and data. |
|
LocalSeismogramImpl(SeismogramAttr attr,
int[] data)
Constructs a new LocalSeismogram from the given attributes and data. |
|
LocalSeismogramImpl(SeismogramAttr attr,
short[] data)
Constructs a new LocalSeismogram from the given attributes and data. |
|
LocalSeismogramImpl(SeismogramAttr attr,
TimeSeriesDataSel data)
Constructs a new LocalSeismogram from the given attributes and data. |
|
LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
double[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
float[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
int[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
short[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
TimeSeriesDataSel data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
double[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
float[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
int[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
short[] data)
creates a new LocalSeismogramImpl. |
|
LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
TimeSeriesDataSel data)
creates a new LocalSeismogramImpl. |
| Method Summary | |
|---|---|
void |
append_doubles(double[] newData)
Appends the newData to the existing data. |
void |
append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info)
|
void |
append_encoded_seq(EncodedData[] newData)
Appends the newData to the existing data. |
void |
append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info)
|
void |
append_encoded(EncodedData newData)
Appends the newData to the existing data. |
void |
append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info)
|
void |
append_floats(float[] newData)
Appends the newData to the existing data. |
void |
append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info)
|
void |
append_longs(int[] newData)
Appends the newData to the existing data. |
void |
append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info)
|
void |
append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info)
|
void |
append_shorts(short[] newData)
Appends the newData to the existing data. |
void |
append(TimeSeriesDataSel b)
|
int |
calculateNumPoints()
|
boolean |
can_convert_to_double()
|
boolean |
can_convert_to_float()
|
boolean |
can_convert_to_long()
This should really be called can_convert_to_int, but corba calls a java int a long, and so the name is strange. |
boolean |
can_convert_to_short()
|
void |
close()
|
static Serializable |
createEmpty()
A factory method to create an empty LocalSeismogramImpl. |
void |
dataChanged()
|
protected void |
decodeBits()
|
double[] |
get_as_doubles()
|
EncodedData[] |
get_as_encoded()
|
float[] |
get_as_floats()
|
int[] |
get_as_longs()
|
short[] |
get_as_shorts()
|
AuditElement[] |
get_audit_trail()
|
UnitRangeImpl |
getAmplitudeRange()
|
UnitRangeImpl |
getAmplitudeRange(int beginIndex,
int endIndex)
|
TimeSeriesDataSel |
getData()
|
TimeSeriesType |
getDataType()
|
QuantityImpl |
getMaxValue()
|
QuantityImpl |
getMaxValue(int startIndex,
int endIndex)
|
QuantityImpl |
getMeanValue()
|
QuantityImpl |
getMeanValue(int startIndex,
int endIndex)
|
QuantityImpl |
getMinValue()
|
QuantityImpl |
getMinValue(int startIndex,
int endIndex)
|
int |
getNumPoints()
|
QuantityImpl |
getValueAt(int index)
|
float[] |
getValues(int start,
int length)
temporary |
boolean |
is_double()
|
boolean |
is_encoded()
|
boolean |
is_float()
|
boolean |
is_long()
|
boolean |
is_short()
|
boolean |
isDataDecodable()
|
protected FissuresException |
makeFissuresException(edu.iris.dmc.seedcodec.CodecException e)
|
protected FissuresException |
makeFissuresException(String e)
|
void |
setAttributes(SeismogramAttr attr)
Sets the attributes of this seismogram, use with caution!!! |
void |
setData(double[] data)
Sets the timeseries data for this seismogram. |
void |
setData(EncodedData[] data)
Sets the timeseries data for this seismogram. |
void |
setData(float[] data)
Sets the timeseries data for this seismogram. |
void |
setData(int[] data)
Sets the timeseries data for this seismogram. |
void |
setData(short[] data)
Sets the timeseries data for this seismogram. |
void |
setData(TimeSeriesDataSel data)
Sets the timeseries data for this seismogram. |
| Methods inherited from class edu.iris.Fissures.seismogramDC.SeismogramAttrImpl |
|---|
get_id, getBeginTime, getChannelID, getEndTime, getName, getParameterRefs, getProperties, getProperty, getSampling, getTimeInterval, getUnit, is_closed, setName, setParameterRefs, setProperties, setProperty |
| Methods inherited from class edu.iris.Fissures.IfSeismogramDC.LocalSeismogram |
|---|
_read, _truncatable_ids, _type, _write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient edu.iris.dmc.seedcodec.DecompressedData decomp
protected static transient edu.iris.dmc.seedcodec.Codec codec
| Constructor Detail |
|---|
protected LocalSeismogramImpl()
public LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
TimeSeriesDataSel data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
int[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
float[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
double[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
short[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
TimeSeriesDataSel data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
short[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
int[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
float[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sampling,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history,
double[] data)
id - The internal id for the seismogram. This is for the internal
use of the persistant storage system and should be unique within that
system.properties - Properties for the seismogram, perhaps including a
name for labeling a display, or other small extra information. Stored
as name-value pairs.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.y_unit - The amplitude units of the seismogram.channel_id - The id of the channel that recorded the seismogram.time_corrections - The time corrections that have
been applied to the begin time of the seismogram.sample_rate_history - The history of sampling corrections that have
been applied to the sampling of the seismogram.data - The SeismogramData obect that contains the actual timeseries
data.
public LocalSeismogramImpl(SeismogramAttr attr,
short[] data)
public LocalSeismogramImpl(SeismogramAttr attr,
int[] data)
public LocalSeismogramImpl(SeismogramAttr attr,
float[] data)
public LocalSeismogramImpl(SeismogramAttr attr,
double[] data)
public LocalSeismogramImpl(SeismogramAttr attr,
TimeSeriesDataSel data)
| Method Detail |
|---|
public static Serializable createEmpty()
public void setAttributes(SeismogramAttr attr)
public void setData(TimeSeriesDataSel data)
public void setData(short[] data)
public void setData(int[] data)
public void setData(float[] data)
public void setData(double[] data)
public void setData(EncodedData[] data)
public int getNumPoints()
getNumPoints in class SeismogramAttrImpl
public QuantityImpl getMinValue()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getMinValue(int startIndex,
int endIndex)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getMaxValue()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getMaxValue(int startIndex,
int endIndex)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getMeanValue()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getMeanValue(int startIndex,
int endIndex)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public QuantityImpl getValueAt(int index)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public UnitRangeImpl getAmplitudeRange(int beginIndex,
int endIndex)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
public UnitRangeImpl getAmplitudeRange()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic boolean is_long()
is_long in interface TimeSeriesAccessis_long in class SeismogramAttrImplpublic boolean is_float()
is_float in interface TimeSeriesAccessis_float in class SeismogramAttrImplpublic boolean is_double()
is_double in interface TimeSeriesAccessis_double in class SeismogramAttrImplpublic boolean is_short()
is_short in interface TimeSeriesAccessis_short in class SeismogramAttrImplpublic boolean is_encoded()
is_encoded in interface TimeSeriesAccessis_encoded in class SeismogramAttrImplpublic boolean can_convert_to_long()
can_convert_to_long in interface TimeSeriesAccesscan_convert_to_long in class SeismogramAttrImplpublic boolean can_convert_to_float()
can_convert_to_float in interface TimeSeriesAccesscan_convert_to_float in class SeismogramAttrImplpublic boolean can_convert_to_double()
can_convert_to_double in interface TimeSeriesAccesscan_convert_to_double in class SeismogramAttrImplpublic boolean can_convert_to_short()
can_convert_to_short in interface TimeSeriesAccesscan_convert_to_short in class SeismogramAttrImplpublic TimeSeriesDataSel getData()
protected FissuresException makeFissuresException(edu.iris.dmc.seedcodec.CodecException e)
protected FissuresException makeFissuresException(String e)
public int[] get_as_longs()
throws FissuresException
get_as_longs in interface TimeSeriesAccessget_as_longs in class SeismogramAttrImplFissuresException
public short[] get_as_shorts()
throws FissuresException
get_as_shorts in interface TimeSeriesAccessget_as_shorts in class SeismogramAttrImplFissuresException
public float[] get_as_floats()
throws FissuresException
get_as_floats in interface TimeSeriesAccessget_as_floats in class SeismogramAttrImplFissuresException
public double[] get_as_doubles()
throws FissuresException
get_as_doubles in interface TimeSeriesAccessget_as_doubles in class SeismogramAttrImplFissuresException
public EncodedData[] get_as_encoded()
throws FissuresException
get_as_encoded in interface TimeSeriesAccessget_as_encoded in class SeismogramAttrImplFissuresExceptionpublic void close()
close in interface TimeSeriesAdminclose in class SeismogramAttrImpl
public AuditElement[] get_audit_trail()
throws NotImplemented
get_audit_trail in interface AuditSystemAccessget_audit_trail in class SeismogramAttrImplNotImplemented
public void append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_longs in interface TimeSeriesAdminappend_longs in class SeismogramAttrImplSequenceOutOfOrder
public void append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_shorts in interface TimeSeriesAdminappend_shorts in class SeismogramAttrImplSequenceOutOfOrder
public void append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_floats in interface TimeSeriesAdminappend_floats in class SeismogramAttrImplSequenceOutOfOrder
public void append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_doubles in interface TimeSeriesAdminappend_doubles in class SeismogramAttrImplSequenceOutOfOrder
public void append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_encoded_seq in interface TimeSeriesAdminappend_encoded_seq in class SeismogramAttrImplSequenceOutOfOrder
public void append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
append_encoded in interface TimeSeriesAdminappend_encoded in class SeismogramAttrImplSequenceOutOfOrder
public void append_longs(int[] newData)
throws FissuresException
FissuresException
public void append_shorts(short[] newData)
throws FissuresException
FissuresException
public void append_floats(float[] newData)
throws FissuresException
FissuresException
public void append_doubles(double[] newData)
throws FissuresException
FissuresException
public void append_encoded_seq(EncodedData[] newData)
throws FissuresException
FissuresException
public void append_encoded(EncodedData newData)
throws FissuresException
FissuresExceptionpublic int calculateNumPoints()
public float[] getValues(int start,
int length)
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecExceptionpublic TimeSeriesType getDataType()
public void append(TimeSeriesDataSel b)
throws FissuresException
FissuresExceptionpublic boolean isDataDecodable()
public void dataChanged()
protected void decodeBits()
throws edu.iris.dmc.seedcodec.CodecException
edu.iris.dmc.seedcodec.CodecException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||