edu.iris.Fissures.seismogramDC
Class SeismogramAttrImpl
java.lang.Object
edu.iris.Fissures.IfSeismogramDC.SeismogramAttr
edu.iris.Fissures.IfSeismogramDC.LocalSeismogram
edu.iris.Fissures.seismogramDC.SeismogramAttrImpl
- All Implemented Interfaces:
- AuditSystemAccess, TimeSeriesAccess, TimeSeriesAdmin, Serializable, IDLEntity, Streamable, StreamableValue, ValueBase
- Direct Known Subclasses:
- LocalSeismogramImpl
public class SeismogramAttrImpl
- extends LocalSeismogram
Implementation of the SeismogramAttr abstract class that is generated from
the IDL compiler. This holds the metadata for a seismogram, ie everything
except the actual timeseries data points.
Created: Wed Feb 23 12:51:21 2000
- Version:
- Author:
- Philip Crotwell
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
SeismogramAttrImpl()
A protected constructor that creates an empty SeismogramAttrImpl
instance. |
|
SeismogramAttrImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sample_info,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history)
creates a new SeismogramAttrImpl. |
|
SeismogramAttrImpl(String id,
Time begin_time,
int num_points,
Sampling sample_info,
Unit y_unit,
ChannelId channel_id)
|
|
Method Summary |
void |
append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info)
|
void |
append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info)
|
void |
append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info)
|
void |
append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info)
|
void |
append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info)
|
void |
append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info)
|
boolean |
can_convert_to_double()
|
boolean |
can_convert_to_float()
|
boolean |
can_convert_to_long()
|
boolean |
can_convert_to_short()
|
void |
close()
|
static Serializable |
createEmpty()
A factory method to create an empty SeismogramAttrImpl. |
double[] |
get_as_doubles()
|
EncodedData[] |
get_as_encoded()
|
float[] |
get_as_floats()
|
int[] |
get_as_longs()
|
short[] |
get_as_shorts()
|
AuditElement[] |
get_audit_trail()
|
String |
get_id()
|
MicroSecondDate |
getBeginTime()
Gets the time of the first sample. |
ChannelId |
getChannelID()
|
MicroSecondDate |
getEndTime()
|
String |
getName()
|
int |
getNumPoints()
|
ParameterRef[] |
getParameterRefs()
|
Property[] |
getProperties()
|
String |
getProperty(String name)
|
SamplingImpl |
getSampling()
|
TimeInterval |
getTimeInterval()
|
UnitImpl |
getUnit()
|
boolean |
is_closed()
|
boolean |
is_double()
|
boolean |
is_encoded()
|
boolean |
is_float()
|
boolean |
is_long()
|
boolean |
is_short()
|
void |
setName(String name)
Sets a name, for human readablilty. |
void |
setParameterRefs(ParameterRef[] parm_ids)
|
void |
setProperties(Property[] props)
|
void |
setProperty(String name,
String value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beginTime
protected MicroSecondDate beginTime
- Cache for the begintime of the seismogram. Just to avoid reparsing the
ISO time string.
SeismogramAttrImpl
protected SeismogramAttrImpl()
- A protected constructor that creates an empty SeismogramAttrImpl
instance. This is to be used only by the ORB for unmarshelling
valuetypes that have been sent via IIOP.
SeismogramAttrImpl
public SeismogramAttrImpl(String id,
Time begin_time,
int num_points,
Sampling sample_info,
Unit y_unit,
ChannelId channel_id)
SeismogramAttrImpl
public SeismogramAttrImpl(String id,
Property[] properties,
Time begin_time,
int num_points,
Sampling sample_info,
Unit y_unit,
ChannelId channel_id,
ParameterRef[] parm_ids,
Quantity[] time_corrections,
Sampling[] sample_rate_history)
- creates a new SeismogramAttrImpl.
- Parameters:
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" property for labeling a display.begin_time - that time of the first sample in the seismogram.num_points - The number of sample points.sample_info - The frequency of sampling.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. Must be of type
time intervals (ie convertable to seconds) even though
the signature is Quantity.
createEmpty
public static Serializable createEmpty()
- A factory method to create an empty SeismogramAttrImpl.
This is to be used only by the ORB for unmarshelling
valuetypes that have been sent via IIOP.
get_id
public String get_id()
- Specified by:
get_id in class SeismogramAttr
getNumPoints
public int getNumPoints()
setProperties
public void setProperties(Property[] props)
getProperties
public Property[] getProperties()
getProperty
public String getProperty(String name)
setProperty
public void setProperty(String name,
String value)
setParameterRefs
public void setParameterRefs(ParameterRef[] parm_ids)
getParameterRefs
public ParameterRef[] getParameterRefs()
getBeginTime
public MicroSecondDate getBeginTime()
throws UnsupportedFormat
- Gets the time of the first sample.
- Throws:
UnsupportedFormat - if the time string is not recognized.
getTimeInterval
public TimeInterval getTimeInterval()
getEndTime
public MicroSecondDate getEndTime()
getName
public String getName()
setName
public void setName(String name)
- Sets a name, for human readablilty.
getUnit
public UnitImpl getUnit()
getChannelID
public ChannelId getChannelID()
getSampling
public SamplingImpl getSampling()
is_closed
public boolean is_closed()
- Specified by:
is_closed in interface TimeSeriesAccess- Specified by:
is_closed in class LocalSeismogram
is_long
public boolean is_long()
- Specified by:
is_long in interface TimeSeriesAccess- Specified by:
is_long in class LocalSeismogram
is_float
public boolean is_float()
- Specified by:
is_float in interface TimeSeriesAccess- Specified by:
is_float in class LocalSeismogram
is_double
public boolean is_double()
- Specified by:
is_double in interface TimeSeriesAccess- Specified by:
is_double in class LocalSeismogram
is_short
public boolean is_short()
- Specified by:
is_short in interface TimeSeriesAccess- Specified by:
is_short in class LocalSeismogram
is_encoded
public boolean is_encoded()
- Specified by:
is_encoded in interface TimeSeriesAccess- Specified by:
is_encoded in class LocalSeismogram
can_convert_to_long
public boolean can_convert_to_long()
- Specified by:
can_convert_to_long in interface TimeSeriesAccess- Specified by:
can_convert_to_long in class LocalSeismogram
can_convert_to_float
public boolean can_convert_to_float()
- Specified by:
can_convert_to_float in interface TimeSeriesAccess- Specified by:
can_convert_to_float in class LocalSeismogram
can_convert_to_double
public boolean can_convert_to_double()
- Specified by:
can_convert_to_double in interface TimeSeriesAccess- Specified by:
can_convert_to_double in class LocalSeismogram
can_convert_to_short
public boolean can_convert_to_short()
- Specified by:
can_convert_to_short in interface TimeSeriesAccess- Specified by:
can_convert_to_short in class LocalSeismogram
get_as_longs
public int[] get_as_longs()
throws FissuresException
- Specified by:
get_as_longs in interface TimeSeriesAccess- Specified by:
get_as_longs in class LocalSeismogram
- Throws:
FissuresException
get_as_shorts
public short[] get_as_shorts()
throws FissuresException
- Specified by:
get_as_shorts in interface TimeSeriesAccess- Specified by:
get_as_shorts in class LocalSeismogram
- Throws:
FissuresException
get_as_floats
public float[] get_as_floats()
throws FissuresException
- Specified by:
get_as_floats in interface TimeSeriesAccess- Specified by:
get_as_floats in class LocalSeismogram
- Throws:
FissuresException
get_as_doubles
public double[] get_as_doubles()
throws FissuresException
- Specified by:
get_as_doubles in interface TimeSeriesAccess- Specified by:
get_as_doubles in class LocalSeismogram
- Throws:
FissuresException
get_as_encoded
public EncodedData[] get_as_encoded()
throws FissuresException
- Specified by:
get_as_encoded in interface TimeSeriesAccess- Specified by:
get_as_encoded in class LocalSeismogram
- Throws:
FissuresException
close
public void close()
- Specified by:
close in interface TimeSeriesAdmin- Specified by:
close in class LocalSeismogram
get_audit_trail
public AuditElement[] get_audit_trail()
throws NotImplemented
- Specified by:
get_audit_trail in interface AuditSystemAccess- Specified by:
get_audit_trail in class LocalSeismogram
- Throws:
NotImplemented
append_longs
public void append_longs(int seq_num,
int[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_longs in interface TimeSeriesAdmin- Specified by:
append_longs in class LocalSeismogram
- Throws:
SequenceOutOfOrder
append_shorts
public void append_shorts(int seq_num,
short[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_shorts in interface TimeSeriesAdmin- Specified by:
append_shorts in class LocalSeismogram
- Throws:
SequenceOutOfOrder
append_floats
public void append_floats(int seq_num,
float[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_floats in interface TimeSeriesAdmin- Specified by:
append_floats in class LocalSeismogram
- Throws:
SequenceOutOfOrder
append_doubles
public void append_doubles(int seq_num,
double[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_doubles in interface TimeSeriesAdmin- Specified by:
append_doubles in class LocalSeismogram
- Throws:
SequenceOutOfOrder
append_encoded_seq
public void append_encoded_seq(int seq_num,
EncodedData[] data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_encoded_seq in interface TimeSeriesAdmin- Specified by:
append_encoded_seq in class LocalSeismogram
- Throws:
SequenceOutOfOrder
append_encoded
public void append_encoded(int seq_num,
EncodedData data,
AuditInfo[] audit_info)
throws SequenceOutOfOrder
- Specified by:
append_encoded in interface TimeSeriesAdmin- Specified by:
append_encoded in class LocalSeismogram
- Throws:
SequenceOutOfOrder
Copyright © 1999-2007 The IRIS Consortium. All Rights Reserved.