TOAST Datamodel¶
Base Objects¶
Domain Overview¶
EventParameters¶
Config¶
QualityControl¶
Inventory¶
Routing¶
Journaling¶
ArclinkLog¶
DataAvailability¶
TsunamiParameters¶
Enumerations¶
DataUsedWaveType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
body waves |
|
1 |
P body waves |
|
2 |
long-period body waves |
|
3 |
surface waves |
|
4 |
intermediate-period surface waves |
|
5 |
long-period mantle waves |
|
6 |
unknown |
Used by:
EvaluationMode
ID |
Numeric value |
String value |
---|---|---|
|
0 |
manual |
|
1 |
automatic |
Used by:
EvaluationStatus
ID |
Numeric value |
String value |
---|---|---|
|
0 |
preliminary |
|
1 |
confirmed |
|
2 |
reviewed |
|
3 |
final |
|
4 |
rejected |
|
5 |
reported |
Used by:
EventDescriptionType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
felt report |
|
1 |
Flinn-Engdahl region |
|
2 |
local time |
|
3 |
tectonic summary |
|
4 |
nearest cities |
|
5 |
earthquake name |
|
6 |
region name |
Used by:
EventType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
not existing |
|
1 |
not locatable |
|
2 |
outside of network interest |
|
3 |
earthquake |
|
4 |
induced earthquake |
|
5 |
quarry blast |
|
6 |
explosion |
|
7 |
chemical explosion |
|
8 |
nuclear explosion |
|
9 |
landslide |
|
10 |
rockslide |
|
11 |
snow avalanche |
|
12 |
debris avalanche |
|
13 |
mine collapse |
|
14 |
building collapse |
|
15 |
volcanic eruption |
|
16 |
meteor impact |
|
17 |
plane crash |
|
18 |
sonic boom |
|
19 |
duplicate |
|
20 |
other |
|
21 |
not reported |
|
22 |
anthropogenic event |
|
23 |
collapse |
|
24 |
cavity collapse |
|
25 |
accidental explosion |
|
26 |
controlled explosion |
|
27 |
experimental explosion |
|
28 |
industrial explosion |
|
29 |
mining explosion |
|
30 |
road cut |
|
31 |
blasting levee |
|
32 |
induced or triggered event |
|
33 |
rock burst |
|
34 |
reservoir loading |
|
35 |
fluid injection |
|
36 |
fluid extraction |
|
37 |
crash |
|
38 |
train crash |
|
39 |
boat crash |
|
40 |
atmospheric event |
|
41 |
sonic blast |
|
42 |
acoustic noise |
|
43 |
thunder |
|
44 |
avalanche |
|
45 |
hydroacoustic event |
|
46 |
ice quake |
|
47 |
slide |
|
48 |
meteorite |
|
49 |
calving |
|
50 |
frost quake |
|
51 |
tremor pulse |
|
52 |
submarine landslide |
|
53 |
rocket launch |
|
54 |
rocket |
|
55 |
rocket impact |
|
56 |
artillery strike |
|
57 |
bomb detonation |
|
58 |
moving aircraft |
|
59 |
atmospheric meteor explosion |
|
60 |
volcano-tectonic |
|
61 |
volcanic long-period |
|
62 |
volcanic very-long-period |
|
63 |
volcanic hybrid |
|
64 |
volcanic rockfall |
|
65 |
volcanic tremor |
|
66 |
pyroclastic flow |
|
67 |
lahar |
Used by:
EventTypeCertainty
ID |
Numeric value |
String value |
---|---|---|
|
0 |
known |
|
1 |
suspected |
|
2 |
damaging |
|
3 |
felt |
Used by:
LogLevel
ID |
Numeric value |
String value |
---|---|---|
|
0 |
critical |
|
1 |
error |
|
2 |
warning |
|
3 |
notice |
|
4 |
info |
|
5 |
debug |
Used by:
LogType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
incident |
|
1 |
event |
|
2 |
magnitude |
|
3 |
origin |
|
4 |
focal mechanism |
|
5 |
simulation |
|
6 |
bulletin |
|
7 |
user |
|
8 |
other |
Used by:
MomentTensorMethod
ID |
Numeric value |
String value |
---|---|---|
|
0 |
CMT - general moment tensor |
|
1 |
CMT - moment tensor with zero trace |
|
2 |
CMT - double-couple source |
|
3 |
teleseismic |
|
4 |
regional |
Used by:
MomentTensorStatus
ID |
Numeric value |
String value |
---|---|---|
|
0 |
standard CMT solution |
|
1 |
quick CMT solution |
Used by:
OriginDepthType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
from location |
|
1 |
from moment tensor inversion |
|
2 |
from modeling of broad-band P waveforms |
|
3 |
constrained by depth phases |
|
4 |
constrained by direct phases |
|
5 |
operator assigned |
|
6 |
other |
Used by:
OriginType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
hypocenter |
|
1 |
centroid |
|
2 |
amplitude |
|
3 |
macroseismic |
|
4 |
rupture start |
|
5 |
rupture end |
Used by:
OriginUncertaintyDescription
ID |
Numeric value |
String value |
---|---|---|
|
0 |
horizontal uncertainty |
|
1 |
uncertainty ellipse |
|
2 |
confidence ellipsoid |
|
3 |
probability density function |
Used by:
PickOnset
ID |
Numeric value |
String value |
---|---|---|
|
0 |
emergent |
|
1 |
impulsive |
|
2 |
questionable |
Used by:
PickPolarity
ID |
Numeric value |
String value |
---|---|---|
|
0 |
positive |
|
1 |
negative |
|
2 |
undecidable |
Used by:
SimulationStatus
ID |
Numeric value |
String value |
---|---|---|
|
0 |
queued |
|
1 |
started |
|
2 |
running |
|
3 |
finished |
|
4 |
failed |
Used by:
SourceOrigin
ID |
Numeric value |
String value |
---|---|---|
|
0 |
messaging |
|
1 |
database |
|
2 |
user |
Used by:
SourceTimeFunctionType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
box car |
|
1 |
triangle |
|
2 |
trapezoid |
|
3 |
unknown |
Used by:
SourceType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
earthquake |
|
1 |
volcano |
|
2 |
landslide |
|
3 |
celestial object |
|
4 |
unknown |
|
5 |
other |
Used by:
StationGroupType
ID |
Numeric value |
String value |
---|---|---|
|
0 |
deployment |
|
1 |
array |
Used by:
Reference¶
Seiscomp::DataModel::Object¶
- Seiscomp::DataModel::Object
- seiscomp.datamodel.parent()¶
- Return type:
Seiscomp::DataModel::PublicObject
Returns the Seiscomp::DataModel::PublicObject parent object is available, None otherwise.
- seiscomp.datamodel.setParent(parent)¶
- Parameters:
parent – A Seiscomp::DataModel::PublicObject.
- Return type:
A Boolean flag indicating success with True, False otherwise.
Sets the parent to Seiscomp::DataModel::PublicObject. This is an internal method and should not be called from applications. Instead a class should be derived from Seiscomp::DataModel::Object which calls this method internally when children are being added or removed.
- seiscomp.datamodel.update()¶
Creates an update notifier for this object ignoring its children. If an attribute of an object is changed this methods needs to be called manually since attribute changes are not tracked automatically by the notifier framework. Only hierarchy modifications such as add and remove child objects.
- seiscomp.datamodel.assign(other)¶
- Parameters:
other – A Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise.
Assign the metadata of ‘other’ to ‘this’ without others children. Returns True, if ‘this’ and ‘other’ are of same type, False otherwise.
- seiscomp.datamodel.clone()¶
- Return type:
A Seiscomp::DataModel::Object.
Clones an object. If the clonee is a Seiscomp::DataModel::PublicObject it is not registered in the global instance pool but receives exactly the same publicID like ‘this’.
- seiscomp.datamodel.attachTo(parent)¶
- Return type:
A Boolean flag indicating success with True, False otherwise.
Adds the object to a parent. If it has already a parent or is of wrong type, False is returned.
- seiscomp.datamodel.detachFrom(parent)¶
- Return type:
A Boolean flag indicating success with True, False otherwise.
Removes the object from a parent. If it has another or no parent, False is returned.
- seiscomp.datamodel.detach()¶
- Return type:
A Boolean flag indicating success with True, False otherwise.
Removes the object from its parent object if a parent is set.
- seiscomp.datamodel.accept(visitor)¶
- Parameters:
visitor – A visitor.
Seiscomp::DataModel::PublicObject¶
- Seiscomp::DataModel::PublicObject
Inherits Seiscomp::DataModel::Object.
- seiscomp.datamodel.setPublicID(id)¶
Sets the publicID of the object.
- seiscomp.datamodel.publicID()¶
Returns the publicID of the object.
Notifier¶
- class seiscomp.datamodel.Notifier(parentID, operation, object)¶
Class to represent a change in the object tree. A notifier takes a parentID, an operation to apply and a child object. The child object is without children.
- static Enable()¶
Enables the notifier pool. If enabled, notifiers are automatically created if the object tree is being changed.
- static Enable()¶
Disables the notifier pool.
- static SetEnabled(enable)¶
Sets the state of the notifier pool.
- static IsEnabled()¶
Returns the notification pool state. The default is TRUE.
- static SetCheckEnabled(enable)¶
Enables/disables checking previous inserted notifiers when a new notifiers is about to be queued. When enabled, and OP_ADD and OP_UPDATE of the same object results in only one OP_ADD notifier.
- static IsCheckEnabled()¶
Returns the current ‘check’ state.
- static GetMessage(allNotifier=True)¶
- Parameters:
allNotifier – Defines whether to return one message including all notifiers or one message including one notifier.
- Return type:
A NotifierMessage object if there is one. If each notifier is being send by its own message, this method should be called until it returns None.
Returns a message holding all notifications since the last call. All stored notifications will be removed from the notification pool.
- static Size()¶
- Return type:
Integer value.
Returns the size of the notifier objects currently stored.
- static Clear()¶
Clears all buffered notifiers.
- static Create(parentID, operation, object)¶
- Parameters:
parentID – The publicID of the parent object that is target of the operation.
operation – The operation applied to the parent object.
object – The object that is the operation’s “operand”.
- Return type:
The Notifier object.
Creates a notifier object managed by the global notifier pool. If the notifier pool is disabled no notifier instance will be created and None is being returned.
- static Create(parent, operation, object)¶
:param parent The parent object that is target of the operation. :param operation: The operation applied to the parent object. :param object: The object that is the operation’s “operand”. :rtype: The Notifier object.
Creates a notifier object managed by the global notifier pool. If the notifier pool is disabled no notifier instance will be created and None is being returned.
- apply()¶
- Return type:
A flag indicating success with True, False otherwise.
Applies the notifier to the local object tree.
Access¶
- class seiscomp.datamodel.Access¶
Inherits Seiscomp::DataModel::Object.
Parents:
routing
– Routing
Attributes:
networkCode
– stringstationCode
– stringlocationCode
– stringstreamCode
– stringuser
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Access if the cast was successful, None otherwise.
Cast an arbitrary object to Access if the internal wrapped representation is an Access object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Access to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type AccessIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Access
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setLocationCode(locationCode)¶
- Parameters:
locationCode – string
- locationCode()¶
- Return type:
string
- setStreamCode(streamCode)¶
- Parameters:
streamCode – string
- streamCode()¶
- Return type:
string
- setUser(user)¶
- Parameters:
user – string
- user()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- routing()¶
- Return type:
Returns the parent Routing if available. Returns None if the parent is not a Routing. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Access.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Amplitude¶
- class seiscomp.datamodel.Amplitude¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParametersincident
– Incident
Children:
comment
– Comment
Attributes:
publicID
: stringtype
– stringamplitude
– RealQuantity (optional)timeWindow
– TimeWindow (optional)period
– RealQuantity (optional)snr
– float (optional)unit
– stringpickID
– stringwaveformID
– WaveformStreamID (optional)filterID
– stringmethodID
– stringscalingTime
– TimeQuantity (optional)magnitudeHint
– stringevaluationMode
– EvaluationMode (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Amplitude if the cast was successful, None otherwise.
Cast an arbitrary object to Amplitude if the internal wrapped representation is an Amplitude object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Amplitude.
Creates and registers (if enabled) a Amplitude instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Amplitude.
Creates and registers (if enabled) a Amplitude instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Amplitude to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setAmplitude(amplitude)¶
- Parameters:
amplitude – RealQuantity
- amplitude()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTimeWindow(timeWindow)¶
- Parameters:
timeWindow – TimeWindow
- timeWindow()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPeriod(period)¶
- Parameters:
period – RealQuantity
- period()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSnr(snr)¶
- Parameters:
snr – float
- snr()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUnit(unit)¶
- Parameters:
unit – string
- unit()¶
- Return type:
string
- setPickID(pickID)¶
- Parameters:
pickID – string
- pickID()¶
- Return type:
string
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setFilterID(filterID)¶
- Parameters:
filterID – string
- filterID()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setScalingTime(scalingTime)¶
- Parameters:
scalingTime – TimeQuantity
- scalingTime()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMagnitudeHint(magnitudeHint)¶
- Parameters:
magnitudeHint – string
- magnitudeHint()¶
- Return type:
string
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Amplitude. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Amplitude.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Amplitude.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
AmplitudeReference¶
- class seiscomp.datamodel.AmplitudeReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
reading
– Reading
Attributes:
amplitudeID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type AmplitudeReference if the cast was successful, None otherwise.
Cast an arbitrary object to AmplitudeReference if the internal wrapped representation is an AmplitudeReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type AmplitudeReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type AmplitudeReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – AmplitudeReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setAmplitudeID(amplitudeID)¶
- Parameters:
amplitudeID – string
- amplitudeID()¶
- Return type:
string
- reading()¶
- Return type:
Returns the parent Reading if available. Returns None if the parent is not a Reading. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned AmplitudeReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ArclinkLog¶
- class seiscomp.datamodel.ArclinkLog¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
arclinkRequest
– ArclinkRequestarclinkUser
– ArclinkUser
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkLog if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkLog if the internal wrapped representation is an ArclinkLog object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkLog to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(arclinkRequest)¶
- Parameters:
arclinkRequest – Object of type ArclinkRequest
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ArclinkRequest object to ArclinkLog. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(arclinkUser)¶
- Parameters:
arclinkUser – Object of type ArclinkUser
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ArclinkUser object to ArclinkLog. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(arclinkRequest)¶
- Parameters:
arclinkRequest – Object of type ArclinkRequest
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ArclinkRequest object from ArclinkLog.
- remove(arclinkUser)¶
- Parameters:
arclinkUser – Object of type ArclinkUser
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ArclinkUser object from ArclinkLog.
- removeArclinkRequest(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkRequest(arclinkRequestIndex);
- Parameters:
arclinkRequestIndex – The index of the object to be removed of type ArclinkRequestIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkUser(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkUser(arclinkUserIndex);
- Parameters:
arclinkUserIndex – The index of the object to be removed of type ArclinkUserIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- arclinkRequestCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ArclinkRequest child objects.
- arclinkUserCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ArclinkUser child objects.
- arclinkRequest(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ArclinkRequest.
Returns the ArclinkRequest at index idx.
- arclinkRequest(arclinkRequestIndex)¶
- Parameters:
arclinkRequestIndex – The index of the object to be removed of type ArclinkRequestIndex.
- Return type:
Object of type ArclinkRequest.
Returns the ArclinkRequest at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- arclinkUser(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ArclinkUser.
Returns the ArclinkUser at index idx.
- arclinkUser(arclinkUserIndex)¶
- Parameters:
arclinkUserIndex – The index of the object to be removed of type ArclinkUserIndex.
- Return type:
Object of type ArclinkUser.
Returns the ArclinkUser at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findArclinkRequest(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ArclinkRequest.
Returns the child object with a certain publicID, None otherwise.
- findArclinkUser(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ArclinkUser.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ArclinkLog.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ArclinkRequest¶
- class seiscomp.datamodel.ArclinkRequest¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
arclinkLog
– ArclinkLog
Children:
arclinkStatusLine
– ArclinkStatusLinearclinkRequestLine
– ArclinkRequestLine
Attributes:
publicID
: stringrequestID
– stringuserID
– stringuserIP
– stringclientID
– stringclientIP
– stringtype
– stringcreated
– seiscomp.core.Timestatus
– stringmessage
– stringlabel
– stringheader
– stringsummary
– ArclinkRequestSummary (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkRequest if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkRequest if the internal wrapped representation is an ArclinkRequest object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ArclinkRequest.
Creates and registers (if enabled) a ArclinkRequest instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ArclinkRequest.
Creates and registers (if enabled) a ArclinkRequest instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkRequest to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ArclinkRequestIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ArclinkRequest
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setRequestID(requestID)¶
- Parameters:
requestID – string
- requestID()¶
- Return type:
string
- setUserID(userID)¶
- Parameters:
userID – string
- userID()¶
- Return type:
string
- setUserIP(userIP)¶
- Parameters:
userIP – string
- userIP()¶
- Return type:
string
- setClientID(clientID)¶
- Parameters:
clientID – string
- clientID()¶
- Return type:
string
- setClientIP(clientIP)¶
- Parameters:
clientIP – string
- clientIP()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
- setStatus(status)¶
- Parameters:
status – string
- status()¶
- Return type:
string
- setMessage(message)¶
- Parameters:
message – string
- message()¶
- Return type:
string
- setLabel(label)¶
- Parameters:
label – string
- label()¶
- Return type:
string
- setHeader(header)¶
- Parameters:
header – string
- header()¶
- Return type:
string
- setSummary(summary)¶
- Parameters:
summary – ArclinkRequestSummary
- summary()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(arclinkStatusLine)¶
- Parameters:
arclinkStatusLine – Object of type ArclinkStatusLine
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ArclinkStatusLine object to ArclinkRequest. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(arclinkRequestLine)¶
- Parameters:
arclinkRequestLine – Object of type ArclinkRequestLine
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ArclinkRequestLine object to ArclinkRequest. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(arclinkStatusLine)¶
- Parameters:
arclinkStatusLine – Object of type ArclinkStatusLine
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ArclinkStatusLine object from ArclinkRequest.
- remove(arclinkRequestLine)¶
- Parameters:
arclinkRequestLine – Object of type ArclinkRequestLine
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ArclinkRequestLine object from ArclinkRequest.
- removeArclinkStatusLine(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkStatusLine(arclinkStatusLineIndex);
- Parameters:
arclinkStatusLineIndex – The index of the object to be removed of type ArclinkStatusLineIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkRequestLine(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArclinkRequestLine(arclinkRequestLineIndex);
- Parameters:
arclinkRequestLineIndex – The index of the object to be removed of type ArclinkRequestLineIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- arclinkStatusLineCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ArclinkStatusLine child objects.
- arclinkRequestLineCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ArclinkRequestLine child objects.
- arclinkStatusLine(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ArclinkStatusLine.
Returns the ArclinkStatusLine at index idx.
- arclinkStatusLine(arclinkStatusLineIndex)¶
- Parameters:
arclinkStatusLineIndex – The index of the object to be removed of type ArclinkStatusLineIndex.
- Return type:
Object of type ArclinkStatusLine.
Returns the ArclinkStatusLine at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- arclinkRequestLine(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ArclinkRequestLine.
Returns the ArclinkRequestLine at index idx.
- arclinkRequestLine(arclinkRequestLineIndex)¶
- Parameters:
arclinkRequestLineIndex – The index of the object to be removed of type ArclinkRequestLineIndex.
- Return type:
Object of type ArclinkRequestLine.
Returns the ArclinkRequestLine at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- arclinkLog()¶
- Return type:
Returns the parent ArclinkLog if available. Returns None if the parent is not a ArclinkLog. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ArclinkRequest.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ArclinkRequestLine¶
- class seiscomp.datamodel.ArclinkRequestLine¶
Inherits Seiscomp::DataModel::Object.
Parents:
arclinkRequest
– ArclinkRequest
Attributes:
start
– seiscomp.core.Timeend
– seiscomp.core.TimestreamID
– WaveformStreamIDrestricted
– boolean (optional)shared
– boolean (optional)netClass
– stringconstraints
– stringstatus
– ArclinkStatusLine
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkRequestLine if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkRequestLine if the internal wrapped representation is an ArclinkRequestLine object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkRequestLine to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ArclinkRequestLineIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ArclinkRequestLine
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
- setStreamID(streamID)¶
- Parameters:
streamID – WaveformStreamID
- streamID()¶
- Return type:
- setRestricted(restricted)¶
- Parameters:
restricted – boolean
- restricted()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- Parameters:
shared – boolean
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNetClass(netClass)¶
- Parameters:
netClass – string
- netClass()¶
- Return type:
string
- setConstraints(constraints)¶
- Parameters:
constraints – string
- constraints()¶
- Return type:
string
- setStatus(status)¶
- Parameters:
status – ArclinkStatusLine
- status()¶
- Return type:
- arclinkRequest()¶
- Return type:
Returns the parent ArclinkRequest if available. Returns None if the parent is not a ArclinkRequest. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ArclinkRequestLine.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ArclinkRequestSummary¶
- class seiscomp.datamodel.ArclinkRequestSummary¶
Inherits Seiscomp::DataModel::Object.
Attributes:
okLineCount
– inttotalLineCount
– intaverageTimeWindow
– int
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkRequestSummary if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkRequestSummary if the internal wrapped representation is an ArclinkRequestSummary object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkRequestSummary to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setOkLineCount(okLineCount)¶
- Parameters:
okLineCount – int
- okLineCount()¶
- Return type:
int
- setTotalLineCount(totalLineCount)¶
- Parameters:
totalLineCount – int
- totalLineCount()¶
- Return type:
int
- setAverageTimeWindow(averageTimeWindow)¶
- Parameters:
averageTimeWindow – int
- averageTimeWindow()¶
- Return type:
int
ArclinkStatusLine¶
- class seiscomp.datamodel.ArclinkStatusLine¶
Inherits Seiscomp::DataModel::Object.
Parents:
arclinkRequest
– ArclinkRequest
Attributes:
type
– stringstatus
– stringsize
– int (optional)message
– stringvolumeID
– string
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkStatusLine if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkStatusLine if the internal wrapped representation is an ArclinkStatusLine object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkStatusLine to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ArclinkStatusLineIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ArclinkStatusLine
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setStatus(status)¶
- Parameters:
status – string
- status()¶
- Return type:
string
- setSize(size)¶
- Parameters:
size – int
- size()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMessage(message)¶
- Parameters:
message – string
- message()¶
- Return type:
string
- setVolumeID(volumeID)¶
- Parameters:
volumeID – string
- volumeID()¶
- Return type:
string
- arclinkRequest()¶
- Return type:
Returns the parent ArclinkRequest if available. Returns None if the parent is not a ArclinkRequest. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ArclinkStatusLine.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ArclinkUser¶
- class seiscomp.datamodel.ArclinkUser¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
arclinkLog
– ArclinkLog
Attributes:
publicID
: stringname
– stringemail
– stringpassword
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ArclinkUser if the cast was successful, None otherwise.
Cast an arbitrary object to ArclinkUser if the internal wrapped representation is an ArclinkUser object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ArclinkUser.
Creates and registers (if enabled) a ArclinkUser instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ArclinkUser.
Creates and registers (if enabled) a ArclinkUser instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ArclinkUser to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ArclinkUserIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ArclinkUser
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setEmail(email)¶
- Parameters:
email – string
- email()¶
- Return type:
string
- setPassword(password)¶
- Parameters:
password – string
- password()¶
- Return type:
string
- arclinkLog()¶
- Return type:
Returns the parent ArclinkLog if available. Returns None if the parent is not a ArclinkLog. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ArclinkUser.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Arrival¶
- class seiscomp.datamodel.Arrival¶
Inherits Seiscomp::DataModel::Object.
Parents:
origin
– Origin
Attributes:
pickID
– stringphase
– PhasetimeCorrection
– float (optional)azimuth
– float (optional)distance
– float (optional)takeOffAngle
– float (optional)timeResidual
– float (optional)horizontalSlownessResidual
– float (optional)backazimuthResidual
– float (optional)timeUsed
– boolean (optional)horizontalSlownessUsed
– boolean (optional)backazimuthUsed
– boolean (optional)weight
– float (optional)earthModelID
– stringpreliminary
– boolean (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Arrival if the cast was successful, None otherwise.
Cast an arbitrary object to Arrival if the internal wrapped representation is an Arrival object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Arrival to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ArrivalIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Arrival
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setPickID(pickID)¶
- Parameters:
pickID – string
- pickID()¶
- Return type:
string
- setTimeCorrection(timeCorrection)¶
- Parameters:
timeCorrection – float
- timeCorrection()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuth(azimuth)¶
- Parameters:
azimuth – float
- azimuth()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDistance(distance)¶
- Parameters:
distance – float
- distance()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTakeOffAngle(takeOffAngle)¶
- Parameters:
takeOffAngle – float
- takeOffAngle()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTimeResidual(timeResidual)¶
- Parameters:
timeResidual – float
- timeResidual()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setHorizontalSlownessResidual(horizontalSlownessResidual)¶
- Parameters:
horizontalSlownessResidual – float
- horizontalSlownessResidual()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setBackazimuthResidual(backazimuthResidual)¶
- Parameters:
backazimuthResidual – float
- backazimuthResidual()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTimeUsed(timeUsed)¶
- Parameters:
timeUsed – boolean
- timeUsed()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setHorizontalSlownessUsed(horizontalSlownessUsed)¶
- Parameters:
horizontalSlownessUsed – boolean
- horizontalSlownessUsed()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setBackazimuthUsed(backazimuthUsed)¶
- Parameters:
backazimuthUsed – boolean
- backazimuthUsed()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setWeight(weight)¶
- Parameters:
weight – float
- weight()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEarthModelID(earthModelID)¶
- Parameters:
earthModelID – string
- earthModelID()¶
- Return type:
string
- setPreliminary(preliminary)¶
- Parameters:
preliminary – boolean
- preliminary()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- origin()¶
- Return type:
Returns the parent Origin if available. Returns None if the parent is not a Origin. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Arrival.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
AuxDevice¶
- class seiscomp.datamodel.AuxDevice¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Children:
auxSource
– AuxSource
Attributes:
publicID
: stringname
– stringdescription
– stringmodel
– stringmanufacturer
– stringremark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type AuxDevice if the cast was successful, None otherwise.
Cast an arbitrary object to AuxDevice if the internal wrapped representation is an AuxDevice object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type AuxDevice.
Creates and registers (if enabled) a AuxDevice instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type AuxDevice.
Creates and registers (if enabled) a AuxDevice instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type AuxDevice to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type AuxDeviceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – AuxDevice
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setModel(model)¶
- Parameters:
model – string
- model()¶
- Return type:
string
- setManufacturer(manufacturer)¶
- Parameters:
manufacturer – string
- manufacturer()¶
- Return type:
string
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(auxSource)¶
- Parameters:
auxSource – Object of type AuxSource
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a AuxSource object to AuxDevice. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(auxSource)¶
- Parameters:
auxSource – Object of type AuxSource
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added AuxSource object from AuxDevice.
- removeAuxSource(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAuxSource(auxSourceIndex);
- Parameters:
auxSourceIndex – The index of the object to be removed of type AuxSourceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- auxSourceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of AuxSource child objects.
- auxSource(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type AuxSource.
Returns the AuxSource at index idx.
- auxSource(auxSourceIndex)¶
- Parameters:
auxSourceIndex – The index of the object to be removed of type AuxSourceIndex.
- Return type:
Object of type AuxSource.
Returns the AuxSource at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned AuxDevice.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
AuxSource¶
- class seiscomp.datamodel.AuxSource¶
Inherits Seiscomp::DataModel::Object.
Parents:
auxDevice
– AuxDevice
Attributes:
name
– stringdescription
– stringunit
– stringconversion
– stringsampleRateNumerator
– int (optional)sampleRateDenominator
– int (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type AuxSource if the cast was successful, None otherwise.
Cast an arbitrary object to AuxSource if the internal wrapped representation is an AuxSource object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type AuxSource to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type AuxSourceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – AuxSource
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setUnit(unit)¶
- Parameters:
unit – string
- unit()¶
- Return type:
string
- setConversion(conversion)¶
- Parameters:
conversion – string
- conversion()¶
- Return type:
string
- setSampleRateNumerator(sampleRateNumerator)¶
- Parameters:
sampleRateNumerator – int
- sampleRateNumerator()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSampleRateDenominator(sampleRateDenominator)¶
- Parameters:
sampleRateDenominator – int
- sampleRateDenominator()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- auxDevice()¶
- Return type:
Returns the parent AuxDevice if available. Returns None if the parent is not a AuxDevice. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned AuxSource.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
AuxStream¶
- class seiscomp.datamodel.AuxStream¶
Inherits Seiscomp::DataModel::Object.
Parents:
sensorLocation
– SensorLocation
Attributes:
code
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)device
– stringdeviceSerialNumber
– stringsource
– stringformat
– stringflags
– stringrestricted
– boolean (optional)shared
– boolean (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type AuxStream if the cast was successful, None otherwise.
Cast an arbitrary object to AuxStream if the internal wrapped representation is an AuxStream object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type AuxStream to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type AuxStreamIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – AuxStream
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDevice(device)¶
- Parameters:
device – string
- device()¶
- Return type:
string
- setDeviceSerialNumber(deviceSerialNumber)¶
- Parameters:
deviceSerialNumber – string
- deviceSerialNumber()¶
- Return type:
string
- setSource(source)¶
- Parameters:
source – string
- source()¶
- Return type:
string
- setFormat(format)¶
- Parameters:
format – string
- format()¶
- Return type:
string
- setFlags(flags)¶
- Parameters:
flags – string
- flags()¶
- Return type:
string
- setRestricted(restricted)¶
- Parameters:
restricted – boolean
- restricted()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- Parameters:
shared – boolean
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- sensorLocation()¶
- Return type:
Returns the parent SensorLocation if available. Returns None if the parent is not a SensorLocation. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned AuxStream.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Axis¶
- class seiscomp.datamodel.Axis¶
Inherits Seiscomp::DataModel::Object.
Attributes:
azimuth
– RealQuantityplunge
– RealQuantitylength
– RealQuantity
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Axis if the cast was successful, None otherwise.
Cast an arbitrary object to Axis if the internal wrapped representation is an Axis object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Axis to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setAzimuth(azimuth)¶
- Parameters:
azimuth – RealQuantity
- azimuth()¶
- Return type:
- setPlunge(plunge)¶
- Parameters:
plunge – RealQuantity
- plunge()¶
- Return type:
- setLength(length)¶
- Parameters:
length – RealQuantity
- length()¶
- Return type:
Blob¶
- class seiscomp.datamodel.Blob¶
Inherits Seiscomp::DataModel::Object.
Attributes:
content
– string
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Blob if the cast was successful, None otherwise.
Cast an arbitrary object to Blob if the internal wrapped representation is an Blob object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Blob to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setContent(content)¶
- Parameters:
content – string
- content()¶
- Return type:
string
BulletinContext¶
- class seiscomp.datamodel.BulletinContext¶
Inherits Seiscomp::DataModel::Object.
Parents:
incident
– Incident
Attributes:
incidentTemplate
– stringrevision
– intstatus
– stringcreationInfo
– CreationInfodataID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type BulletinContext if the cast was successful, None otherwise.
Cast an arbitrary object to BulletinContext if the internal wrapped representation is an BulletinContext object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type BulletinContext to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type BulletinContextIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – BulletinContext
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setIncidentTemplate(incidentTemplate)¶
- Parameters:
incidentTemplate – string
- incidentTemplate()¶
- Return type:
string
- setRevision(revision)¶
- Parameters:
revision – int
- revision()¶
- Return type:
int
- setStatus(status)¶
- Parameters:
status – string
- status()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
- setDataID(dataID)¶
- Parameters:
dataID – string
- dataID()¶
- Return type:
string
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned BulletinContext.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
BulletinData¶
- class seiscomp.datamodel.BulletinData¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
tsunamiParameters
– TsunamiParameters
Attributes:
publicID
: stringparams
– stringtemplateContent
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type BulletinData if the cast was successful, None otherwise.
Cast an arbitrary object to BulletinData if the internal wrapped representation is an BulletinData object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type BulletinData.
Creates and registers (if enabled) a BulletinData instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type BulletinData.
Creates and registers (if enabled) a BulletinData instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type BulletinData to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setParams(params)¶
- Parameters:
params – string
- params()¶
- Return type:
string
- setTemplateContent(templateContent)¶
- Parameters:
templateContent – string
- templateContent()¶
- Return type:
string
- tsunamiParameters()¶
- Return type:
Returns the parent TsunamiParameters if available. Returns None if the parent is not a TsunamiParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned BulletinData.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Comment¶
- class seiscomp.datamodel.Comment¶
Inherits Seiscomp::DataModel::Object.
Parents:
momentTensor
– MomentTensorfocalMechanism
– FocalMechanismamplitude
– Amplitudemagnitude
– MagnitudestationMagnitude
– StationMagnitudepick
– Pickevent
– Eventorigin
– Originparameter
– ParameterparameterSet
– ParameterSetstream
– StreamsensorLocation
– SensorLocationstation
– Stationnetwork
– Network
Attributes:
text
– stringid
– stringstart
– seiscomp.core.Time (optional)end
– seiscomp.core.Time (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Comment if the cast was successful, None otherwise.
Cast an arbitrary object to Comment if the internal wrapped representation is an Comment object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Comment to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type CommentIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Comment
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setText(text)¶
- Parameters:
text – string
- text()¶
- Return type:
string
- setId(id)¶
- Parameters:
id – string
- id()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- momentTensor()¶
- Return type:
Returns the parent MomentTensor if available. Returns None if the parent is not a MomentTensor. This is a convenience wrapper for parent().
- focalMechanism()¶
- Return type:
Returns the parent FocalMechanism if available. Returns None if the parent is not a FocalMechanism. This is a convenience wrapper for parent().
- amplitude()¶
- Return type:
Returns the parent Amplitude if available. Returns None if the parent is not a Amplitude. This is a convenience wrapper for parent().
- magnitude()¶
- Return type:
Returns the parent Magnitude if available. Returns None if the parent is not a Magnitude. This is a convenience wrapper for parent().
- stationMagnitude()¶
- Return type:
Returns the parent StationMagnitude if available. Returns None if the parent is not a StationMagnitude. This is a convenience wrapper for parent().
- pick()¶
- Return type:
Returns the parent Pick if available. Returns None if the parent is not a Pick. This is a convenience wrapper for parent().
- event()¶
- Return type:
Returns the parent Event if available. Returns None if the parent is not a Event. This is a convenience wrapper for parent().
- origin()¶
- Return type:
Returns the parent Origin if available. Returns None if the parent is not a Origin. This is a convenience wrapper for parent().
- parameter()¶
- Return type:
Returns the parent Parameter if available. Returns None if the parent is not a Parameter. This is a convenience wrapper for parent().
- parameterSet()¶
- Return type:
Returns the parent ParameterSet if available. Returns None if the parent is not a ParameterSet. This is a convenience wrapper for parent().
- stream()¶
- Return type:
Returns the parent Stream if available. Returns None if the parent is not a Stream. This is a convenience wrapper for parent().
- sensorLocation()¶
- Return type:
Returns the parent SensorLocation if available. Returns None if the parent is not a SensorLocation. This is a convenience wrapper for parent().
- station()¶
- Return type:
Returns the parent Station if available. Returns None if the parent is not a Station. This is a convenience wrapper for parent().
- network()¶
- Return type:
Returns the parent Network if available. Returns None if the parent is not a Network. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Comment.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ComplexArray¶
- class seiscomp.datamodel.ComplexArray¶
Inherits Seiscomp::DataModel::Object.
Attributes:
content
– complex (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ComplexArray if the cast was successful, None otherwise.
Cast an arbitrary object to ComplexArray if the internal wrapped representation is an ComplexArray object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ComplexArray to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setContent(content)¶
- Parameters:
content – complex
- content()¶
- Return type:
complex
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
CompositeTime¶
- class seiscomp.datamodel.CompositeTime¶
Inherits Seiscomp::DataModel::Object.
Parents:
origin
– Origin
Attributes:
year
– IntegerQuantity (optional)month
– IntegerQuantity (optional)day
– IntegerQuantity (optional)hour
– IntegerQuantity (optional)minute
– IntegerQuantity (optional)second
– RealQuantity (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type CompositeTime if the cast was successful, None otherwise.
Cast an arbitrary object to CompositeTime if the internal wrapped representation is an CompositeTime object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type CompositeTime to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setYear(year)¶
- Parameters:
year – IntegerQuantity
- year()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMonth(month)¶
- Parameters:
month – IntegerQuantity
- month()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDay(day)¶
- Parameters:
day – IntegerQuantity
- day()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setHour(hour)¶
- Parameters:
hour – IntegerQuantity
- hour()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMinute(minute)¶
- Parameters:
minute – IntegerQuantity
- minute()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSecond(second)¶
- Parameters:
second – RealQuantity
- second()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- origin()¶
- Return type:
Returns the parent Origin if available. Returns None if the parent is not a Origin. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned CompositeTime.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ConfidenceEllipsoid¶
- class seiscomp.datamodel.ConfidenceEllipsoid¶
Inherits Seiscomp::DataModel::Object.
Attributes:
semiMajorAxisLength
– floatsemiMinorAxisLength
– floatsemiIntermediateAxisLength
– floatmajorAxisPlunge
– floatmajorAxisAzimuth
– floatmajorAxisRotation
– float
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ConfidenceEllipsoid if the cast was successful, None otherwise.
Cast an arbitrary object to ConfidenceEllipsoid if the internal wrapped representation is an ConfidenceEllipsoid object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type ConfidenceEllipsoid to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setSemiMajorAxisLength(semiMajorAxisLength)¶
- Parameters:
semiMajorAxisLength – float
- semiMajorAxisLength()¶
- Return type:
float
- setSemiMinorAxisLength(semiMinorAxisLength)¶
- Parameters:
semiMinorAxisLength – float
- semiMinorAxisLength()¶
- Return type:
float
- setSemiIntermediateAxisLength(semiIntermediateAxisLength)¶
- Parameters:
semiIntermediateAxisLength – float
- semiIntermediateAxisLength()¶
- Return type:
float
- setMajorAxisPlunge(majorAxisPlunge)¶
- Parameters:
majorAxisPlunge – float
- majorAxisPlunge()¶
- Return type:
float
- setMajorAxisAzimuth(majorAxisAzimuth)¶
- Parameters:
majorAxisAzimuth – float
- majorAxisAzimuth()¶
- Return type:
float
- setMajorAxisRotation(majorAxisRotation)¶
- Parameters:
majorAxisRotation – float
- majorAxisRotation()¶
- Return type:
float
Config¶
- class seiscomp.datamodel.Config¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
parameterSet
– ParameterSetconfigModule
– ConfigModule
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Config if the cast was successful, None otherwise.
Cast an arbitrary object to Config if the internal wrapped representation is an Config object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Config to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(parameterSet)¶
- Parameters:
parameterSet – Object of type ParameterSet
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ParameterSet object to Config. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(configModule)¶
- Parameters:
configModule – Object of type ConfigModule
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ConfigModule object to Config. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(parameterSet)¶
- Parameters:
parameterSet – Object of type ParameterSet
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ParameterSet object from Config.
- remove(configModule)¶
- Parameters:
configModule – Object of type ConfigModule
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ConfigModule object from Config.
- removeParameterSet(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeConfigModule(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- parameterSetCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ParameterSet child objects.
- configModuleCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ConfigModule child objects.
- parameterSet(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ParameterSet.
Returns the ParameterSet at index idx.
- configModule(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ConfigModule.
Returns the ConfigModule at index idx.
- findParameterSet(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ParameterSet.
Returns the child object with a certain publicID, None otherwise.
- findConfigModule(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ConfigModule.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Config.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ConfigModule¶
- class seiscomp.datamodel.ConfigModule¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
config
– Config
Children:
configStation
– ConfigStation
Attributes:
publicID
: stringname
– stringparameterSetID
– stringenabled
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ConfigModule if the cast was successful, None otherwise.
Cast an arbitrary object to ConfigModule if the internal wrapped representation is an ConfigModule object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ConfigModule.
Creates and registers (if enabled) a ConfigModule instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ConfigModule.
Creates and registers (if enabled) a ConfigModule instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ConfigModule to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setParameterSetID(parameterSetID)¶
- Parameters:
parameterSetID – string
- parameterSetID()¶
- Return type:
string
- setEnabled(enabled)¶
- Parameters:
enabled – boolean
- enabled()¶
- Return type:
boolean
- add(configStation)¶
- Parameters:
configStation – Object of type ConfigStation
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ConfigStation object to ConfigModule. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(configStation)¶
- Parameters:
configStation – Object of type ConfigStation
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ConfigStation object from ConfigModule.
- removeConfigStation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeConfigStation(configStationIndex);
- Parameters:
configStationIndex – The index of the object to be removed of type ConfigStationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- configStationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ConfigStation child objects.
- configStation(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ConfigStation.
Returns the ConfigStation at index idx.
- configStation(configStationIndex)¶
- Parameters:
configStationIndex – The index of the object to be removed of type ConfigStationIndex.
- Return type:
Object of type ConfigStation.
Returns the ConfigStation at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findConfigStation(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ConfigStation.
Returns the child object with a certain publicID, None otherwise.
- config()¶
- Return type:
Returns the parent Config if available. Returns None if the parent is not a Config. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ConfigModule.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ConfigStation¶
- class seiscomp.datamodel.ConfigStation¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
configModule
– ConfigModule
Children:
setup
– Setup
Attributes:
publicID
: stringnetworkCode
– stringstationCode
– stringenabled
– booleancreationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ConfigStation if the cast was successful, None otherwise.
Cast an arbitrary object to ConfigStation if the internal wrapped representation is an ConfigStation object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ConfigStation.
Creates and registers (if enabled) a ConfigStation instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ConfigStation.
Creates and registers (if enabled) a ConfigStation instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ConfigStation to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ConfigStationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ConfigStation
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setEnabled(enabled)¶
- Parameters:
enabled – boolean
- enabled()¶
- Return type:
boolean
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(setup)¶
- Parameters:
setup – Object of type Setup
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Setup object to ConfigStation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(setup)¶
- Parameters:
setup – Object of type Setup
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Setup object from ConfigStation.
- removeSetup(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSetup(setupIndex);
- Parameters:
setupIndex – The index of the object to be removed of type SetupIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- setupCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Setup child objects.
- setup(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Setup.
Returns the Setup at index idx.
- setup(setupIndex)¶
- Parameters:
setupIndex – The index of the object to be removed of type SetupIndex.
- Return type:
Object of type Setup.
Returns the Setup at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- configModule()¶
- Return type:
Returns the parent ConfigModule if available. Returns None if the parent is not a ConfigModule. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ConfigStation.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
CreationInfo¶
- class seiscomp.datamodel.CreationInfo¶
Inherits Seiscomp::DataModel::Object.
Attributes:
agencyID
– stringagencyURI
– stringauthor
– stringauthorURI
– stringcreationTime
– seiscomp.core.Time (optional)modificationTime
– seiscomp.core.Time (optional)version
– string
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type CreationInfo if the cast was successful, None otherwise.
Cast an arbitrary object to CreationInfo if the internal wrapped representation is an CreationInfo object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type CreationInfo to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setAgencyID(agencyID)¶
- Parameters:
agencyID – string
- agencyID()¶
- Return type:
string
- setAgencyURI(agencyURI)¶
- Parameters:
agencyURI – string
- agencyURI()¶
- Return type:
string
- setAuthor(author)¶
- Parameters:
author – string
- author()¶
- Return type:
string
- setAuthorURI(authorURI)¶
- Parameters:
authorURI – string
- authorURI()¶
- Return type:
string
- setCreationTime(creationTime)¶
- Parameters:
creationTime – seiscomp.core.Time
- creationTime()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setModificationTime(modificationTime)¶
- Parameters:
modificationTime – seiscomp.core.Time
- modificationTime()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setVersion(version)¶
- Parameters:
version – string
- version()¶
- Return type:
string
DataAttributeExtent¶
- class seiscomp.datamodel.DataAttributeExtent¶
Inherits Seiscomp::DataModel::Object.
Parents:
dataExtent
– DataExtent
Attributes:
start
– seiscomp.core.Timeend
– seiscomp.core.TimesampleRate
– doublequality
– stringupdated
– seiscomp.core.TimesegmentCount
– int
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataAttributeExtent if the cast was successful, None otherwise.
Cast an arbitrary object to DataAttributeExtent if the internal wrapped representation is an DataAttributeExtent object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DataAttributeExtent to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DataAttributeExtentIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – DataAttributeExtent
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
- setSampleRate(sampleRate)¶
- Parameters:
sampleRate – double
- sampleRate()¶
- Return type:
double
- setQuality(quality)¶
- Parameters:
quality – string
- quality()¶
- Return type:
string
- setUpdated(updated)¶
- Parameters:
updated – seiscomp.core.Time
- updated()¶
- Return type:
seiscomp.core.Time
- setSegmentCount(segmentCount)¶
- Parameters:
segmentCount – int
- segmentCount()¶
- Return type:
int
- dataExtent()¶
- Return type:
Returns the parent DataExtent if available. Returns None if the parent is not a DataExtent. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataAttributeExtent.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DataAvailability¶
- class seiscomp.datamodel.DataAvailability¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
dataExtent
– DataExtent
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataAvailability if the cast was successful, None otherwise.
Cast an arbitrary object to DataAvailability if the internal wrapped representation is an DataAvailability object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DataAvailability to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(dataExtent)¶
- Parameters:
dataExtent – Object of type DataExtent
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a DataExtent object to DataAvailability. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(dataExtent)¶
- Parameters:
dataExtent – Object of type DataExtent
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added DataExtent object from DataAvailability.
- removeDataExtent(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataExtent(dataExtentIndex);
- Parameters:
dataExtentIndex – The index of the object to be removed of type DataExtentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- dataExtentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of DataExtent child objects.
- dataExtent(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type DataExtent.
Returns the DataExtent at index idx.
- dataExtent(dataExtentIndex)¶
- Parameters:
dataExtentIndex – The index of the object to be removed of type DataExtentIndex.
- Return type:
Object of type DataExtent.
Returns the DataExtent at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findDataExtent(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type DataExtent.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataAvailability.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DataExtent¶
- class seiscomp.datamodel.DataExtent¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
dataAvailability
– DataAvailability
Children:
dataSegment
– DataSegmentdataAttributeExtent
– DataAttributeExtent
Attributes:
publicID
: stringwaveformID
– WaveformStreamIDstart
– seiscomp.core.Timeend
– seiscomp.core.Timeupdated
– seiscomp.core.TimelastScan
– seiscomp.core.TimesegmentOverflow
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataExtent if the cast was successful, None otherwise.
Cast an arbitrary object to DataExtent if the internal wrapped representation is an DataExtent object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type DataExtent.
Creates and registers (if enabled) a DataExtent instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type DataExtent.
Creates and registers (if enabled) a DataExtent instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type DataExtent to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DataExtentIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – DataExtent
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
- setUpdated(updated)¶
- Parameters:
updated – seiscomp.core.Time
- updated()¶
- Return type:
seiscomp.core.Time
- setLastScan(lastScan)¶
- Parameters:
lastScan – seiscomp.core.Time
- lastScan()¶
- Return type:
seiscomp.core.Time
- setSegmentOverflow(segmentOverflow)¶
- Parameters:
segmentOverflow – boolean
- segmentOverflow()¶
- Return type:
boolean
- add(dataSegment)¶
- Parameters:
dataSegment – Object of type DataSegment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a DataSegment object to DataExtent. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(dataAttributeExtent)¶
- Parameters:
dataAttributeExtent – Object of type DataAttributeExtent
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a DataAttributeExtent object to DataExtent. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(dataSegment)¶
- Parameters:
dataSegment – Object of type DataSegment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added DataSegment object from DataExtent.
- remove(dataAttributeExtent)¶
- Parameters:
dataAttributeExtent – Object of type DataAttributeExtent
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added DataAttributeExtent object from DataExtent.
- removeDataSegment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataSegment(dataSegmentIndex);
- Parameters:
dataSegmentIndex – The index of the object to be removed of type DataSegmentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataAttributeExtent(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataAttributeExtent(dataAttributeExtentIndex);
- Parameters:
dataAttributeExtentIndex – The index of the object to be removed of type DataAttributeExtentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- dataSegmentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of DataSegment child objects.
- dataAttributeExtentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of DataAttributeExtent child objects.
- dataSegment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type DataSegment.
Returns the DataSegment at index idx.
- dataSegment(dataSegmentIndex)¶
- Parameters:
dataSegmentIndex – The index of the object to be removed of type DataSegmentIndex.
- Return type:
Object of type DataSegment.
Returns the DataSegment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- dataAttributeExtent(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type DataAttributeExtent.
Returns the DataAttributeExtent at index idx.
- dataAttributeExtent(dataAttributeExtentIndex)¶
- Parameters:
dataAttributeExtentIndex – The index of the object to be removed of type DataAttributeExtentIndex.
- Return type:
Object of type DataAttributeExtent.
Returns the DataAttributeExtent at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- dataAvailability()¶
- Return type:
Returns the parent DataAvailability if available. Returns None if the parent is not a DataAvailability. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataExtent.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DataSegment¶
- class seiscomp.datamodel.DataSegment¶
Inherits Seiscomp::DataModel::Object.
Parents:
dataExtent
– DataExtent
Attributes:
start
– seiscomp.core.Timeend
– seiscomp.core.Timeupdated
– seiscomp.core.TimesampleRate
– doublequality
– stringoutOfOrder
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataSegment if the cast was successful, None otherwise.
Cast an arbitrary object to DataSegment if the internal wrapped representation is an DataSegment object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DataSegment to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DataSegmentIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – DataSegment
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
- setUpdated(updated)¶
- Parameters:
updated – seiscomp.core.Time
- updated()¶
- Return type:
seiscomp.core.Time
- setSampleRate(sampleRate)¶
- Parameters:
sampleRate – double
- sampleRate()¶
- Return type:
double
- setQuality(quality)¶
- Parameters:
quality – string
- quality()¶
- Return type:
string
- setOutOfOrder(outOfOrder)¶
- Parameters:
outOfOrder – boolean
- outOfOrder()¶
- Return type:
boolean
- dataExtent()¶
- Return type:
Returns the parent DataExtent if available. Returns None if the parent is not a DataExtent. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataSegment.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DataUsed¶
- class seiscomp.datamodel.DataUsed¶
Inherits Seiscomp::DataModel::Object.
Parents:
momentTensor
– MomentTensor
Attributes:
waveType
– DataUsedWaveTypestationCount
– intcomponentCount
– intshortestPeriod
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataUsed if the cast was successful, None otherwise.
Cast an arbitrary object to DataUsed if the internal wrapped representation is an DataUsed object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DataUsed to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setWaveType(waveType)¶
- Parameters:
waveType – DataUsedWaveType
- waveType()¶
- Return type:
DataUsedWaveType
- setStationCount(stationCount)¶
- Parameters:
stationCount – int
- stationCount()¶
- Return type:
int
- setComponentCount(componentCount)¶
- Parameters:
componentCount – int
- componentCount()¶
- Return type:
int
- setShortestPeriod(shortestPeriod)¶
- Parameters:
shortestPeriod – float
- shortestPeriod()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- momentTensor()¶
- Return type:
Returns the parent MomentTensor if available. Returns None if the parent is not a MomentTensor. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataUsed.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Datalogger¶
- class seiscomp.datamodel.Datalogger¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Children:
dataloggerCalibration
– DataloggerCalibrationdecimation
– Decimation
Attributes:
publicID
: stringname
– stringdescription
– stringdigitizerModel
– stringdigitizerManufacturer
– stringrecorderModel
– stringrecorderManufacturer
– stringclockModel
– stringclockManufacturer
– stringclockType
– stringgain
– float (optional)maxClockDrift
– float (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Datalogger if the cast was successful, None otherwise.
Cast an arbitrary object to Datalogger if the internal wrapped representation is an Datalogger object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Datalogger.
Creates and registers (if enabled) a Datalogger instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Datalogger.
Creates and registers (if enabled) a Datalogger instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Datalogger to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DataloggerIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Datalogger
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setDigitizerModel(digitizerModel)¶
- Parameters:
digitizerModel – string
- digitizerModel()¶
- Return type:
string
- setDigitizerManufacturer(digitizerManufacturer)¶
- Parameters:
digitizerManufacturer – string
- digitizerManufacturer()¶
- Return type:
string
- setRecorderModel(recorderModel)¶
- Parameters:
recorderModel – string
- recorderModel()¶
- Return type:
string
- setRecorderManufacturer(recorderManufacturer)¶
- Parameters:
recorderManufacturer – string
- recorderManufacturer()¶
- Return type:
string
- setClockModel(clockModel)¶
- Parameters:
clockModel – string
- clockModel()¶
- Return type:
string
- setClockManufacturer(clockManufacturer)¶
- Parameters:
clockManufacturer – string
- clockManufacturer()¶
- Return type:
string
- setClockType(clockType)¶
- Parameters:
clockType – string
- clockType()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMaxClockDrift(maxClockDrift)¶
- Parameters:
maxClockDrift – float
- maxClockDrift()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(dataloggerCalibration)¶
- Parameters:
dataloggerCalibration – Object of type DataloggerCalibration
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a DataloggerCalibration object to Datalogger. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(decimation)¶
- Parameters:
decimation – Object of type Decimation
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Decimation object to Datalogger. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(dataloggerCalibration)¶
- Parameters:
dataloggerCalibration – Object of type DataloggerCalibration
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added DataloggerCalibration object from Datalogger.
- remove(decimation)¶
- Parameters:
decimation – Object of type Decimation
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Decimation object from Datalogger.
- removeDataloggerCalibration(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataloggerCalibration(dataloggerCalibrationIndex);
- Parameters:
dataloggerCalibrationIndex – The index of the object to be removed of type DataloggerCalibrationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDecimation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDecimation(decimationIndex);
- Parameters:
decimationIndex – The index of the object to be removed of type DecimationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- dataloggerCalibrationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of DataloggerCalibration child objects.
- decimationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Decimation child objects.
- dataloggerCalibration(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type DataloggerCalibration.
Returns the DataloggerCalibration at index idx.
- dataloggerCalibration(dataloggerCalibrationIndex)¶
- Parameters:
dataloggerCalibrationIndex – The index of the object to be removed of type DataloggerCalibrationIndex.
- Return type:
Object of type DataloggerCalibration.
Returns the DataloggerCalibration at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- decimation(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Decimation.
Returns the Decimation at index idx.
- decimation(decimationIndex)¶
- Parameters:
decimationIndex – The index of the object to be removed of type DecimationIndex.
- Return type:
Object of type Decimation.
Returns the Decimation at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Datalogger.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DataloggerCalibration¶
- class seiscomp.datamodel.DataloggerCalibration¶
Inherits Seiscomp::DataModel::Object.
Parents:
datalogger
– Datalogger
Attributes:
serialNumber
– stringchannel
– intstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)gain
– float (optional)gainFrequency
– float (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DataloggerCalibration if the cast was successful, None otherwise.
Cast an arbitrary object to DataloggerCalibration if the internal wrapped representation is an DataloggerCalibration object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DataloggerCalibration to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DataloggerCalibrationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – DataloggerCalibration
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setSerialNumber(serialNumber)¶
- Parameters:
serialNumber – string
- serialNumber()¶
- Return type:
string
- setChannel(channel)¶
- Parameters:
channel – int
- channel()¶
- Return type:
int
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- datalogger()¶
- Return type:
Returns the parent Datalogger if available. Returns None if the parent is not a Datalogger. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned DataloggerCalibration.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Decimation¶
- class seiscomp.datamodel.Decimation¶
Inherits Seiscomp::DataModel::Object.
Parents:
datalogger
– Datalogger
Attributes:
sampleRateNumerator
– intsampleRateDenominator
– intanalogueFilterChain
– Blob (optional)digitalFilterChain
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Decimation if the cast was successful, None otherwise.
Cast an arbitrary object to Decimation if the internal wrapped representation is an Decimation object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Decimation to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DecimationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Decimation
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setSampleRateNumerator(sampleRateNumerator)¶
- Parameters:
sampleRateNumerator – int
- sampleRateNumerator()¶
- Return type:
int
- setSampleRateDenominator(sampleRateDenominator)¶
- Parameters:
sampleRateDenominator – int
- sampleRateDenominator()¶
- Return type:
int
- analogueFilterChain()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- digitalFilterChain()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- datalogger()¶
- Return type:
Returns the parent Datalogger if available. Returns None if the parent is not a Datalogger. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Decimation.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Displacement¶
- class seiscomp.datamodel.Displacement¶
Inherits Seiscomp::DataModel::Object.
Parents:
simulation
– Simulationincident
– Incident
Attributes:
type
– stringtimeWindow
– TimeWindow (optional)unit
– stringnetworkCode
– stringstationCode
– stringlocationCode
– stringmethodID
– stringevaluationMode
– EvaluationMode (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Displacement if the cast was successful, None otherwise.
Cast an arbitrary object to Displacement if the internal wrapped representation is an Displacement object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Displacement to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type DisplacementIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Displacement
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setX(x)¶
- Parameters:
- x()¶
- Return type:
- setY(y)¶
- Parameters:
- y()¶
- Return type:
- setZ(z)¶
- Parameters:
- z()¶
- Return type:
- setTimeWindow(timeWindow)¶
- Parameters:
timeWindow – TimeWindow
- timeWindow()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUnit(unit)¶
- Parameters:
unit – string
- unit()¶
- Return type:
string
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setLocationCode(locationCode)¶
- Parameters:
locationCode – string
- locationCode()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- simulation()¶
- Return type:
Returns the parent Simulation if available. Returns None if the parent is not a Simulation. This is a convenience wrapper for parent().
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Displacement.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
DisplacementValue¶
- class seiscomp.datamodel.DisplacementValue¶
Inherits Seiscomp::DataModel::Object.
Attributes:
displacement
– RealQuantity (optional)channelCode
– stringmethodID
– stringevaluationMode
– EvaluationMode (optional)amplitudeID
– stringcreationInfo
– CreationInfo (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type DisplacementValue if the cast was successful, None otherwise.
Cast an arbitrary object to DisplacementValue if the internal wrapped representation is an DisplacementValue object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type DisplacementValue to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setDisplacement(displacement)¶
- Parameters:
displacement – RealQuantity
- displacement()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setChannelCode(channelCode)¶
- Parameters:
channelCode – string
- channelCode()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAmplitudeID(amplitudeID)¶
- Parameters:
amplitudeID – string
- amplitudeID()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
Estimation¶
- class seiscomp.datamodel.Estimation¶
Inherits Seiscomp::DataModel::Object.
Parents:
simulation
– Simulation
Attributes:
networkCode
– stringstationCode
– stringt1
– Measurement (optional)t2
– Measurement (optional)t3
– Measurement (optional)t4
– Measurement (optional)runup
– float (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Estimation if the cast was successful, None otherwise.
Cast an arbitrary object to Estimation if the internal wrapped representation is an Estimation object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Estimation to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type EstimationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Estimation
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setT1(t1)¶
- Parameters:
t1 – Measurement
- t1()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setT2(t2)¶
- Parameters:
t2 – Measurement
- t2()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setT3(t3)¶
- Parameters:
t3 – Measurement
- t3()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setT4(t4)¶
- Parameters:
t4 – Measurement
- t4()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setRunup(runup)¶
- Parameters:
runup – float
- runup()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- simulation()¶
- Return type:
Returns the parent Simulation if available. Returns None if the parent is not a Simulation. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Estimation.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Event¶
- class seiscomp.datamodel.Event¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParameters
Children:
eventDescription
– EventDescriptioncomment
– CommentoriginReference
– OriginReferencefocalMechanismReference
– FocalMechanismReference
Attributes:
publicID
: stringpreferredOriginID
– stringpreferredMagnitudeID
– stringpreferredFocalMechanismID
– stringtype
– EventType (optional)typeCertainty
– EventTypeCertainty (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Event if the cast was successful, None otherwise.
Cast an arbitrary object to Event if the internal wrapped representation is an Event object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Event.
Creates and registers (if enabled) a Event instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Event.
Creates and registers (if enabled) a Event instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Event to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setPreferredOriginID(preferredOriginID)¶
- Parameters:
preferredOriginID – string
- preferredOriginID()¶
- Return type:
string
- setPreferredMagnitudeID(preferredMagnitudeID)¶
- Parameters:
preferredMagnitudeID – string
- preferredMagnitudeID()¶
- Return type:
string
- setPreferredFocalMechanismID(preferredFocalMechanismID)¶
- Parameters:
preferredFocalMechanismID – string
- preferredFocalMechanismID()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – EventType
- type()¶
- Return type:
EventType
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTypeCertainty(typeCertainty)¶
- Parameters:
typeCertainty – EventTypeCertainty
- typeCertainty()¶
- Return type:
EventTypeCertainty
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(eventDescription)¶
- Parameters:
eventDescription – Object of type EventDescription
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a EventDescription object to Event. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Event. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(originReference)¶
- Parameters:
originReference – Object of type OriginReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a OriginReference object to Event. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(focalMechanismReference)¶
- Parameters:
focalMechanismReference – Object of type FocalMechanismReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a FocalMechanismReference object to Event. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(eventDescription)¶
- Parameters:
eventDescription – Object of type EventDescription
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added EventDescription object from Event.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Event.
- remove(originReference)¶
- Parameters:
originReference – Object of type OriginReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added OriginReference object from Event.
- remove(focalMechanismReference)¶
- Parameters:
focalMechanismReference – Object of type FocalMechanismReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added FocalMechanismReference object from Event.
- removeEventDescription(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeEventDescription(eventDescriptionIndex);
- Parameters:
eventDescriptionIndex – The index of the object to be removed of type EventDescriptionIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeOriginReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeOriginReference(originReferenceIndex);
- Parameters:
originReferenceIndex – The index of the object to be removed of type OriginReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeFocalMechanismReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeFocalMechanismReference(focalMechanismReferenceIndex);
- Parameters:
focalMechanismReferenceIndex – The index of the object to be removed of type FocalMechanismReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- eventDescriptionCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of EventDescription child objects.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- originReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of OriginReference child objects.
- focalMechanismReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of FocalMechanismReference child objects.
- eventDescription(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type EventDescription.
Returns the EventDescription at index idx.
- eventDescription(eventDescriptionIndex)¶
- Parameters:
eventDescriptionIndex – The index of the object to be removed of type EventDescriptionIndex.
- Return type:
Object of type EventDescription.
Returns the EventDescription at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- originReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type OriginReference.
Returns the OriginReference at index idx.
- originReference(originReferenceIndex)¶
- Parameters:
originReferenceIndex – The index of the object to be removed of type OriginReferenceIndex.
- Return type:
Object of type OriginReference.
Returns the OriginReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- focalMechanismReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type FocalMechanismReference.
Returns the FocalMechanismReference at index idx.
- focalMechanismReference(focalMechanismReferenceIndex)¶
- Parameters:
focalMechanismReferenceIndex – The index of the object to be removed of type FocalMechanismReferenceIndex.
- Return type:
Object of type FocalMechanismReference.
Returns the FocalMechanismReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Event.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
EventDescription¶
- class seiscomp.datamodel.EventDescription¶
Inherits Seiscomp::DataModel::Object.
Parents:
event
– Event
Attributes:
text
– stringtype
– EventDescriptionType
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type EventDescription if the cast was successful, None otherwise.
Cast an arbitrary object to EventDescription if the internal wrapped representation is an EventDescription object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type EventDescription to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type EventDescriptionIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – EventDescription
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setText(text)¶
- Parameters:
text – string
- text()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – EventDescriptionType
- type()¶
- Return type:
EventDescriptionType
- event()¶
- Return type:
Returns the parent Event if available. Returns None if the parent is not a Event. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned EventDescription.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
EventParameters¶
- class seiscomp.datamodel.EventParameters¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
pick
– Pickamplitude
– Amplitudereading
– Readingorigin
– OriginfocalMechanism
– FocalMechanismevent
– Event
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type EventParameters if the cast was successful, None otherwise.
Cast an arbitrary object to EventParameters if the internal wrapped representation is an EventParameters object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type EventParameters to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(pick)¶
- Parameters:
pick – Object of type Pick
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Pick object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(amplitude)¶
- Parameters:
amplitude – Object of type Amplitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Amplitude object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(reading)¶
- Parameters:
reading – Object of type Reading
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Reading object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(origin)¶
- Parameters:
origin – Object of type Origin
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Origin object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(focalMechanism)¶
- Parameters:
focalMechanism – Object of type FocalMechanism
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a FocalMechanism object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(event)¶
- Parameters:
event – Object of type Event
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Event object to EventParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(pick)¶
- Parameters:
pick – Object of type Pick
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Pick object from EventParameters.
- remove(amplitude)¶
- Parameters:
amplitude – Object of type Amplitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Amplitude object from EventParameters.
- remove(reading)¶
- Parameters:
reading – Object of type Reading
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Reading object from EventParameters.
- remove(origin)¶
- Parameters:
origin – Object of type Origin
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Origin object from EventParameters.
- remove(focalMechanism)¶
- Parameters:
focalMechanism – Object of type FocalMechanism
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added FocalMechanism object from EventParameters.
- remove(event)¶
- Parameters:
event – Object of type Event
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Event object from EventParameters.
- removePick(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAmplitude(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeReading(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeOrigin(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeFocalMechanism(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeEvent(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- pickCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Pick child objects.
- amplitudeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Amplitude child objects.
- readingCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Reading child objects.
- originCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Origin child objects.
- focalMechanismCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of FocalMechanism child objects.
- eventCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Event child objects.
- pick(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Pick.
Returns the Pick at index idx.
- amplitude(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Amplitude.
Returns the Amplitude at index idx.
- reading(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Reading.
Returns the Reading at index idx.
- origin(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Origin.
Returns the Origin at index idx.
- focalMechanism(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type FocalMechanism.
Returns the FocalMechanism at index idx.
- event(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Event.
Returns the Event at index idx.
- findPick(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Pick.
Returns the child object with a certain publicID, None otherwise.
- findAmplitude(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Amplitude.
Returns the child object with a certain publicID, None otherwise.
- findReading(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Reading.
Returns the child object with a certain publicID, None otherwise.
- findOrigin(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Origin.
Returns the child object with a certain publicID, None otherwise.
- findFocalMechanism(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type FocalMechanism.
Returns the child object with a certain publicID, None otherwise.
- findEvent(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Event.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned EventParameters.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
FocalMechanism¶
- class seiscomp.datamodel.FocalMechanism¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParameters
Children:
comment
– CommentmomentTensor
– MomentTensor
Attributes:
publicID
: stringtriggeringOriginID
– stringnodalPlanes
– NodalPlanes (optional)principalAxes
– PrincipalAxes (optional)azimuthalGap
– float (optional)stationPolarityCount
– int (optional)misfit
– float (optional)stationDistributionRatio
– float (optional)methodID
– stringevaluationMode
– EvaluationMode (optional)evaluationStatus
– EvaluationStatus (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type FocalMechanism if the cast was successful, None otherwise.
Cast an arbitrary object to FocalMechanism if the internal wrapped representation is an FocalMechanism object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type FocalMechanism.
Creates and registers (if enabled) a FocalMechanism instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type FocalMechanism.
Creates and registers (if enabled) a FocalMechanism instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type FocalMechanism to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setTriggeringOriginID(triggeringOriginID)¶
- Parameters:
triggeringOriginID – string
- triggeringOriginID()¶
- Return type:
string
- setNodalPlanes(nodalPlanes)¶
- Parameters:
nodalPlanes – NodalPlanes
- nodalPlanes()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPrincipalAxes(principalAxes)¶
- Parameters:
principalAxes – PrincipalAxes
- principalAxes()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuthalGap(azimuthalGap)¶
- Parameters:
azimuthalGap – float
- azimuthalGap()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setStationPolarityCount(stationPolarityCount)¶
- Parameters:
stationPolarityCount – int
- stationPolarityCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMisfit(misfit)¶
- Parameters:
misfit – float
- misfit()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setStationDistributionRatio(stationDistributionRatio)¶
- Parameters:
stationDistributionRatio – float
- stationDistributionRatio()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationStatus(evaluationStatus)¶
- Parameters:
evaluationStatus – EvaluationStatus
- evaluationStatus()¶
- Return type:
EvaluationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to FocalMechanism. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(momentTensor)¶
- Parameters:
momentTensor – Object of type MomentTensor
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a MomentTensor object to FocalMechanism. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from FocalMechanism.
- remove(momentTensor)¶
- Parameters:
momentTensor – Object of type MomentTensor
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added MomentTensor object from FocalMechanism.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMomentTensor(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- momentTensorCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of MomentTensor child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- momentTensor(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type MomentTensor.
Returns the MomentTensor at index idx.
- findMomentTensor(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type MomentTensor.
Returns the child object with a certain publicID, None otherwise.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned FocalMechanism.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
FocalMechanismReference¶
- class seiscomp.datamodel.FocalMechanismReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
event
– Event
Attributes:
focalMechanismID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type FocalMechanismReference if the cast was successful, None otherwise.
Cast an arbitrary object to FocalMechanismReference if the internal wrapped representation is an FocalMechanismReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type FocalMechanismReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type FocalMechanismReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – FocalMechanismReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setFocalMechanismID(focalMechanismID)¶
- Parameters:
focalMechanismID – string
- focalMechanismID()¶
- Return type:
string
- event()¶
- Return type:
Returns the parent Event if available. Returns None if the parent is not a Event. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned FocalMechanismReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Grid¶
- class seiscomp.datamodel.Grid¶
Inherits Seiscomp::DataModel::Object.
Attributes:
name
– stringspacingX
– floatspacingY
– floatx
– floaty
– floatwidth
– intheight
– int
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Grid if the cast was successful, None otherwise.
Cast an arbitrary object to Grid if the internal wrapped representation is an Grid object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Grid to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setSpacingX(spacingX)¶
- Parameters:
spacingX – float
- spacingX()¶
- Return type:
float
- setSpacingY(spacingY)¶
- Parameters:
spacingY – float
- spacingY()¶
- Return type:
float
- setX(x)¶
- Parameters:
x – float
- x()¶
- Return type:
float
- setY(y)¶
- Parameters:
y – float
- y()¶
- Return type:
float
- setWidth(width)¶
- Parameters:
width – int
- width()¶
- Return type:
int
- setHeight(height)¶
- Parameters:
height – int
- height()¶
- Return type:
int
ImpactReport¶
- class seiscomp.datamodel.ImpactReport¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
incident
– Incident
Attributes:
publicID
: stringname
– stringtype
– stringsource
– stringtime
– TimeQuantitylocation
– stringtext
– stringcreationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ImpactReport if the cast was successful, None otherwise.
Cast an arbitrary object to ImpactReport if the internal wrapped representation is an ImpactReport object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ImpactReport.
Creates and registers (if enabled) a ImpactReport instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ImpactReport.
Creates and registers (if enabled) a ImpactReport instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ImpactReport to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setSource(source)¶
- Parameters:
source – string
- source()¶
- Return type:
string
- setTime(time)¶
- Parameters:
time – TimeQuantity
- time()¶
- Return type:
- setLocation(location)¶
- Parameters:
location – string
- location()¶
- Return type:
string
- setText(text)¶
- Parameters:
text – string
- text()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ImpactReport.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Incident¶
- class seiscomp.datamodel.Incident¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
tsunamiParameters
– TsunamiParameters
Children:
pick
– Pickamplitude
– Amplitudedisplacement
– DisplacementimpactReport
– ImpactReportsimulationReference
– SimulationReferenceincidentTemplate
– IncidentTemplateincidentTemplateVariable
– IncidentTemplateVariablebulletinContext
– BulletinContext
Attributes:
publicID
: stringeventID
– stringsource
– SourcesourceOrigin
– SourceOrigin (optional)cen
– Source (optional)expectedPlane
– NodalPlane (optional)creationInfo
– CreationInfo (optional)evaluationMode
– EvaluationMode (optional)testMode
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Incident if the cast was successful, None otherwise.
Cast an arbitrary object to Incident if the internal wrapped representation is an Incident object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Incident.
Creates and registers (if enabled) a Incident instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Incident.
Creates and registers (if enabled) a Incident instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Incident to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setEventID(eventID)¶
- Parameters:
eventID – string
- eventID()¶
- Return type:
string
- setSourceOrigin(sourceOrigin)¶
- Parameters:
sourceOrigin – SourceOrigin
- sourceOrigin()¶
- Return type:
SourceOrigin
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- cen()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setExpectedPlane(expectedPlane)¶
- Parameters:
expectedPlane – NodalPlane
- expectedPlane()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTestMode(testMode)¶
- Parameters:
testMode – boolean
- testMode()¶
- Return type:
boolean
- add(pick)¶
- Parameters:
pick – Object of type Pick
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Pick object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(amplitude)¶
- Parameters:
amplitude – Object of type Amplitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Amplitude object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(displacement)¶
- Parameters:
displacement – Object of type Displacement
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Displacement object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(impactReport)¶
- Parameters:
impactReport – Object of type ImpactReport
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ImpactReport object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(simulationReference)¶
- Parameters:
simulationReference – Object of type SimulationReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a SimulationReference object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(incidentTemplate)¶
- Parameters:
incidentTemplate – Object of type IncidentTemplate
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a IncidentTemplate object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(incidentTemplateVariable)¶
- Parameters:
incidentTemplateVariable – Object of type IncidentTemplateVariable
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a IncidentTemplateVariable object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(bulletinContext)¶
- Parameters:
bulletinContext – Object of type BulletinContext
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a BulletinContext object to Incident. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(pick)¶
- Parameters:
pick – Object of type Pick
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Pick object from Incident.
- remove(amplitude)¶
- Parameters:
amplitude – Object of type Amplitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Amplitude object from Incident.
- remove(displacement)¶
- Parameters:
displacement – Object of type Displacement
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Displacement object from Incident.
- remove(impactReport)¶
- Parameters:
impactReport – Object of type ImpactReport
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ImpactReport object from Incident.
- remove(simulationReference)¶
- Parameters:
simulationReference – Object of type SimulationReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added SimulationReference object from Incident.
- remove(incidentTemplate)¶
- Parameters:
incidentTemplate – Object of type IncidentTemplate
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added IncidentTemplate object from Incident.
- remove(incidentTemplateVariable)¶
- Parameters:
incidentTemplateVariable – Object of type IncidentTemplateVariable
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added IncidentTemplateVariable object from Incident.
- remove(bulletinContext)¶
- Parameters:
bulletinContext – Object of type BulletinContext
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added BulletinContext object from Incident.
- removePick(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAmplitude(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDisplacement(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDisplacement(displacementIndex);
- Parameters:
displacementIndex – The index of the object to be removed of type DisplacementIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeImpactReport(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSimulationReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSimulationReference(simulationReferenceIndex);
- Parameters:
simulationReferenceIndex – The index of the object to be removed of type SimulationReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeIncidentTemplate(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeIncidentTemplate(incidentTemplateIndex);
- Parameters:
incidentTemplateIndex – The index of the object to be removed of type IncidentTemplateIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeIncidentTemplateVariable(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeIncidentTemplateVariable(incidentTemplateVariableIndex);
- Parameters:
incidentTemplateVariableIndex – The index of the object to be removed of type IncidentTemplateVariableIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeBulletinContext(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeBulletinContext(bulletinContextIndex);
- Parameters:
bulletinContextIndex – The index of the object to be removed of type BulletinContextIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- pickCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Pick child objects.
- amplitudeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Amplitude child objects.
- displacementCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Displacement child objects.
- impactReportCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ImpactReport child objects.
- simulationReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of SimulationReference child objects.
- incidentTemplateCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of IncidentTemplate child objects.
- incidentTemplateVariableCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of IncidentTemplateVariable child objects.
- bulletinContextCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of BulletinContext child objects.
- pick(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Pick.
Returns the Pick at index idx.
- amplitude(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Amplitude.
Returns the Amplitude at index idx.
- displacement(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Displacement.
Returns the Displacement at index idx.
- displacement(displacementIndex)¶
- Parameters:
displacementIndex – The index of the object to be removed of type DisplacementIndex.
- Return type:
Object of type Displacement.
Returns the Displacement at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- impactReport(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ImpactReport.
Returns the ImpactReport at index idx.
- simulationReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type SimulationReference.
Returns the SimulationReference at index idx.
- simulationReference(simulationReferenceIndex)¶
- Parameters:
simulationReferenceIndex – The index of the object to be removed of type SimulationReferenceIndex.
- Return type:
Object of type SimulationReference.
Returns the SimulationReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- incidentTemplate(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type IncidentTemplate.
Returns the IncidentTemplate at index idx.
- incidentTemplate(incidentTemplateIndex)¶
- Parameters:
incidentTemplateIndex – The index of the object to be removed of type IncidentTemplateIndex.
- Return type:
Object of type IncidentTemplate.
Returns the IncidentTemplate at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- incidentTemplateVariable(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type IncidentTemplateVariable.
Returns the IncidentTemplateVariable at index idx.
- incidentTemplateVariable(incidentTemplateVariableIndex)¶
- Parameters:
incidentTemplateVariableIndex – The index of the object to be removed of type IncidentTemplateVariableIndex.
- Return type:
Object of type IncidentTemplateVariable.
Returns the IncidentTemplateVariable at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- bulletinContext(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type BulletinContext.
Returns the BulletinContext at index idx.
- bulletinContext(bulletinContextIndex)¶
- Parameters:
bulletinContextIndex – The index of the object to be removed of type BulletinContextIndex.
- Return type:
Object of type BulletinContext.
Returns the BulletinContext at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findPick(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Pick.
Returns the child object with a certain publicID, None otherwise.
- findAmplitude(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Amplitude.
Returns the child object with a certain publicID, None otherwise.
- findImpactReport(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ImpactReport.
Returns the child object with a certain publicID, None otherwise.
- tsunamiParameters()¶
- Return type:
Returns the parent TsunamiParameters if available. Returns None if the parent is not a TsunamiParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Incident.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
IncidentTemplate¶
- class seiscomp.datamodel.IncidentTemplate¶
Inherits Seiscomp::DataModel::Object.
Parents:
incident
– Incident
Attributes:
name
– stringid
– stringcontent
– stringpath
– stringsimRequired
– booleanisInclude
– booleanrevision
– intconfigOrder
– intcreationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type IncidentTemplate if the cast was successful, None otherwise.
Cast an arbitrary object to IncidentTemplate if the internal wrapped representation is an IncidentTemplate object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type IncidentTemplate to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type IncidentTemplateIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – IncidentTemplate
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setId(id)¶
- Parameters:
id – string
- id()¶
- Return type:
string
- setContent(content)¶
- Parameters:
content – string
- content()¶
- Return type:
string
- setPath(path)¶
- Parameters:
path – string
- path()¶
- Return type:
string
- setSimRequired(simRequired)¶
- Parameters:
simRequired – boolean
- simRequired()¶
- Return type:
boolean
- setIsInclude(isInclude)¶
- Parameters:
isInclude – boolean
- isInclude()¶
- Return type:
boolean
- setRevision(revision)¶
- Parameters:
revision – int
- revision()¶
- Return type:
int
- setConfigOrder(configOrder)¶
- Parameters:
configOrder – int
- configOrder()¶
- Return type:
int
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned IncidentTemplate.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
IncidentTemplateVariable¶
- class seiscomp.datamodel.IncidentTemplateVariable¶
Inherits Seiscomp::DataModel::Object.
Parents:
incident
– Incident
Attributes:
name
– stringvalue
– stringcreationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type IncidentTemplateVariable if the cast was successful, None otherwise.
Cast an arbitrary object to IncidentTemplateVariable if the internal wrapped representation is an IncidentTemplateVariable object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type IncidentTemplateVariable to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type IncidentTemplateVariableIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – IncidentTemplateVariable
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setValue(value)¶
- Parameters:
value – string
- value()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned IncidentTemplateVariable.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
IntegerQuantity¶
- class seiscomp.datamodel.IntegerQuantity¶
Inherits Seiscomp::DataModel::Object.
Attributes:
value
– intuncertainty
– int (optional)lowerUncertainty
– int (optional)upperUncertainty
– int (optional)confidenceLevel
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type IntegerQuantity if the cast was successful, None otherwise.
Cast an arbitrary object to IntegerQuantity if the internal wrapped representation is an IntegerQuantity object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type IntegerQuantity to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setValue(value)¶
- Parameters:
value – int
- value()¶
- Return type:
int
- setUncertainty(uncertainty)¶
- Parameters:
uncertainty – int
- uncertainty()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLowerUncertainty(lowerUncertainty)¶
- Parameters:
lowerUncertainty – int
- lowerUncertainty()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUpperUncertainty(upperUncertainty)¶
- Parameters:
upperUncertainty – int
- upperUncertainty()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setConfidenceLevel(confidenceLevel)¶
- Parameters:
confidenceLevel – float
- confidenceLevel()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
Inventory¶
- class seiscomp.datamodel.Inventory¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
stationGroup
– StationGroupauxDevice
– AuxDevicesensor
– Sensordatalogger
– DataloggerresponsePAZ
– ResponsePAZresponseFIR
– ResponseFIRresponseIIR
– ResponseIIRresponsePolynomial
– ResponsePolynomialresponseFAP
– ResponseFAPnetwork
– Network
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Inventory if the cast was successful, None otherwise.
Cast an arbitrary object to Inventory if the internal wrapped representation is an Inventory object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Inventory to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(stationGroup)¶
- Parameters:
stationGroup – Object of type StationGroup
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a StationGroup object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(auxDevice)¶
- Parameters:
auxDevice – Object of type AuxDevice
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a AuxDevice object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(sensor)¶
- Parameters:
sensor – Object of type Sensor
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Sensor object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(datalogger)¶
- Parameters:
datalogger – Object of type Datalogger
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Datalogger object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(responsePAZ)¶
- Parameters:
responsePAZ – Object of type ResponsePAZ
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ResponsePAZ object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(responseFIR)¶
- Parameters:
responseFIR – Object of type ResponseFIR
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ResponseFIR object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(responseIIR)¶
- Parameters:
responseIIR – Object of type ResponseIIR
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ResponseIIR object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(responsePolynomial)¶
- Parameters:
responsePolynomial – Object of type ResponsePolynomial
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ResponsePolynomial object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(responseFAP)¶
- Parameters:
responseFAP – Object of type ResponseFAP
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a ResponseFAP object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(network)¶
- Parameters:
network – Object of type Network
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Network object to Inventory. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(stationGroup)¶
- Parameters:
stationGroup – Object of type StationGroup
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added StationGroup object from Inventory.
- remove(auxDevice)¶
- Parameters:
auxDevice – Object of type AuxDevice
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added AuxDevice object from Inventory.
- remove(sensor)¶
- Parameters:
sensor – Object of type Sensor
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Sensor object from Inventory.
- remove(datalogger)¶
- Parameters:
datalogger – Object of type Datalogger
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Datalogger object from Inventory.
- remove(responsePAZ)¶
- Parameters:
responsePAZ – Object of type ResponsePAZ
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ResponsePAZ object from Inventory.
- remove(responseFIR)¶
- Parameters:
responseFIR – Object of type ResponseFIR
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ResponseFIR object from Inventory.
- remove(responseIIR)¶
- Parameters:
responseIIR – Object of type ResponseIIR
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ResponseIIR object from Inventory.
- remove(responsePolynomial)¶
- Parameters:
responsePolynomial – Object of type ResponsePolynomial
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ResponsePolynomial object from Inventory.
- remove(responseFAP)¶
- Parameters:
responseFAP – Object of type ResponseFAP
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added ResponseFAP object from Inventory.
- remove(network)¶
- Parameters:
network – Object of type Network
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Network object from Inventory.
- removeStationGroup(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStationGroup(stationGroupIndex);
- Parameters:
stationGroupIndex – The index of the object to be removed of type StationGroupIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAuxDevice(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAuxDevice(auxDeviceIndex);
- Parameters:
auxDeviceIndex – The index of the object to be removed of type AuxDeviceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSensor(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSensor(sensorIndex);
- Parameters:
sensorIndex – The index of the object to be removed of type SensorIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDatalogger(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDatalogger(dataloggerIndex);
- Parameters:
dataloggerIndex – The index of the object to be removed of type DataloggerIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponsePAZ(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponsePAZ(responsePAZIndex);
- Parameters:
responsePAZIndex – The index of the object to be removed of type ResponsePAZIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseFIR(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseFIR(responseFIRIndex);
- Parameters:
responseFIRIndex – The index of the object to be removed of type ResponseFIRIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseIIR(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseIIR(responseIIRIndex);
- Parameters:
responseIIRIndex – The index of the object to be removed of type ResponseIIRIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponsePolynomial(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponsePolynomial(responsePolynomialIndex);
- Parameters:
responsePolynomialIndex – The index of the object to be removed of type ResponsePolynomialIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseFAP(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeResponseFAP(responseFAPIndex);
- Parameters:
responseFAPIndex – The index of the object to be removed of type ResponseFAPIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeNetwork(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeNetwork(networkIndex);
- Parameters:
networkIndex – The index of the object to be removed of type NetworkIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- stationGroupCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of StationGroup child objects.
- auxDeviceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of AuxDevice child objects.
- sensorCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Sensor child objects.
- dataloggerCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Datalogger child objects.
- responsePAZCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ResponsePAZ child objects.
- responseFIRCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ResponseFIR child objects.
- responseIIRCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ResponseIIR child objects.
- responsePolynomialCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ResponsePolynomial child objects.
- responseFAPCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of ResponseFAP child objects.
- networkCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Network child objects.
- stationGroup(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type StationGroup.
Returns the StationGroup at index idx.
- stationGroup(stationGroupIndex)¶
- Parameters:
stationGroupIndex – The index of the object to be removed of type StationGroupIndex.
- Return type:
Object of type StationGroup.
Returns the StationGroup at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- auxDevice(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type AuxDevice.
Returns the AuxDevice at index idx.
- auxDevice(auxDeviceIndex)¶
- Parameters:
auxDeviceIndex – The index of the object to be removed of type AuxDeviceIndex.
- Return type:
Object of type AuxDevice.
Returns the AuxDevice at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- sensor(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Sensor.
Returns the Sensor at index idx.
- sensor(sensorIndex)¶
- Parameters:
sensorIndex – The index of the object to be removed of type SensorIndex.
- Return type:
Object of type Sensor.
Returns the Sensor at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- datalogger(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Datalogger.
Returns the Datalogger at index idx.
- datalogger(dataloggerIndex)¶
- Parameters:
dataloggerIndex – The index of the object to be removed of type DataloggerIndex.
- Return type:
Object of type Datalogger.
Returns the Datalogger at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- responsePAZ(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ResponsePAZ.
Returns the ResponsePAZ at index idx.
- responsePAZ(responsePAZIndex)¶
- Parameters:
responsePAZIndex – The index of the object to be removed of type ResponsePAZIndex.
- Return type:
Object of type ResponsePAZ.
Returns the ResponsePAZ at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- responseFIR(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ResponseFIR.
Returns the ResponseFIR at index idx.
- responseFIR(responseFIRIndex)¶
- Parameters:
responseFIRIndex – The index of the object to be removed of type ResponseFIRIndex.
- Return type:
Object of type ResponseFIR.
Returns the ResponseFIR at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- responseIIR(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ResponseIIR.
Returns the ResponseIIR at index idx.
- responseIIR(responseIIRIndex)¶
- Parameters:
responseIIRIndex – The index of the object to be removed of type ResponseIIRIndex.
- Return type:
Object of type ResponseIIR.
Returns the ResponseIIR at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- responsePolynomial(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ResponsePolynomial.
Returns the ResponsePolynomial at index idx.
- responsePolynomial(responsePolynomialIndex)¶
- Parameters:
responsePolynomialIndex – The index of the object to be removed of type ResponsePolynomialIndex.
- Return type:
Object of type ResponsePolynomial.
Returns the ResponsePolynomial at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- responseFAP(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type ResponseFAP.
Returns the ResponseFAP at index idx.
- responseFAP(responseFAPIndex)¶
- Parameters:
responseFAPIndex – The index of the object to be removed of type ResponseFAPIndex.
- Return type:
Object of type ResponseFAP.
Returns the ResponseFAP at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- network(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Network.
Returns the Network at index idx.
- network(networkIndex)¶
- Parameters:
networkIndex – The index of the object to be removed of type NetworkIndex.
- Return type:
Object of type Network.
Returns the Network at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findStationGroup(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type StationGroup.
Returns the child object with a certain publicID, None otherwise.
- findAuxDevice(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type AuxDevice.
Returns the child object with a certain publicID, None otherwise.
- findSensor(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Sensor.
Returns the child object with a certain publicID, None otherwise.
- findDatalogger(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Datalogger.
Returns the child object with a certain publicID, None otherwise.
- findResponsePAZ(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ResponsePAZ.
Returns the child object with a certain publicID, None otherwise.
- findResponseFIR(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ResponseFIR.
Returns the child object with a certain publicID, None otherwise.
- findResponseIIR(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ResponseIIR.
Returns the child object with a certain publicID, None otherwise.
- findResponsePolynomial(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ResponsePolynomial.
Returns the child object with a certain publicID, None otherwise.
- findResponseFAP(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type ResponseFAP.
Returns the child object with a certain publicID, None otherwise.
- findNetwork(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Network.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Inventory.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
JournalEntry¶
- class seiscomp.datamodel.JournalEntry¶
Inherits Seiscomp::DataModel::Object.
Parents:
journaling
– Journaling
Attributes:
created
– seiscomp.core.Time (optional)objectID
– stringsender
– stringaction
– stringparameters
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type JournalEntry if the cast was successful, None otherwise.
Cast an arbitrary object to JournalEntry if the internal wrapped representation is an JournalEntry object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type JournalEntry to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setObjectID(objectID)¶
- Parameters:
objectID – string
- objectID()¶
- Return type:
string
- setSender(sender)¶
- Parameters:
sender – string
- sender()¶
- Return type:
string
- setAction(action)¶
- Parameters:
action – string
- action()¶
- Return type:
string
- setParameters(parameters)¶
- Parameters:
parameters – string
- parameters()¶
- Return type:
string
- journaling()¶
- Return type:
Returns the parent Journaling if available. Returns None if the parent is not a Journaling. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned JournalEntry.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Journaling¶
- class seiscomp.datamodel.Journaling¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
journalEntry
– JournalEntry
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Journaling if the cast was successful, None otherwise.
Cast an arbitrary object to Journaling if the internal wrapped representation is an Journaling object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Journaling to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(journalEntry)¶
- Parameters:
journalEntry – Object of type JournalEntry
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a JournalEntry object to Journaling. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(journalEntry)¶
- Parameters:
journalEntry – Object of type JournalEntry
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added JournalEntry object from Journaling.
- removeJournalEntry(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- journalEntryCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of JournalEntry child objects.
- journalEntry(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type JournalEntry.
Returns the JournalEntry at index idx.
- findJournalEntry(journalEntry)¶
- Parameters:
journalEntry – Reference object of type JournalEntry.
- Return type:
Object of type JournalEntry.
Returns the child object with equals the passed object, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Journaling.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Magnitude¶
- class seiscomp.datamodel.Magnitude¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
origin
– Origin
Children:
comment
– CommentstationMagnitudeContribution
– StationMagnitudeContribution
Attributes:
publicID
: stringmagnitude
– RealQuantitytype
– stringoriginID
– stringmethodID
– stringstationCount
– int (optional)azimuthalGap
– float (optional)evaluationStatus
– EvaluationStatus (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Magnitude if the cast was successful, None otherwise.
Cast an arbitrary object to Magnitude if the internal wrapped representation is an Magnitude object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Magnitude.
Creates and registers (if enabled) a Magnitude instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Magnitude.
Creates and registers (if enabled) a Magnitude instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Magnitude to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setMagnitude(magnitude)¶
- Parameters:
magnitude – RealQuantity
- magnitude()¶
- Return type:
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setOriginID(originID)¶
- Parameters:
originID – string
- originID()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setStationCount(stationCount)¶
- Parameters:
stationCount – int
- stationCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuthalGap(azimuthalGap)¶
- Parameters:
azimuthalGap – float
- azimuthalGap()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationStatus(evaluationStatus)¶
- Parameters:
evaluationStatus – EvaluationStatus
- evaluationStatus()¶
- Return type:
EvaluationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Magnitude. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(stationMagnitudeContribution)¶
- Parameters:
stationMagnitudeContribution – Object of type StationMagnitudeContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a StationMagnitudeContribution object to Magnitude. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Magnitude.
- remove(stationMagnitudeContribution)¶
- Parameters:
stationMagnitudeContribution – Object of type StationMagnitudeContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added StationMagnitudeContribution object from Magnitude.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStationMagnitudeContribution(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStationMagnitudeContribution(stationMagnitudeContributionIndex);
- Parameters:
stationMagnitudeContributionIndex – The index of the object to be removed of type StationMagnitudeContributionIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- stationMagnitudeContributionCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of StationMagnitudeContribution child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- stationMagnitudeContribution(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type StationMagnitudeContribution.
Returns the StationMagnitudeContribution at index idx.
- stationMagnitudeContribution(stationMagnitudeContributionIndex)¶
- Parameters:
stationMagnitudeContributionIndex – The index of the object to be removed of type StationMagnitudeContributionIndex.
- Return type:
Object of type StationMagnitudeContribution.
Returns the StationMagnitudeContribution at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- origin()¶
- Return type:
Returns the parent Origin if available. Returns None if the parent is not a Origin. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Magnitude.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Measurement¶
- class seiscomp.datamodel.Measurement¶
Inherits Seiscomp::DataModel::Object.
Attributes:
value
– RealQuantityposition
– RealQuantity
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Measurement if the cast was successful, None otherwise.
Cast an arbitrary object to Measurement if the internal wrapped representation is an Measurement object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Measurement to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setValue(value)¶
- Parameters:
value – RealQuantity
- value()¶
- Return type:
- setPosition(position)¶
- Parameters:
position – RealQuantity
- position()¶
- Return type:
MomentTensor¶
- class seiscomp.datamodel.MomentTensor¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
focalMechanism
– FocalMechanism
Children:
comment
– CommentdataUsed
– DataUsedmomentTensorPhaseSetting
– MomentTensorPhaseSettingmomentTensorStationContribution
– MomentTensorStationContribution
Attributes:
publicID
: stringderivedOriginID
– stringmomentMagnitudeID
– stringscalarMoment
– RealQuantity (optional)tensor
– Tensor (optional)variance
– float (optional)varianceReduction
– float (optional)doubleCouple
– float (optional)clvd
– float (optional)iso
– float (optional)greensFunctionID
– stringfilterID
– stringsourceTimeFunction
– SourceTimeFunction (optional)methodID
– stringmethod
– MomentTensorMethod (optional)status
– MomentTensorStatus (optional)cmtName
– stringcmtVersion
– stringcreationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type MomentTensor if the cast was successful, None otherwise.
Cast an arbitrary object to MomentTensor if the internal wrapped representation is an MomentTensor object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type MomentTensor.
Creates and registers (if enabled) a MomentTensor instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type MomentTensor.
Creates and registers (if enabled) a MomentTensor instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type MomentTensor to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setDerivedOriginID(derivedOriginID)¶
- Parameters:
derivedOriginID – string
- derivedOriginID()¶
- Return type:
string
- setMomentMagnitudeID(momentMagnitudeID)¶
- Parameters:
momentMagnitudeID – string
- momentMagnitudeID()¶
- Return type:
string
- setScalarMoment(scalarMoment)¶
- Parameters:
scalarMoment – RealQuantity
- scalarMoment()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- tensor()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setVariance(variance)¶
- Parameters:
variance – float
- variance()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setVarianceReduction(varianceReduction)¶
- Parameters:
varianceReduction – float
- varianceReduction()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDoubleCouple(doubleCouple)¶
- Parameters:
doubleCouple – float
- doubleCouple()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setClvd(clvd)¶
- Parameters:
clvd – float
- clvd()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setIso(iso)¶
- Parameters:
iso – float
- iso()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGreensFunctionID(greensFunctionID)¶
- Parameters:
greensFunctionID – string
- greensFunctionID()¶
- Return type:
string
- setFilterID(filterID)¶
- Parameters:
filterID – string
- filterID()¶
- Return type:
string
- setSourceTimeFunction(sourceTimeFunction)¶
- Parameters:
sourceTimeFunction – SourceTimeFunction
- sourceTimeFunction()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setMethod(method)¶
- Parameters:
method – MomentTensorMethod
- method()¶
- Return type:
MomentTensorMethod
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setStatus(status)¶
- Parameters:
status – MomentTensorStatus
- status()¶
- Return type:
MomentTensorStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCmtName(cmtName)¶
- Parameters:
cmtName – string
- cmtName()¶
- Return type:
string
- setCmtVersion(cmtVersion)¶
- Parameters:
cmtVersion – string
- cmtVersion()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to MomentTensor. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(dataUsed)¶
- Parameters:
dataUsed – Object of type DataUsed
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a DataUsed object to MomentTensor. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(momentTensorPhaseSetting)¶
- Parameters:
momentTensorPhaseSetting – Object of type MomentTensorPhaseSetting
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a MomentTensorPhaseSetting object to MomentTensor. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(momentTensorStationContribution)¶
- Parameters:
momentTensorStationContribution – Object of type MomentTensorStationContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a MomentTensorStationContribution object to MomentTensor. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from MomentTensor.
- remove(dataUsed)¶
- Parameters:
dataUsed – Object of type DataUsed
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added DataUsed object from MomentTensor.
- remove(momentTensorPhaseSetting)¶
- Parameters:
momentTensorPhaseSetting – Object of type MomentTensorPhaseSetting
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added MomentTensorPhaseSetting object from MomentTensor.
- remove(momentTensorStationContribution)¶
- Parameters:
momentTensorStationContribution – Object of type MomentTensorStationContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added MomentTensorStationContribution object from MomentTensor.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDataUsed(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMomentTensorPhaseSetting(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMomentTensorPhaseSetting(momentTensorPhaseSettingIndex);
- Parameters:
momentTensorPhaseSettingIndex – The index of the object to be removed of type MomentTensorPhaseSettingIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMomentTensorStationContribution(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- dataUsedCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of DataUsed child objects.
- momentTensorPhaseSettingCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of MomentTensorPhaseSetting child objects.
- momentTensorStationContributionCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of MomentTensorStationContribution child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- dataUsed(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type DataUsed.
Returns the DataUsed at index idx.
- momentTensorPhaseSetting(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type MomentTensorPhaseSetting.
Returns the MomentTensorPhaseSetting at index idx.
- momentTensorPhaseSetting(momentTensorPhaseSettingIndex)¶
- Parameters:
momentTensorPhaseSettingIndex – The index of the object to be removed of type MomentTensorPhaseSettingIndex.
- Return type:
Object of type MomentTensorPhaseSetting.
Returns the MomentTensorPhaseSetting at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- momentTensorStationContribution(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type MomentTensorStationContribution.
Returns the MomentTensorStationContribution at index idx.
- findDataUsed(dataUsed)¶
-
Returns the child object with equals the passed object, None otherwise.
- findMomentTensorStationContribution(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type MomentTensorStationContribution.
Returns the child object with a certain publicID, None otherwise.
- focalMechanism()¶
- Return type:
Returns the parent FocalMechanism if available. Returns None if the parent is not a FocalMechanism. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned MomentTensor.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
MomentTensorComponentContribution¶
- class seiscomp.datamodel.MomentTensorComponentContribution¶
Inherits Seiscomp::DataModel::Object.
Parents:
momentTensorStationContribution
– MomentTensorStationContribution
Attributes:
phaseCode
– stringcomponent
– intactive
– booleanweight
– floattimeShift
– floatdataTimeWindow
– floatmisfit
– float (optional)snr
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type MomentTensorComponentContribution if the cast was successful, None otherwise.
Cast an arbitrary object to MomentTensorComponentContribution if the internal wrapped representation is an MomentTensorComponentContribution object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type MomentTensorComponentContribution to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type MomentTensorComponentContributionIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setPhaseCode(phaseCode)¶
- Parameters:
phaseCode – string
- phaseCode()¶
- Return type:
string
- setComponent(component)¶
- Parameters:
component – int
- component()¶
- Return type:
int
- setActive(active)¶
- Parameters:
active – boolean
- active()¶
- Return type:
boolean
- setWeight(weight)¶
- Parameters:
weight – float
- weight()¶
- Return type:
float
- setTimeShift(timeShift)¶
- Parameters:
timeShift – float
- timeShift()¶
- Return type:
float
- setDataTimeWindow(dataTimeWindow)¶
- Parameters:
dataTimeWindow – float
- dataTimeWindow()¶
- Return type:
float
- setMisfit(misfit)¶
- Parameters:
misfit – float
- misfit()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSnr(snr)¶
- Parameters:
snr – float
- snr()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- momentTensorStationContribution()¶
- Return type:
Returns the parent MomentTensorStationContribution if available. Returns None if the parent is not a MomentTensorStationContribution. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned MomentTensorComponentContribution.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
MomentTensorPhaseSetting¶
- class seiscomp.datamodel.MomentTensorPhaseSetting¶
Inherits Seiscomp::DataModel::Object.
Parents:
momentTensor
– MomentTensor
Attributes:
code
– stringlowerPeriod
– floatupperPeriod
– floatminimumSNR
– float (optional)maximumTimeShift
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type MomentTensorPhaseSetting if the cast was successful, None otherwise.
Cast an arbitrary object to MomentTensorPhaseSetting if the internal wrapped representation is an MomentTensorPhaseSetting object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type MomentTensorPhaseSetting to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type MomentTensorPhaseSettingIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – MomentTensorPhaseSetting
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setLowerPeriod(lowerPeriod)¶
- Parameters:
lowerPeriod – float
- lowerPeriod()¶
- Return type:
float
- setUpperPeriod(upperPeriod)¶
- Parameters:
upperPeriod – float
- upperPeriod()¶
- Return type:
float
- setMinimumSNR(minimumSNR)¶
- Parameters:
minimumSNR – float
- minimumSNR()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMaximumTimeShift(maximumTimeShift)¶
- Parameters:
maximumTimeShift – float
- maximumTimeShift()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- momentTensor()¶
- Return type:
Returns the parent MomentTensor if available. Returns None if the parent is not a MomentTensor. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned MomentTensorPhaseSetting.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
MomentTensorStationContribution¶
- class seiscomp.datamodel.MomentTensorStationContribution¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
momentTensor
– MomentTensor
Children:
momentTensorComponentContribution
– MomentTensorComponentContribution
Attributes:
publicID
: stringactive
– booleanwaveformID
– WaveformStreamID (optional)weight
– float (optional)timeShift
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type MomentTensorStationContribution if the cast was successful, None otherwise.
Cast an arbitrary object to MomentTensorStationContribution if the internal wrapped representation is an MomentTensorStationContribution object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type MomentTensorStationContribution.
Creates and registers (if enabled) a MomentTensorStationContribution instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type MomentTensorStationContribution.
Creates and registers (if enabled) a MomentTensorStationContribution instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type MomentTensorStationContribution to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setActive(active)¶
- Parameters:
active – boolean
- active()¶
- Return type:
boolean
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setWeight(weight)¶
- Parameters:
weight – float
- weight()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTimeShift(timeShift)¶
- Parameters:
timeShift – float
- timeShift()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(momentTensorComponentContribution)¶
- Parameters:
momentTensorComponentContribution – Object of type MomentTensorComponentContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a MomentTensorComponentContribution object to MomentTensorStationContribution. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(momentTensorComponentContribution)¶
- Parameters:
momentTensorComponentContribution – Object of type MomentTensorComponentContribution
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added MomentTensorComponentContribution object from MomentTensorStationContribution.
- removeMomentTensorComponentContribution(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMomentTensorComponentContribution(momentTensorComponentContributionIndex);
- Parameters:
momentTensorComponentContributionIndex – The index of the object to be removed of type MomentTensorComponentContributionIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- momentTensorComponentContributionCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of MomentTensorComponentContribution child objects.
- momentTensorComponentContribution(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type MomentTensorComponentContribution.
Returns the MomentTensorComponentContribution at index idx.
- momentTensorComponentContribution(momentTensorComponentContributionIndex)¶
- Parameters:
momentTensorComponentContributionIndex – The index of the object to be removed of type MomentTensorComponentContributionIndex.
- Return type:
Object of type MomentTensorComponentContribution.
Returns the MomentTensorComponentContribution at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- momentTensor()¶
- Return type:
Returns the parent MomentTensor if available. Returns None if the parent is not a MomentTensor. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned MomentTensorStationContribution.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Network¶
- class seiscomp.datamodel.Network¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Children:
Attributes:
publicID
: stringcode
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)description
– stringinstitutions
– stringregion
– stringtype
– stringnetClass
– stringarchive
– stringrestricted
– boolean (optional)shared
– boolean (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Network if the cast was successful, None otherwise.
Cast an arbitrary object to Network if the internal wrapped representation is an Network object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Network.
Creates and registers (if enabled) a Network instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Network.
Creates and registers (if enabled) a Network instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Network to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type NetworkIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Network
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setInstitutions(institutions)¶
- Parameters:
institutions – string
- institutions()¶
- Return type:
string
- setRegion(region)¶
- Parameters:
region – string
- region()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setNetClass(netClass)¶
- Parameters:
netClass – string
- netClass()¶
- Return type:
string
- setArchive(archive)¶
- Parameters:
archive – string
- archive()¶
- Return type:
string
- setRestricted(restricted)¶
- Parameters:
restricted – boolean
- restricted()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- Parameters:
shared – boolean
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Network. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(station)¶
- Parameters:
station – Object of type Station
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Station object to Network. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Network.
- remove(station)¶
- Parameters:
station – Object of type Station
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Station object from Network.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStation(stationIndex);
- Parameters:
stationIndex – The index of the object to be removed of type StationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- stationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Station child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- station(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Station.
Returns the Station at index idx.
- station(stationIndex)¶
- Parameters:
stationIndex – The index of the object to be removed of type StationIndex.
- Return type:
Object of type Station.
Returns the Station at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findStation(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Station.
Returns the child object with a certain publicID, None otherwise.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Network.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
NodalPlane¶
- class seiscomp.datamodel.NodalPlane¶
Inherits Seiscomp::DataModel::Object.
Attributes:
strike
– RealQuantitydip
– RealQuantityrake
– RealQuantity
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type NodalPlane if the cast was successful, None otherwise.
Cast an arbitrary object to NodalPlane if the internal wrapped representation is an NodalPlane object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type NodalPlane to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setStrike(strike)¶
- Parameters:
strike – RealQuantity
- strike()¶
- Return type:
- setDip(dip)¶
- Parameters:
dip – RealQuantity
- dip()¶
- Return type:
- setRake(rake)¶
- Parameters:
rake – RealQuantity
- rake()¶
- Return type:
NodalPlanes¶
- class seiscomp.datamodel.NodalPlanes¶
Inherits Seiscomp::DataModel::Object.
Attributes:
nodalPlane1
– NodalPlane (optional)nodalPlane2
– NodalPlane (optional)preferredPlane
– int (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type NodalPlanes if the cast was successful, None otherwise.
Cast an arbitrary object to NodalPlanes if the internal wrapped representation is an NodalPlanes object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type NodalPlanes to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setNodalPlane1(nodalPlane1)¶
- Parameters:
nodalPlane1 – NodalPlane
- nodalPlane1()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNodalPlane2(nodalPlane2)¶
- Parameters:
nodalPlane2 – NodalPlane
- nodalPlane2()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPreferredPlane(preferredPlane)¶
- Parameters:
preferredPlane – int
- preferredPlane()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
Origin¶
- class seiscomp.datamodel.Origin¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParameters
Children:
comment
– CommentcompositeTime
– CompositeTimearrival
– ArrivalstationMagnitude
– StationMagnitudemagnitude
– Magnitude
Attributes:
publicID
: stringtime
– TimeQuantitylatitude
– RealQuantitylongitude
– RealQuantitydepth
– RealQuantity (optional)depthType
– OriginDepthType (optional)timeFixed
– boolean (optional)epicenterFixed
– boolean (optional)referenceSystemID
– stringmethodID
– stringearthModelID
– stringquality
– OriginQuality (optional)uncertainty
– OriginUncertainty (optional)type
– OriginType (optional)evaluationMode
– EvaluationMode (optional)evaluationStatus
– EvaluationStatus (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Origin if the cast was successful, None otherwise.
Cast an arbitrary object to Origin if the internal wrapped representation is an Origin object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Origin.
Creates and registers (if enabled) a Origin instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Origin.
Creates and registers (if enabled) a Origin instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Origin to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setTime(time)¶
- Parameters:
time – TimeQuantity
- time()¶
- Return type:
- setLatitude(latitude)¶
- Parameters:
latitude – RealQuantity
- latitude()¶
- Return type:
- setLongitude(longitude)¶
- Parameters:
longitude – RealQuantity
- longitude()¶
- Return type:
- setDepth(depth)¶
- Parameters:
depth – RealQuantity
- depth()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDepthType(depthType)¶
- Parameters:
depthType – OriginDepthType
- depthType()¶
- Return type:
OriginDepthType
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTimeFixed(timeFixed)¶
- Parameters:
timeFixed – boolean
- timeFixed()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEpicenterFixed(epicenterFixed)¶
- Parameters:
epicenterFixed – boolean
- epicenterFixed()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setReferenceSystemID(referenceSystemID)¶
- Parameters:
referenceSystemID – string
- referenceSystemID()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setEarthModelID(earthModelID)¶
- Parameters:
earthModelID – string
- earthModelID()¶
- Return type:
string
- setQuality(quality)¶
- Parameters:
quality – OriginQuality
- quality()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUncertainty(uncertainty)¶
- Parameters:
uncertainty – OriginUncertainty
- uncertainty()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setType(type)¶
- Parameters:
type – OriginType
- type()¶
- Return type:
OriginType
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationStatus(evaluationStatus)¶
- Parameters:
evaluationStatus – EvaluationStatus
- evaluationStatus()¶
- Return type:
EvaluationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Origin. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(compositeTime)¶
- Parameters:
compositeTime – Object of type CompositeTime
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a CompositeTime object to Origin. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(arrival)¶
- Parameters:
arrival – Object of type Arrival
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Arrival object to Origin. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(stationMagnitude)¶
- Parameters:
stationMagnitude – Object of type StationMagnitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a StationMagnitude object to Origin. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(magnitude)¶
- Parameters:
magnitude – Object of type Magnitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Magnitude object to Origin. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Origin.
- remove(compositeTime)¶
- Parameters:
compositeTime – Object of type CompositeTime
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added CompositeTime object from Origin.
- remove(arrival)¶
- Parameters:
arrival – Object of type Arrival
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Arrival object from Origin.
- remove(stationMagnitude)¶
- Parameters:
stationMagnitude – Object of type StationMagnitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added StationMagnitude object from Origin.
- remove(magnitude)¶
- Parameters:
magnitude – Object of type Magnitude
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Magnitude object from Origin.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeCompositeTime(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArrival(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeArrival(arrivalIndex);
- Parameters:
arrivalIndex – The index of the object to be removed of type ArrivalIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStationMagnitude(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeMagnitude(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- compositeTimeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of CompositeTime child objects.
- arrivalCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Arrival child objects.
- stationMagnitudeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of StationMagnitude child objects.
- magnitudeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Magnitude child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- compositeTime(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type CompositeTime.
Returns the CompositeTime at index idx.
- arrival(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Arrival.
Returns the Arrival at index idx.
- arrival(arrivalIndex)¶
- Parameters:
arrivalIndex – The index of the object to be removed of type ArrivalIndex.
- Return type:
Object of type Arrival.
Returns the Arrival at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- stationMagnitude(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type StationMagnitude.
Returns the StationMagnitude at index idx.
- magnitude(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Magnitude.
Returns the Magnitude at index idx.
- findCompositeTime(compositeTime)¶
- Parameters:
compositeTime – Reference object of type CompositeTime.
- Return type:
Object of type CompositeTime.
Returns the child object with equals the passed object, None otherwise.
- findStationMagnitude(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type StationMagnitude.
Returns the child object with a certain publicID, None otherwise.
- findMagnitude(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Magnitude.
Returns the child object with a certain publicID, None otherwise.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Origin.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
OriginQuality¶
- class seiscomp.datamodel.OriginQuality¶
Inherits Seiscomp::DataModel::Object.
Attributes:
associatedPhaseCount
– int (optional)usedPhaseCount
– int (optional)associatedStationCount
– int (optional)usedStationCount
– int (optional)depthPhaseCount
– int (optional)standardError
– float (optional)azimuthalGap
– float (optional)secondaryAzimuthalGap
– float (optional)groundTruthLevel
– stringmaximumDistance
– float (optional)minimumDistance
– float (optional)medianDistance
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type OriginQuality if the cast was successful, None otherwise.
Cast an arbitrary object to OriginQuality if the internal wrapped representation is an OriginQuality object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type OriginQuality to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setAssociatedPhaseCount(associatedPhaseCount)¶
- Parameters:
associatedPhaseCount – int
- associatedPhaseCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUsedPhaseCount(usedPhaseCount)¶
- Parameters:
usedPhaseCount – int
- usedPhaseCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAssociatedStationCount(associatedStationCount)¶
- Parameters:
associatedStationCount – int
- associatedStationCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUsedStationCount(usedStationCount)¶
- Parameters:
usedStationCount – int
- usedStationCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDepthPhaseCount(depthPhaseCount)¶
- Parameters:
depthPhaseCount – int
- depthPhaseCount()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setStandardError(standardError)¶
- Parameters:
standardError – float
- standardError()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuthalGap(azimuthalGap)¶
- Parameters:
azimuthalGap – float
- azimuthalGap()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSecondaryAzimuthalGap(secondaryAzimuthalGap)¶
- Parameters:
secondaryAzimuthalGap – float
- secondaryAzimuthalGap()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGroundTruthLevel(groundTruthLevel)¶
- Parameters:
groundTruthLevel – string
- groundTruthLevel()¶
- Return type:
string
- setMaximumDistance(maximumDistance)¶
- Parameters:
maximumDistance – float
- maximumDistance()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMinimumDistance(minimumDistance)¶
- Parameters:
minimumDistance – float
- minimumDistance()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMedianDistance(medianDistance)¶
- Parameters:
medianDistance – float
- medianDistance()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
OriginReference¶
- class seiscomp.datamodel.OriginReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
event
– Event
Attributes:
originID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type OriginReference if the cast was successful, None otherwise.
Cast an arbitrary object to OriginReference if the internal wrapped representation is an OriginReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type OriginReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type OriginReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – OriginReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setOriginID(originID)¶
- Parameters:
originID – string
- originID()¶
- Return type:
string
- event()¶
- Return type:
Returns the parent Event if available. Returns None if the parent is not a Event. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned OriginReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
OriginUncertainty¶
- class seiscomp.datamodel.OriginUncertainty¶
Inherits Seiscomp::DataModel::Object.
Attributes:
horizontalUncertainty
– float (optional)minHorizontalUncertainty
– float (optional)maxHorizontalUncertainty
– float (optional)azimuthMaxHorizontalUncertainty
– float (optional)confidenceEllipsoid
– ConfidenceEllipsoid (optional)preferredDescription
– OriginUncertaintyDescription (optional)confidenceLevel
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type OriginUncertainty if the cast was successful, None otherwise.
Cast an arbitrary object to OriginUncertainty if the internal wrapped representation is an OriginUncertainty object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type OriginUncertainty to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setHorizontalUncertainty(horizontalUncertainty)¶
- Parameters:
horizontalUncertainty – float
- horizontalUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMinHorizontalUncertainty(minHorizontalUncertainty)¶
- Parameters:
minHorizontalUncertainty – float
- minHorizontalUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMaxHorizontalUncertainty(maxHorizontalUncertainty)¶
- Parameters:
maxHorizontalUncertainty – float
- maxHorizontalUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuthMaxHorizontalUncertainty(azimuthMaxHorizontalUncertainty)¶
- Parameters:
azimuthMaxHorizontalUncertainty – float
- azimuthMaxHorizontalUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setConfidenceEllipsoid(confidenceEllipsoid)¶
- Parameters:
confidenceEllipsoid – ConfidenceEllipsoid
- confidenceEllipsoid()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPreferredDescription(preferredDescription)¶
- Parameters:
preferredDescription – OriginUncertaintyDescription
- preferredDescription()¶
- Return type:
OriginUncertaintyDescription
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setConfidenceLevel(confidenceLevel)¶
- Parameters:
confidenceLevel – float
- confidenceLevel()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
Outage¶
- class seiscomp.datamodel.Outage¶
Inherits Seiscomp::DataModel::Object.
Parents:
qualityControl
– QualityControl
Attributes:
waveformID
– WaveformStreamIDcreatorID
– stringcreated
– seiscomp.core.Timestart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Outage if the cast was successful, None otherwise.
Cast an arbitrary object to Outage if the internal wrapped representation is an Outage object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Outage to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type OutageIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Outage
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
- setCreatorID(creatorID)¶
- Parameters:
creatorID – string
- creatorID()¶
- Return type:
string
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- qualityControl()¶
- Return type:
Returns the parent QualityControl if available. Returns None if the parent is not a QualityControl. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Outage.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Parameter¶
- class seiscomp.datamodel.Parameter¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
parameterSet
– ParameterSet
Children:
comment
– Comment
Attributes:
publicID
: stringname
– stringvalue
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Parameter if the cast was successful, None otherwise.
Cast an arbitrary object to Parameter if the internal wrapped representation is an Parameter object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Parameter.
Creates and registers (if enabled) a Parameter instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Parameter.
Creates and registers (if enabled) a Parameter instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Parameter to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setValue(value)¶
- Parameters:
value – string
- value()¶
- Return type:
string
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Parameter. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Parameter.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- parameterSet()¶
- Return type:
Returns the parent ParameterSet if available. Returns None if the parent is not a ParameterSet. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Parameter.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ParameterSet¶
- class seiscomp.datamodel.ParameterSet¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
config
– Config
Children:
Attributes:
publicID
: stringbaseID
– stringmoduleID
– stringcreated
– seiscomp.core.Time (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ParameterSet if the cast was successful, None otherwise.
Cast an arbitrary object to ParameterSet if the internal wrapped representation is an ParameterSet object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ParameterSet.
Creates and registers (if enabled) a ParameterSet instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ParameterSet.
Creates and registers (if enabled) a ParameterSet instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ParameterSet to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setBaseID(baseID)¶
- Parameters:
baseID – string
- baseID()¶
- Return type:
string
- setModuleID(moduleID)¶
- Parameters:
moduleID – string
- moduleID()¶
- Return type:
string
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(parameter)¶
- Parameters:
parameter – Object of type Parameter
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Parameter object to ParameterSet. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to ParameterSet. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(parameter)¶
- Parameters:
parameter – Object of type Parameter
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Parameter object from ParameterSet.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from ParameterSet.
- removeParameter(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- parameterCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Parameter child objects.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- parameter(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Parameter.
Returns the Parameter at index idx.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findParameter(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Parameter.
Returns the child object with a certain publicID, None otherwise.
- config()¶
- Return type:
Returns the parent Config if available. Returns None if the parent is not a Config. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ParameterSet.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Patch¶
- class seiscomp.datamodel.Patch¶
Inherits Seiscomp::DataModel::Object.
Parents:
simulation
– Simulation
Attributes:
id
– stringp0
– PatchVertexp1
– PatchVertexdelay
– floatdip
– floatrake
– floatslip
– float (optional)depth
– floatwidth
– float
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Patch if the cast was successful, None otherwise.
Cast an arbitrary object to Patch if the internal wrapped representation is an Patch object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Patch to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setId(id)¶
- Parameters:
id – string
- id()¶
- Return type:
string
- setP0(p0)¶
- Parameters:
p0 – PatchVertex
- p0()¶
- Return type:
- setP1(p1)¶
- Parameters:
p1 – PatchVertex
- p1()¶
- Return type:
- setDelay(delay)¶
- Parameters:
delay – float
- delay()¶
- Return type:
float
- setDip(dip)¶
- Parameters:
dip – float
- dip()¶
- Return type:
float
- setRake(rake)¶
- Parameters:
rake – float
- rake()¶
- Return type:
float
- setSlip(slip)¶
- Parameters:
slip – float
- slip()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDepth(depth)¶
- Parameters:
depth – float
- depth()¶
- Return type:
float
- setWidth(width)¶
- Parameters:
width – float
- width()¶
- Return type:
float
- simulation()¶
- Return type:
Returns the parent Simulation if available. Returns None if the parent is not a Simulation. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Patch.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
PatchVertex¶
- class seiscomp.datamodel.PatchVertex¶
Inherits Seiscomp::DataModel::Object.
Attributes:
latitude
– floatlongitude
– float
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type PatchVertex if the cast was successful, None otherwise.
Cast an arbitrary object to PatchVertex if the internal wrapped representation is an PatchVertex object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type PatchVertex to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setLatitude(latitude)¶
- Parameters:
latitude – float
- latitude()¶
- Return type:
float
- setLongitude(longitude)¶
- Parameters:
longitude – float
- longitude()¶
- Return type:
float
Phase¶
- class seiscomp.datamodel.Phase¶
Inherits Seiscomp::DataModel::Object.
Attributes:
code
– string
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Phase if the cast was successful, None otherwise.
Cast an arbitrary object to Phase if the internal wrapped representation is an Phase object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Phase to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
Pick¶
- class seiscomp.datamodel.Pick¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParametersincident
– Incident
Children:
comment
– Comment
Attributes:
publicID
: stringtime
– TimeQuantitywaveformID
– WaveformStreamIDfilterID
– stringmethodID
– stringhorizontalSlowness
– RealQuantity (optional)backazimuth
– RealQuantity (optional)slownessMethodID
– stringonset
– PickOnset (optional)phaseHint
– Phase (optional)polarity
– PickPolarity (optional)evaluationMode
– EvaluationMode (optional)evaluationStatus
– EvaluationStatus (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Pick if the cast was successful, None otherwise.
Cast an arbitrary object to Pick if the internal wrapped representation is an Pick object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Pick.
Creates and registers (if enabled) a Pick instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Pick.
Creates and registers (if enabled) a Pick instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Pick to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setTime(time)¶
- Parameters:
time – TimeQuantity
- time()¶
- Return type:
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
- setFilterID(filterID)¶
- Parameters:
filterID – string
- filterID()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setHorizontalSlowness(horizontalSlowness)¶
- Parameters:
horizontalSlowness – RealQuantity
- horizontalSlowness()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setBackazimuth(backazimuth)¶
- Parameters:
backazimuth – RealQuantity
- backazimuth()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSlownessMethodID(slownessMethodID)¶
- Parameters:
slownessMethodID – string
- slownessMethodID()¶
- Return type:
string
- setOnset(onset)¶
- Parameters:
onset – PickOnset
- onset()¶
- Return type:
PickOnset
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- phaseHint()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPolarity(polarity)¶
- Parameters:
polarity – PickPolarity
- polarity()¶
- Return type:
PickPolarity
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationStatus(evaluationStatus)¶
- Parameters:
evaluationStatus – EvaluationStatus
- evaluationStatus()¶
- Return type:
EvaluationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Pick. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Pick.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Pick.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
PickReference¶
- class seiscomp.datamodel.PickReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
reading
– Reading
Attributes:
pickID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type PickReference if the cast was successful, None otherwise.
Cast an arbitrary object to PickReference if the internal wrapped representation is an PickReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type PickReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type PickReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – PickReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setPickID(pickID)¶
- Parameters:
pickID – string
- pickID()¶
- Return type:
string
- reading()¶
- Return type:
Returns the parent Reading if available. Returns None if the parent is not a Reading. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned PickReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
PrincipalAxes¶
- class seiscomp.datamodel.PrincipalAxes¶
Inherits Seiscomp::DataModel::Object.
Attributes:
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type PrincipalAxes if the cast was successful, None otherwise.
Cast an arbitrary object to PrincipalAxes if the internal wrapped representation is an PrincipalAxes object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type PrincipalAxes to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
QCLog¶
- class seiscomp.datamodel.QCLog¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
qualityControl
– QualityControl
Attributes:
publicID
: stringwaveformID
– WaveformStreamIDcreatorID
– stringcreated
– seiscomp.core.Timestart
– seiscomp.core.Timeend
– seiscomp.core.Timemessage
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type QCLog if the cast was successful, None otherwise.
Cast an arbitrary object to QCLog if the internal wrapped representation is an QCLog object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type QCLog.
Creates and registers (if enabled) a QCLog instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type QCLog.
Creates and registers (if enabled) a QCLog instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type QCLog to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type QCLogIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – QCLog
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
- setCreatorID(creatorID)¶
- Parameters:
creatorID – string
- creatorID()¶
- Return type:
string
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
- setMessage(message)¶
- Parameters:
message – string
- message()¶
- Return type:
string
- qualityControl()¶
- Return type:
Returns the parent QualityControl if available. Returns None if the parent is not a QualityControl. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned QCLog.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
QualityControl¶
- class seiscomp.datamodel.QualityControl¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
qCLog
– QCLogwaveformQuality
– WaveformQualityoutage
– Outage
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type QualityControl if the cast was successful, None otherwise.
Cast an arbitrary object to QualityControl if the internal wrapped representation is an QualityControl object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type QualityControl to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(qCLog)¶
- Parameters:
qCLog – Object of type QCLog
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a QCLog object to QualityControl. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(waveformQuality)¶
- Parameters:
waveformQuality – Object of type WaveformQuality
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a WaveformQuality object to QualityControl. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(outage)¶
- Parameters:
outage – Object of type Outage
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Outage object to QualityControl. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(qCLog)¶
- Parameters:
qCLog – Object of type QCLog
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added QCLog object from QualityControl.
- remove(waveformQuality)¶
- Parameters:
waveformQuality – Object of type WaveformQuality
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added WaveformQuality object from QualityControl.
- remove(outage)¶
- Parameters:
outage – Object of type Outage
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Outage object from QualityControl.
- removeQCLog(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeQCLog(qCLogIndex);
- Parameters:
qCLogIndex – The index of the object to be removed of type QCLogIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeWaveformQuality(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeWaveformQuality(waveformQualityIndex);
- Parameters:
waveformQualityIndex – The index of the object to be removed of type WaveformQualityIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeOutage(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeOutage(outageIndex);
- Parameters:
outageIndex – The index of the object to be removed of type OutageIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- qCLogCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of QCLog child objects.
- waveformQualityCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of WaveformQuality child objects.
- outageCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Outage child objects.
- qCLog(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type QCLog.
Returns the QCLog at index idx.
- qCLog(qCLogIndex)¶
- Parameters:
qCLogIndex – The index of the object to be removed of type QCLogIndex.
- Return type:
Object of type QCLog.
Returns the QCLog at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- waveformQuality(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type WaveformQuality.
Returns the WaveformQuality at index idx.
- waveformQuality(waveformQualityIndex)¶
- Parameters:
waveformQualityIndex – The index of the object to be removed of type WaveformQualityIndex.
- Return type:
Object of type WaveformQuality.
Returns the WaveformQuality at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- outage(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Outage.
Returns the Outage at index idx.
- outage(outageIndex)¶
- Parameters:
outageIndex – The index of the object to be removed of type OutageIndex.
- Return type:
Object of type Outage.
Returns the Outage at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findQCLog(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type QCLog.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned QualityControl.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Reading¶
- class seiscomp.datamodel.Reading¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
eventParameters
– EventParameters
Children:
pickReference
– PickReferenceamplitudeReference
– AmplitudeReference
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Reading if the cast was successful, None otherwise.
Cast an arbitrary object to Reading if the internal wrapped representation is an Reading object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Reading.
Creates and registers (if enabled) a Reading instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Reading.
Creates and registers (if enabled) a Reading instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Reading to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(pickReference)¶
- Parameters:
pickReference – Object of type PickReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a PickReference object to Reading. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(amplitudeReference)¶
- Parameters:
amplitudeReference – Object of type AmplitudeReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a AmplitudeReference object to Reading. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(pickReference)¶
- Parameters:
pickReference – Object of type PickReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added PickReference object from Reading.
- remove(amplitudeReference)¶
- Parameters:
amplitudeReference – Object of type AmplitudeReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added AmplitudeReference object from Reading.
- removePickReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removePickReference(pickReferenceIndex);
- Parameters:
pickReferenceIndex – The index of the object to be removed of type PickReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAmplitudeReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAmplitudeReference(amplitudeReferenceIndex);
- Parameters:
amplitudeReferenceIndex – The index of the object to be removed of type AmplitudeReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- pickReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of PickReference child objects.
- amplitudeReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of AmplitudeReference child objects.
- pickReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type PickReference.
Returns the PickReference at index idx.
- pickReference(pickReferenceIndex)¶
- Parameters:
pickReferenceIndex – The index of the object to be removed of type PickReferenceIndex.
- Return type:
Object of type PickReference.
Returns the PickReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- amplitudeReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type AmplitudeReference.
Returns the AmplitudeReference at index idx.
- amplitudeReference(amplitudeReferenceIndex)¶
- Parameters:
amplitudeReferenceIndex – The index of the object to be removed of type AmplitudeReferenceIndex.
- Return type:
Object of type AmplitudeReference.
Returns the AmplitudeReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- eventParameters()¶
- Return type:
Returns the parent EventParameters if available. Returns None if the parent is not a EventParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Reading.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
RealArray¶
- class seiscomp.datamodel.RealArray¶
Inherits Seiscomp::DataModel::Object.
Attributes:
content
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type RealArray if the cast was successful, None otherwise.
Cast an arbitrary object to RealArray if the internal wrapped representation is an RealArray object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type RealArray to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setContent(content)¶
- Parameters:
content – float
- content()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
RealPDF1D¶
- class seiscomp.datamodel.RealPDF1D¶
Inherits Seiscomp::DataModel::Object.
Attributes:
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type RealPDF1D if the cast was successful, None otherwise.
Cast an arbitrary object to RealPDF1D if the internal wrapped representation is an RealPDF1D object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type RealPDF1D to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
RealQuantity¶
- class seiscomp.datamodel.RealQuantity¶
Inherits Seiscomp::DataModel::Object.
Attributes:
value
– floatuncertainty
– float (optional)lowerUncertainty
– float (optional)upperUncertainty
– float (optional)confidenceLevel
– float (optional)pdf
– RealPDF1D (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type RealQuantity if the cast was successful, None otherwise.
Cast an arbitrary object to RealQuantity if the internal wrapped representation is an RealQuantity object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type RealQuantity to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setValue(value)¶
- Parameters:
value – float
- value()¶
- Return type:
float
- setUncertainty(uncertainty)¶
- Parameters:
uncertainty – float
- uncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLowerUncertainty(lowerUncertainty)¶
- Parameters:
lowerUncertainty – float
- lowerUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUpperUncertainty(upperUncertainty)¶
- Parameters:
upperUncertainty – float
- upperUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setConfidenceLevel(confidenceLevel)¶
- Parameters:
confidenceLevel – float
- confidenceLevel()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
ResponseFAP¶
- class seiscomp.datamodel.ResponseFAP¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Attributes:
publicID
: stringname
– stringgain
– float (optional)gainFrequency
– float (optional)numberOfTuples
– int (optional)tuples
– RealArray (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ResponseFAP if the cast was successful, None otherwise.
Cast an arbitrary object to ResponseFAP if the internal wrapped representation is an ResponseFAP object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ResponseFAP.
Creates and registers (if enabled) a ResponseFAP instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ResponseFAP.
Creates and registers (if enabled) a ResponseFAP instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ResponseFAP to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ResponseFAPIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ResponseFAP
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfTuples(numberOfTuples)¶
- Parameters:
numberOfTuples – int
- numberOfTuples()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- tuples()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ResponseFAP.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ResponseFIR¶
- class seiscomp.datamodel.ResponseFIR¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Attributes:
publicID
: stringname
– stringgain
– float (optional)gainFrequency
– float (optional)decimationFactor
– int (optional)delay
– float (optional)correction
– float (optional)numberOfCoefficients
– int (optional)symmetry
– stringcoefficients
– RealArray (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ResponseFIR if the cast was successful, None otherwise.
Cast an arbitrary object to ResponseFIR if the internal wrapped representation is an ResponseFIR object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ResponseFIR.
Creates and registers (if enabled) a ResponseFIR instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ResponseFIR.
Creates and registers (if enabled) a ResponseFIR instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ResponseFIR to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ResponseFIRIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ResponseFIR
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDecimationFactor(decimationFactor)¶
- Parameters:
decimationFactor – int
- decimationFactor()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDelay(delay)¶
- Parameters:
delay – float
- delay()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCorrection(correction)¶
- Parameters:
correction – float
- correction()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfCoefficients(numberOfCoefficients)¶
- Parameters:
numberOfCoefficients – int
- numberOfCoefficients()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSymmetry(symmetry)¶
- Parameters:
symmetry – string
- symmetry()¶
- Return type:
string
- coefficients()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ResponseFIR.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ResponseIIR¶
- class seiscomp.datamodel.ResponseIIR¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Attributes:
publicID
: stringname
– stringtype
– stringgain
– float (optional)gainFrequency
– float (optional)decimationFactor
– int (optional)delay
– float (optional)correction
– float (optional)numberOfNumerators
– int (optional)numberOfDenominators
– int (optional)numerators
– RealArray (optional)denominators
– RealArray (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ResponseIIR if the cast was successful, None otherwise.
Cast an arbitrary object to ResponseIIR if the internal wrapped representation is an ResponseIIR object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ResponseIIR.
Creates and registers (if enabled) a ResponseIIR instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ResponseIIR.
Creates and registers (if enabled) a ResponseIIR instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ResponseIIR to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ResponseIIRIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ResponseIIR
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDecimationFactor(decimationFactor)¶
- Parameters:
decimationFactor – int
- decimationFactor()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDelay(delay)¶
- Parameters:
delay – float
- delay()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCorrection(correction)¶
- Parameters:
correction – float
- correction()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfNumerators(numberOfNumerators)¶
- Parameters:
numberOfNumerators – int
- numberOfNumerators()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfDenominators(numberOfDenominators)¶
- Parameters:
numberOfDenominators – int
- numberOfDenominators()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- numerators()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- denominators()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ResponseIIR.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ResponsePAZ¶
- class seiscomp.datamodel.ResponsePAZ¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Attributes:
publicID
: stringname
– stringtype
– stringgain
– float (optional)gainFrequency
– float (optional)normalizationFactor
– float (optional)normalizationFrequency
– float (optional)numberOfZeros
– int (optional)numberOfPoles
– int (optional)zeros
– ComplexArray (optional)poles
– ComplexArray (optional)remark
– Blob (optional)decimationFactor
– int (optional)delay
– float (optional)correction
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ResponsePAZ if the cast was successful, None otherwise.
Cast an arbitrary object to ResponsePAZ if the internal wrapped representation is an ResponsePAZ object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ResponsePAZ.
Creates and registers (if enabled) a ResponsePAZ instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ResponsePAZ.
Creates and registers (if enabled) a ResponsePAZ instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ResponsePAZ to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ResponsePAZIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ResponsePAZ
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNormalizationFactor(normalizationFactor)¶
- Parameters:
normalizationFactor – float
- normalizationFactor()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNormalizationFrequency(normalizationFrequency)¶
- Parameters:
normalizationFrequency – float
- normalizationFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfZeros(numberOfZeros)¶
- Parameters:
numberOfZeros – int
- numberOfZeros()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfPoles(numberOfPoles)¶
- Parameters:
numberOfPoles – int
- numberOfPoles()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setZeros(zeros)¶
- Parameters:
zeros – ComplexArray
- zeros()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPoles(poles)¶
- Parameters:
poles – ComplexArray
- poles()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDecimationFactor(decimationFactor)¶
- Parameters:
decimationFactor – int
- decimationFactor()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDelay(delay)¶
- Parameters:
delay – float
- delay()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCorrection(correction)¶
- Parameters:
correction – float
- correction()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ResponsePAZ.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
ResponsePolynomial¶
- class seiscomp.datamodel.ResponsePolynomial¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Attributes:
publicID
: stringname
– stringgain
– float (optional)gainFrequency
– float (optional)frequencyUnit
– stringapproximationType
– stringapproximationLowerBound
– float (optional)approximationUpperBound
– float (optional)approximationError
– float (optional)numberOfCoefficients
– int (optional)coefficients
– RealArray (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type ResponsePolynomial if the cast was successful, None otherwise.
Cast an arbitrary object to ResponsePolynomial if the internal wrapped representation is an ResponsePolynomial object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type ResponsePolynomial.
Creates and registers (if enabled) a ResponsePolynomial instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type ResponsePolynomial.
Creates and registers (if enabled) a ResponsePolynomial instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type ResponsePolynomial to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type ResponsePolynomialIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – ResponsePolynomial
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setFrequencyUnit(frequencyUnit)¶
- Parameters:
frequencyUnit – string
- frequencyUnit()¶
- Return type:
string
- setApproximationType(approximationType)¶
- Parameters:
approximationType – string
- approximationType()¶
- Return type:
string
- setApproximationLowerBound(approximationLowerBound)¶
- Parameters:
approximationLowerBound – float
- approximationLowerBound()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setApproximationUpperBound(approximationUpperBound)¶
- Parameters:
approximationUpperBound – float
- approximationUpperBound()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setApproximationError(approximationError)¶
- Parameters:
approximationError – float
- approximationError()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setNumberOfCoefficients(numberOfCoefficients)¶
- Parameters:
numberOfCoefficients – int
- numberOfCoefficients()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- coefficients()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned ResponsePolynomial.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Route¶
- class seiscomp.datamodel.Route¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
routing
– Routing
Children:
routeArclink
– RouteArclinkrouteSeedlink
– RouteSeedlink
Attributes:
publicID
: stringnetworkCode
– stringstationCode
– stringlocationCode
– stringstreamCode
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Route if the cast was successful, None otherwise.
Cast an arbitrary object to Route if the internal wrapped representation is an Route object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Route.
Creates and registers (if enabled) a Route instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Route.
Creates and registers (if enabled) a Route instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Route to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type RouteIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Route
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setLocationCode(locationCode)¶
- Parameters:
locationCode – string
- locationCode()¶
- Return type:
string
- setStreamCode(streamCode)¶
- Parameters:
streamCode – string
- streamCode()¶
- Return type:
string
- add(routeArclink)¶
- Parameters:
routeArclink – Object of type RouteArclink
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a RouteArclink object to Route. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(routeSeedlink)¶
- Parameters:
routeSeedlink – Object of type RouteSeedlink
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a RouteSeedlink object to Route. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(routeArclink)¶
- Parameters:
routeArclink – Object of type RouteArclink
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added RouteArclink object from Route.
- remove(routeSeedlink)¶
- Parameters:
routeSeedlink – Object of type RouteSeedlink
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added RouteSeedlink object from Route.
- removeRouteArclink(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeRouteArclink(routeArclinkIndex);
- Parameters:
routeArclinkIndex – The index of the object to be removed of type RouteArclinkIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeRouteSeedlink(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeRouteSeedlink(routeSeedlinkIndex);
- Parameters:
routeSeedlinkIndex – The index of the object to be removed of type RouteSeedlinkIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- routeArclinkCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of RouteArclink child objects.
- routeSeedlinkCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of RouteSeedlink child objects.
- routeArclink(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type RouteArclink.
Returns the RouteArclink at index idx.
- routeArclink(routeArclinkIndex)¶
- Parameters:
routeArclinkIndex – The index of the object to be removed of type RouteArclinkIndex.
- Return type:
Object of type RouteArclink.
Returns the RouteArclink at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- routeSeedlink(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type RouteSeedlink.
Returns the RouteSeedlink at index idx.
- routeSeedlink(routeSeedlinkIndex)¶
- Parameters:
routeSeedlinkIndex – The index of the object to be removed of type RouteSeedlinkIndex.
- Return type:
Object of type RouteSeedlink.
Returns the RouteSeedlink at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- routing()¶
- Return type:
Returns the parent Routing if available. Returns None if the parent is not a Routing. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Route.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
RouteArclink¶
- class seiscomp.datamodel.RouteArclink¶
Inherits Seiscomp::DataModel::Object.
Parents:
route
– Route
Attributes:
address
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)priority
– int (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type RouteArclink if the cast was successful, None otherwise.
Cast an arbitrary object to RouteArclink if the internal wrapped representation is an RouteArclink object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type RouteArclink to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type RouteArclinkIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – RouteArclink
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setAddress(address)¶
- Parameters:
address – string
- address()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPriority(priority)¶
- Parameters:
priority – int
- priority()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- route()¶
- Return type:
Returns the parent Route if available. Returns None if the parent is not a Route. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned RouteArclink.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
RouteSeedlink¶
- class seiscomp.datamodel.RouteSeedlink¶
Inherits Seiscomp::DataModel::Object.
Parents:
route
– Route
Attributes:
address
– stringpriority
– int (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type RouteSeedlink if the cast was successful, None otherwise.
Cast an arbitrary object to RouteSeedlink if the internal wrapped representation is an RouteSeedlink object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type RouteSeedlink to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type RouteSeedlinkIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – RouteSeedlink
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setAddress(address)¶
- Parameters:
address – string
- address()¶
- Return type:
string
- setPriority(priority)¶
- Parameters:
priority – int
- priority()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- route()¶
- Return type:
Returns the parent Route if available. Returns None if the parent is not a Route. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned RouteSeedlink.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Routing¶
- class seiscomp.datamodel.Routing¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Routing if the cast was successful, None otherwise.
Cast an arbitrary object to Routing if the internal wrapped representation is an Routing object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Routing to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(route)¶
- Parameters:
route – Object of type Route
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Route object to Routing. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(access)¶
- Parameters:
access – Object of type Access
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Access object to Routing. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(route)¶
- Parameters:
route – Object of type Route
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Route object from Routing.
- remove(access)¶
- Parameters:
access – Object of type Access
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Access object from Routing.
- removeRoute(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeRoute(routeIndex);
- Parameters:
routeIndex – The index of the object to be removed of type RouteIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAccess(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAccess(accessIndex);
- Parameters:
accessIndex – The index of the object to be removed of type AccessIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- routeCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Route child objects.
- accessCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Access child objects.
- route(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Route.
Returns the Route at index idx.
- route(routeIndex)¶
- Parameters:
routeIndex – The index of the object to be removed of type RouteIndex.
- Return type:
Object of type Route.
Returns the Route at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- access(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Access.
Returns the Access at index idx.
- access(accessIndex)¶
- Parameters:
accessIndex – The index of the object to be removed of type AccessIndex.
- Return type:
Object of type Access.
Returns the Access at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findRoute(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Route.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Routing.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Sensor¶
- class seiscomp.datamodel.Sensor¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Children:
sensorCalibration
– SensorCalibration
Attributes:
publicID
: stringname
– stringdescription
– stringmodel
– stringmanufacturer
– stringtype
– stringunit
– stringlowFrequency
– float (optional)highFrequency
– float (optional)response
– stringremark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Sensor if the cast was successful, None otherwise.
Cast an arbitrary object to Sensor if the internal wrapped representation is an Sensor object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Sensor.
Creates and registers (if enabled) a Sensor instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Sensor.
Creates and registers (if enabled) a Sensor instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Sensor to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type SensorIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Sensor
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setModel(model)¶
- Parameters:
model – string
- model()¶
- Return type:
string
- setManufacturer(manufacturer)¶
- Parameters:
manufacturer – string
- manufacturer()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setUnit(unit)¶
- Parameters:
unit – string
- unit()¶
- Return type:
string
- setLowFrequency(lowFrequency)¶
- Parameters:
lowFrequency – float
- lowFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setHighFrequency(highFrequency)¶
- Parameters:
highFrequency – float
- highFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setResponse(response)¶
- Parameters:
response – string
- response()¶
- Return type:
string
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(sensorCalibration)¶
- Parameters:
sensorCalibration – Object of type SensorCalibration
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a SensorCalibration object to Sensor. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(sensorCalibration)¶
- Parameters:
sensorCalibration – Object of type SensorCalibration
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added SensorCalibration object from Sensor.
- removeSensorCalibration(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSensorCalibration(sensorCalibrationIndex);
- Parameters:
sensorCalibrationIndex – The index of the object to be removed of type SensorCalibrationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- sensorCalibrationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of SensorCalibration child objects.
- sensorCalibration(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type SensorCalibration.
Returns the SensorCalibration at index idx.
- sensorCalibration(sensorCalibrationIndex)¶
- Parameters:
sensorCalibrationIndex – The index of the object to be removed of type SensorCalibrationIndex.
- Return type:
Object of type SensorCalibration.
Returns the SensorCalibration at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Sensor.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
SensorCalibration¶
- class seiscomp.datamodel.SensorCalibration¶
Inherits Seiscomp::DataModel::Object.
Parents:
sensor
– Sensor
Attributes:
serialNumber
– stringchannel
– intstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)gain
– float (optional)gainFrequency
– float (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type SensorCalibration if the cast was successful, None otherwise.
Cast an arbitrary object to SensorCalibration if the internal wrapped representation is an SensorCalibration object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type SensorCalibration to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type SensorCalibrationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – SensorCalibration
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setSerialNumber(serialNumber)¶
- Parameters:
serialNumber – string
- serialNumber()¶
- Return type:
string
- setChannel(channel)¶
- Parameters:
channel – int
- channel()¶
- Return type:
int
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- sensor()¶
- Return type:
Returns the parent Sensor if available. Returns None if the parent is not a Sensor. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned SensorCalibration.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
SensorLocation¶
- class seiscomp.datamodel.SensorLocation¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
station
– Station
Children:
Attributes:
publicID
: stringcode
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)latitude
– float (optional)longitude
– float (optional)elevation
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type SensorLocation if the cast was successful, None otherwise.
Cast an arbitrary object to SensorLocation if the internal wrapped representation is an SensorLocation object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type SensorLocation.
Creates and registers (if enabled) a SensorLocation instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type SensorLocation.
Creates and registers (if enabled) a SensorLocation instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type SensorLocation to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type SensorLocationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – SensorLocation
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLatitude(latitude)¶
- Parameters:
latitude – float
- latitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLongitude(longitude)¶
- Parameters:
longitude – float
- longitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setElevation(elevation)¶
- Parameters:
elevation – float
- elevation()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to SensorLocation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(auxStream)¶
- Parameters:
auxStream – Object of type AuxStream
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a AuxStream object to SensorLocation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(stream)¶
- Parameters:
stream – Object of type Stream
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Stream object to SensorLocation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from SensorLocation.
- remove(auxStream)¶
- Parameters:
auxStream – Object of type AuxStream
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added AuxStream object from SensorLocation.
- remove(stream)¶
- Parameters:
stream – Object of type Stream
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Stream object from SensorLocation.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAuxStream(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeAuxStream(auxStreamIndex);
- Parameters:
auxStreamIndex – The index of the object to be removed of type AuxStreamIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStream(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStream(streamIndex);
- Parameters:
streamIndex – The index of the object to be removed of type StreamIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- auxStreamCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of AuxStream child objects.
- streamCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Stream child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- auxStream(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type AuxStream.
Returns the AuxStream at index idx.
- auxStream(auxStreamIndex)¶
- Parameters:
auxStreamIndex – The index of the object to be removed of type AuxStreamIndex.
- Return type:
Object of type AuxStream.
Returns the AuxStream at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- stream(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Stream.
Returns the Stream at index idx.
- stream(streamIndex)¶
- Parameters:
streamIndex – The index of the object to be removed of type StreamIndex.
- Return type:
Object of type Stream.
Returns the Stream at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findStream(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Stream.
Returns the child object with a certain publicID, None otherwise.
- station()¶
- Return type:
Returns the parent Station if available. Returns None if the parent is not a Station. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned SensorLocation.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Setup¶
- class seiscomp.datamodel.Setup¶
Inherits Seiscomp::DataModel::Object.
Parents:
configStation
– ConfigStation
Attributes:
name
– stringparameterSetID
– stringenabled
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Setup if the cast was successful, None otherwise.
Cast an arbitrary object to Setup if the internal wrapped representation is an Setup object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Setup to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type SetupIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Setup
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setName(name)¶
- Parameters:
name – string
- name()¶
- Return type:
string
- setParameterSetID(parameterSetID)¶
- Parameters:
parameterSetID – string
- parameterSetID()¶
- Return type:
string
- setEnabled(enabled)¶
- Parameters:
enabled – boolean
- enabled()¶
- Return type:
boolean
- configStation()¶
- Return type:
Returns the parent ConfigStation if available. Returns None if the parent is not a ConfigStation. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Setup.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Simulation¶
- class seiscomp.datamodel.Simulation¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
tsunamiParameters
– TsunamiParameters
Children:
patch
– Patchestimation
– Estimationdisplacement
– Displacement
Attributes:
publicID
: stringsource
– SourcemethodID
– stringlabel
– stringgrid
– Grid (optional)creationInfo
– CreationInfo (optional)maxTime
– int (optional)information
– stringavailableTime
– int (optional)evaluationMode
– EvaluationMode (optional)evaluationStatus
– EvaluationStatus (optional)status
– SimulationStatus (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Simulation if the cast was successful, None otherwise.
Cast an arbitrary object to Simulation if the internal wrapped representation is an Simulation object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Simulation.
Creates and registers (if enabled) a Simulation instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Simulation.
Creates and registers (if enabled) a Simulation instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Simulation to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setLabel(label)¶
- Parameters:
label – string
- label()¶
- Return type:
string
- grid()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMaxTime(maxTime)¶
- Parameters:
maxTime – int
- maxTime()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setInformation(information)¶
- Parameters:
information – string
- information()¶
- Return type:
string
- setAvailableTime(availableTime)¶
- Parameters:
availableTime – int
- availableTime()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationMode(evaluationMode)¶
- Parameters:
evaluationMode – EvaluationMode
- evaluationMode()¶
- Return type:
EvaluationMode
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEvaluationStatus(evaluationStatus)¶
- Parameters:
evaluationStatus – EvaluationStatus
- evaluationStatus()¶
- Return type:
EvaluationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setStatus(status)¶
- Parameters:
status – SimulationStatus
- status()¶
- Return type:
SimulationStatus
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(patch)¶
- Parameters:
patch – Object of type Patch
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Patch object to Simulation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(estimation)¶
- Parameters:
estimation – Object of type Estimation
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Estimation object to Simulation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(displacement)¶
- Parameters:
displacement – Object of type Displacement
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Displacement object to Simulation. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(patch)¶
- Parameters:
patch – Object of type Patch
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Patch object from Simulation.
- remove(estimation)¶
- Parameters:
estimation – Object of type Estimation
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Estimation object from Simulation.
- remove(displacement)¶
- Parameters:
displacement – Object of type Displacement
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Displacement object from Simulation.
- removePatch(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeEstimation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeEstimation(estimationIndex);
- Parameters:
estimationIndex – The index of the object to be removed of type EstimationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDisplacement(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeDisplacement(displacementIndex);
- Parameters:
displacementIndex – The index of the object to be removed of type DisplacementIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- patchCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Patch child objects.
- estimationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Estimation child objects.
- displacementCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Displacement child objects.
- patch(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Patch.
Returns the Patch at index idx.
- estimation(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Estimation.
Returns the Estimation at index idx.
- estimation(estimationIndex)¶
- Parameters:
estimationIndex – The index of the object to be removed of type EstimationIndex.
- Return type:
Object of type Estimation.
Returns the Estimation at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- displacement(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Displacement.
Returns the Displacement at index idx.
- displacement(displacementIndex)¶
- Parameters:
displacementIndex – The index of the object to be removed of type DisplacementIndex.
- Return type:
Object of type Displacement.
Returns the Displacement at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findPatch(patch)¶
-
Returns the child object with equals the passed object, None otherwise.
- tsunamiParameters()¶
- Return type:
Returns the parent TsunamiParameters if available. Returns None if the parent is not a TsunamiParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Simulation.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
SimulationReference¶
- class seiscomp.datamodel.SimulationReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
incident
– Incident
Attributes:
simulationID
– stringrequestID
– stringpreferred
– booleanguidanceFlag
– boolean
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type SimulationReference if the cast was successful, None otherwise.
Cast an arbitrary object to SimulationReference if the internal wrapped representation is an SimulationReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type SimulationReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type SimulationReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – SimulationReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setSimulationID(simulationID)¶
- Parameters:
simulationID – string
- simulationID()¶
- Return type:
string
- setRequestID(requestID)¶
- Parameters:
requestID – string
- requestID()¶
- Return type:
string
- setPreferred(preferred)¶
- Parameters:
preferred – boolean
- preferred()¶
- Return type:
boolean
- setGuidanceFlag(guidanceFlag)¶
- Parameters:
guidanceFlag – boolean
- guidanceFlag()¶
- Return type:
boolean
- incident()¶
- Return type:
Returns the parent Incident if available. Returns None if the parent is not a Incident. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned SimulationReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Source¶
- class seiscomp.datamodel.Source¶
Inherits Seiscomp::DataModel::Object.
Attributes:
latitude
– RealQuantitylongitude
– RealQuantitydepth
– RealQuantity (optional)magnitude
– RealQuantity (optional)magnitudeType
– stringtime
– TimeQuantitynodalPlanes
– NodalPlanes (optional)type
– SourceType (optional)typeComment
– stringseverity
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Source if the cast was successful, None otherwise.
Cast an arbitrary object to Source if the internal wrapped representation is an Source object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Source to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setLatitude(latitude)¶
- Parameters:
latitude – RealQuantity
- latitude()¶
- Return type:
- setLongitude(longitude)¶
- Parameters:
longitude – RealQuantity
- longitude()¶
- Return type:
- setDepth(depth)¶
- Parameters:
depth – RealQuantity
- depth()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMagnitude(magnitude)¶
- Parameters:
magnitude – RealQuantity
- magnitude()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setMagnitudeType(magnitudeType)¶
- Parameters:
magnitudeType – string
- magnitudeType()¶
- Return type:
string
- setTime(time)¶
- Parameters:
time – TimeQuantity
- time()¶
- Return type:
- setNodalPlanes(nodalPlanes)¶
- Parameters:
nodalPlanes – NodalPlanes
- nodalPlanes()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setType(type)¶
- Parameters:
type – SourceType
- type()¶
- Return type:
SourceType
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setTypeComment(typeComment)¶
- Parameters:
typeComment – string
- typeComment()¶
- Return type:
string
- setSeverity(severity)¶
- Parameters:
severity – float
- severity()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
SourceTimeFunction¶
- class seiscomp.datamodel.SourceTimeFunction¶
Inherits Seiscomp::DataModel::Object.
Attributes:
type
– SourceTimeFunctionTypeduration
– floatriseTime
– float (optional)decayTime
– float (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type SourceTimeFunction if the cast was successful, None otherwise.
Cast an arbitrary object to SourceTimeFunction if the internal wrapped representation is an SourceTimeFunction object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type SourceTimeFunction to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setType(type)¶
- Parameters:
type – SourceTimeFunctionType
- type()¶
- Return type:
SourceTimeFunctionType
- setDuration(duration)¶
- Parameters:
duration – float
- duration()¶
- Return type:
float
- setRiseTime(riseTime)¶
- Parameters:
riseTime – float
- riseTime()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDecayTime(decayTime)¶
- Parameters:
decayTime – float
- decayTime()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
Station¶
- class seiscomp.datamodel.Station¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
network
– Network
Children:
comment
– CommentsensorLocation
– SensorLocation
Attributes:
publicID
: stringcode
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)description
– stringlatitude
– float (optional)longitude
– float (optional)elevation
– float (optional)place
– stringcountry
– stringaffiliation
– stringtype
– stringarchive
– stringarchiveNetworkCode
– stringrestricted
– boolean (optional)shared
– boolean (optional)remark
– Blob (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Station if the cast was successful, None otherwise.
Cast an arbitrary object to Station if the internal wrapped representation is an Station object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Station.
Creates and registers (if enabled) a Station instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Station.
Creates and registers (if enabled) a Station instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Station to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type StationIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Station
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setLatitude(latitude)¶
- Parameters:
latitude – float
- latitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLongitude(longitude)¶
- Parameters:
longitude – float
- longitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setElevation(elevation)¶
- Parameters:
elevation – float
- elevation()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPlace(place)¶
- Parameters:
place – string
- place()¶
- Return type:
string
- setCountry(country)¶
- Parameters:
country – string
- country()¶
- Return type:
string
- setAffiliation(affiliation)¶
- Parameters:
affiliation – string
- affiliation()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setArchive(archive)¶
- Parameters:
archive – string
- archive()¶
- Return type:
string
- setArchiveNetworkCode(archiveNetworkCode)¶
- Parameters:
archiveNetworkCode – string
- archiveNetworkCode()¶
- Return type:
string
- setRestricted(restricted)¶
- Parameters:
restricted – boolean
- restricted()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- Parameters:
shared – boolean
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- remark()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Station. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(sensorLocation)¶
- Parameters:
sensorLocation – Object of type SensorLocation
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a SensorLocation object to Station. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Station.
- remove(sensorLocation)¶
- Parameters:
sensorLocation – Object of type SensorLocation
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added SensorLocation object from Station.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSensorLocation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeSensorLocation(sensorLocationIndex);
- Parameters:
sensorLocationIndex – The index of the object to be removed of type SensorLocationIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- sensorLocationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of SensorLocation child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- sensorLocation(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type SensorLocation.
Returns the SensorLocation at index idx.
- sensorLocation(sensorLocationIndex)¶
- Parameters:
sensorLocationIndex – The index of the object to be removed of type SensorLocationIndex.
- Return type:
Object of type SensorLocation.
Returns the SensorLocation at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- findSensorLocation(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type SensorLocation.
Returns the child object with a certain publicID, None otherwise.
- network()¶
- Return type:
Returns the parent Network if available. Returns None if the parent is not a Network. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Station.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
StationGroup¶
- class seiscomp.datamodel.StationGroup¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
inventory
– Inventory
Children:
stationReference
– StationReference
Attributes:
publicID
: stringtype
– StationGroupType (optional)code
– stringstart
– seiscomp.core.Time (optional)end
– seiscomp.core.Time (optional)description
– stringlatitude
– float (optional)longitude
– float (optional)elevation
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type StationGroup if the cast was successful, None otherwise.
Cast an arbitrary object to StationGroup if the internal wrapped representation is an StationGroup object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type StationGroup.
Creates and registers (if enabled) a StationGroup instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type StationGroup.
Creates and registers (if enabled) a StationGroup instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type StationGroup to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type StationGroupIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – StationGroup
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setType(type)¶
- Parameters:
type – StationGroupType
- type()¶
- Return type:
StationGroupType
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDescription(description)¶
- Parameters:
description – string
- description()¶
- Return type:
string
- setLatitude(latitude)¶
- Parameters:
latitude – float
- latitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLongitude(longitude)¶
- Parameters:
longitude – float
- longitude()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setElevation(elevation)¶
- Parameters:
elevation – float
- elevation()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(stationReference)¶
- Parameters:
stationReference – Object of type StationReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a StationReference object to StationGroup. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(stationReference)¶
- Parameters:
stationReference – Object of type StationReference
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added StationReference object from StationGroup.
- removeStationReference(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeStationReference(stationReferenceIndex);
- Parameters:
stationReferenceIndex – The index of the object to be removed of type StationReferenceIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- stationReferenceCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of StationReference child objects.
- stationReference(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type StationReference.
Returns the StationReference at index idx.
- stationReference(stationReferenceIndex)¶
- Parameters:
stationReferenceIndex – The index of the object to be removed of type StationReferenceIndex.
- Return type:
Object of type StationReference.
Returns the StationReference at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- inventory()¶
- Return type:
Returns the parent Inventory if available. Returns None if the parent is not a Inventory. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned StationGroup.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
StationMagnitude¶
- class seiscomp.datamodel.StationMagnitude¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
origin
– Origin
Children:
comment
– Comment
Attributes:
publicID
: stringoriginID
– stringmagnitude
– RealQuantitytype
– stringamplitudeID
– stringmethodID
– stringwaveformID
– WaveformStreamID (optional)passedQC
– boolean (optional)creationInfo
– CreationInfo (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type StationMagnitude if the cast was successful, None otherwise.
Cast an arbitrary object to StationMagnitude if the internal wrapped representation is an StationMagnitude object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type StationMagnitude.
Creates and registers (if enabled) a StationMagnitude instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type StationMagnitude.
Creates and registers (if enabled) a StationMagnitude instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type StationMagnitude to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setOriginID(originID)¶
- Parameters:
originID – string
- originID()¶
- Return type:
string
- setMagnitude(magnitude)¶
- Parameters:
magnitude – RealQuantity
- magnitude()¶
- Return type:
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setAmplitudeID(amplitudeID)¶
- Parameters:
amplitudeID – string
- amplitudeID()¶
- Return type:
string
- setMethodID(methodID)¶
- Parameters:
methodID – string
- methodID()¶
- Return type:
string
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setPassedQC(passedQC)¶
- Parameters:
passedQC – boolean
- passedQC()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to StationMagnitude. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from StationMagnitude.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- origin()¶
- Return type:
Returns the parent Origin if available. Returns None if the parent is not a Origin. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned StationMagnitude.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
StationMagnitudeContribution¶
- class seiscomp.datamodel.StationMagnitudeContribution¶
Inherits Seiscomp::DataModel::Object.
Parents:
magnitude
– Magnitude
Attributes:
stationMagnitudeID
– stringresidual
– float (optional)weight
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type StationMagnitudeContribution if the cast was successful, None otherwise.
Cast an arbitrary object to StationMagnitudeContribution if the internal wrapped representation is an StationMagnitudeContribution object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type StationMagnitudeContribution to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type StationMagnitudeContributionIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setStationMagnitudeID(stationMagnitudeID)¶
- Parameters:
stationMagnitudeID – string
- stationMagnitudeID()¶
- Return type:
string
- setResidual(residual)¶
- Parameters:
residual – float
- residual()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setWeight(weight)¶
- Parameters:
weight – float
- weight()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- magnitude()¶
- Return type:
Returns the parent Magnitude if available. Returns None if the parent is not a Magnitude. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned StationMagnitudeContribution.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
StationReference¶
- class seiscomp.datamodel.StationReference¶
Inherits Seiscomp::DataModel::Object.
Parents:
stationGroup
– StationGroup
Attributes:
stationID
– string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type StationReference if the cast was successful, None otherwise.
Cast an arbitrary object to StationReference if the internal wrapped representation is an StationReference object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type StationReference to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type StationReferenceIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – StationReference
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setStationID(stationID)¶
- Parameters:
stationID – string
- stationID()¶
- Return type:
string
- stationGroup()¶
- Return type:
Returns the parent StationGroup if available. Returns None if the parent is not a StationGroup. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned StationReference.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Stream¶
- class seiscomp.datamodel.Stream¶
Inherits Seiscomp::DataModel::PublicObject.
Parents:
sensorLocation
– SensorLocation
Children:
comment
– Comment
Attributes:
publicID
: stringcode
– stringstart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)datalogger
– stringdataloggerSerialNumber
– stringdataloggerChannel
– int (optional)sensor
– stringsensorSerialNumber
– stringsensorChannel
– int (optional)clockSerialNumber
– stringsampleRateNumerator
– int (optional)sampleRateDenominator
– int (optional)depth
– float (optional)azimuth
– float (optional)dip
– float (optional)gain
– float (optional)gainFrequency
– float (optional)gainUnit
– stringformat
– stringflags
– stringrestricted
– boolean (optional)shared
– boolean (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Stream if the cast was successful, None otherwise.
Cast an arbitrary object to Stream if the internal wrapped representation is an Stream object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- static Create()¶
- Return type:
A new object of type Stream.
Creates and registers (if enabled) a Stream instance. The publicID is auto-generated.
- static Create(publicID)¶
- Return type:
A new object of type Stream.
Creates and registers (if enabled) a Stream instance with passed publicID.
- equal(other)¶
- Parameters:
other – Another object of type Stream to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type StreamIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – Stream
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setCode(code)¶
- Parameters:
code – string
- code()¶
- Return type:
string
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDatalogger(datalogger)¶
- Parameters:
datalogger – string
- datalogger()¶
- Return type:
string
- setDataloggerSerialNumber(dataloggerSerialNumber)¶
- Parameters:
dataloggerSerialNumber – string
- dataloggerSerialNumber()¶
- Return type:
string
- setDataloggerChannel(dataloggerChannel)¶
- Parameters:
dataloggerChannel – int
- dataloggerChannel()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSensor(sensor)¶
- Parameters:
sensor – string
- sensor()¶
- Return type:
string
- setSensorSerialNumber(sensorSerialNumber)¶
- Parameters:
sensorSerialNumber – string
- sensorSerialNumber()¶
- Return type:
string
- setSensorChannel(sensorChannel)¶
- Parameters:
sensorChannel – int
- sensorChannel()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setClockSerialNumber(clockSerialNumber)¶
- Parameters:
clockSerialNumber – string
- clockSerialNumber()¶
- Return type:
string
- setSampleRateNumerator(sampleRateNumerator)¶
- Parameters:
sampleRateNumerator – int
- sampleRateNumerator()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setSampleRateDenominator(sampleRateDenominator)¶
- Parameters:
sampleRateDenominator – int
- sampleRateDenominator()¶
- Return type:
int
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDepth(depth)¶
- Parameters:
depth – float
- depth()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setAzimuth(azimuth)¶
- Parameters:
azimuth – float
- azimuth()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setDip(dip)¶
- Parameters:
dip – float
- dip()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGain(gain)¶
- Parameters:
gain – float
- gain()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainFrequency(gainFrequency)¶
- Parameters:
gainFrequency – float
- gainFrequency()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setGainUnit(gainUnit)¶
- Parameters:
gainUnit – string
- gainUnit()¶
- Return type:
string
- setFormat(format)¶
- Parameters:
format – string
- format()¶
- Return type:
string
- setFlags(flags)¶
- Parameters:
flags – string
- flags()¶
- Return type:
string
- setRestricted(restricted)¶
- Parameters:
restricted – boolean
- restricted()¶
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- Parameters:
shared – boolean
- Return type:
boolean
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- add(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Comment object to Stream. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(comment)¶
- Parameters:
comment – Object of type Comment
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Comment object from Stream.
- removeComment(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeComment(commentIndex);
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
A Boolean value indicating success with True, False otherwise.
- commentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Comment child objects.
- comment(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Comment.
Returns the Comment at index idx.
- comment(commentIndex)¶
- Parameters:
commentIndex – The index of the object to be removed of type CommentIndex.
- Return type:
Object of type Comment.
Returns the Comment at given index. The indexes of all child objects are compared by value which makes this function slower than the direct integer index look-up.
- sensorLocation()¶
- Return type:
Returns the parent SensorLocation if available. Returns None if the parent is not a SensorLocation. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned Stream.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
Tensor¶
- class seiscomp.datamodel.Tensor¶
Inherits Seiscomp::DataModel::Object.
Attributes:
Mrr
– RealQuantityMtt
– RealQuantityMpp
– RealQuantityMrt
– RealQuantityMrp
– RealQuantityMtp
– RealQuantity
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type Tensor if the cast was successful, None otherwise.
Cast an arbitrary object to Tensor if the internal wrapped representation is an Tensor object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type Tensor to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setMrr(Mrr)¶
- Parameters:
Mrr – RealQuantity
- Mrr()¶
- Return type:
- setMtt(Mtt)¶
- Parameters:
Mtt – RealQuantity
- Mtt()¶
- Return type:
- setMpp(Mpp)¶
- Parameters:
Mpp – RealQuantity
- Mpp()¶
- Return type:
- setMrt(Mrt)¶
- Parameters:
Mrt – RealQuantity
- Mrt()¶
- Return type:
- setMrp(Mrp)¶
- Parameters:
Mrp – RealQuantity
- Mrp()¶
- Return type:
- setMtp(Mtp)¶
- Parameters:
Mtp – RealQuantity
- Mtp()¶
- Return type:
TimeArray¶
- class seiscomp.datamodel.TimeArray¶
Inherits Seiscomp::DataModel::Object.
Attributes:
content
– seiscomp.core.Time (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TimeArray if the cast was successful, None otherwise.
Cast an arbitrary object to TimeArray if the internal wrapped representation is an TimeArray object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TimeArray to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setContent(content)¶
- Parameters:
content – seiscomp.core.Time
- content()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
TimePDF1D¶
- class seiscomp.datamodel.TimePDF1D¶
Inherits Seiscomp::DataModel::Object.
Attributes:
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TimePDF1D if the cast was successful, None otherwise.
Cast an arbitrary object to TimePDF1D if the internal wrapped representation is an TimePDF1D object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TimePDF1D to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
TimeQuantity¶
- class seiscomp.datamodel.TimeQuantity¶
Inherits Seiscomp::DataModel::Object.
Attributes:
value
– seiscomp.core.Timeuncertainty
– float (optional)lowerUncertainty
– float (optional)upperUncertainty
– float (optional)confidenceLevel
– float (optional)pdf
– TimePDF1D (optional)
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TimeQuantity if the cast was successful, None otherwise.
Cast an arbitrary object to TimeQuantity if the internal wrapped representation is an TimeQuantity object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TimeQuantity to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setValue(value)¶
- Parameters:
value – seiscomp.core.Time
- value()¶
- Return type:
seiscomp.core.Time
- setUncertainty(uncertainty)¶
- Parameters:
uncertainty – float
- uncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setLowerUncertainty(lowerUncertainty)¶
- Parameters:
lowerUncertainty – float
- lowerUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUpperUncertainty(upperUncertainty)¶
- Parameters:
upperUncertainty – float
- upperUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setConfidenceLevel(confidenceLevel)¶
- Parameters:
confidenceLevel – float
- confidenceLevel()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
TimeWindow¶
- class seiscomp.datamodel.TimeWindow¶
Inherits Seiscomp::DataModel::Object.
Attributes:
reference
– seiscomp.core.Timebegin
– floatend
– float
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TimeWindow if the cast was successful, None otherwise.
Cast an arbitrary object to TimeWindow if the internal wrapped representation is an TimeWindow object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TimeWindow to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setReference(reference)¶
- Parameters:
reference – seiscomp.core.Time
- reference()¶
- Return type:
seiscomp.core.Time
- setBegin(begin)¶
- Parameters:
begin – float
- begin()¶
- Return type:
float
- setEnd(end)¶
- Parameters:
end – float
- end()¶
- Return type:
float
TsunamiLog¶
- class seiscomp.datamodel.TsunamiLog¶
Inherits Seiscomp::DataModel::Object.
Parents:
tsunamiParameters
– TsunamiParameters
Attributes:
scope
– stringtype
– LogTypelevel
– LogLevelsubject
– stringtitle
– stringtext
– stringcreationInfo
– CreationInfo
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TsunamiLog if the cast was successful, None otherwise.
Cast an arbitrary object to TsunamiLog if the internal wrapped representation is an TsunamiLog object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TsunamiLog to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setScope(scope)¶
- Parameters:
scope – string
- scope()¶
- Return type:
string
- setType(type)¶
- Parameters:
type – LogType
- type()¶
- Return type:
LogType
- setLevel(level)¶
- Parameters:
level – LogLevel
- level()¶
- Return type:
LogLevel
- setSubject(subject)¶
- Parameters:
subject – string
- subject()¶
- Return type:
string
- setTitle(title)¶
- Parameters:
title – string
- title()¶
- Return type:
string
- setText(text)¶
- Parameters:
text – string
- text()¶
- Return type:
string
- setCreationInfo(creationInfo)¶
- Parameters:
creationInfo – CreationInfo
- creationInfo()¶
- Return type:
- tsunamiParameters()¶
- Return type:
Returns the parent TsunamiParameters if available. Returns None if the parent is not a TsunamiParameters. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned TsunamiLog.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
TsunamiParameters¶
- class seiscomp.datamodel.TsunamiParameters¶
Inherits Seiscomp::DataModel::PublicObject.
Children:
simulation
– Simulationincident
– IncidenttsunamiLog
– TsunamiLogbulletinData
– BulletinData
Attributes:
publicID
: string
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type TsunamiParameters if the cast was successful, None otherwise.
Cast an arbitrary object to TsunamiParameters if the internal wrapped representation is an TsunamiParameters object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type TsunamiParameters to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- add(simulation)¶
- Parameters:
simulation – Object of type Simulation
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Simulation object to TsunamiParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(incident)¶
- Parameters:
incident – Object of type Incident
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a Incident object to TsunamiParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(tsunamiLog)¶
- Parameters:
tsunamiLog – Object of type TsunamiLog
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a TsunamiLog object to TsunamiParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- add(bulletinData)¶
- Parameters:
bulletinData – Object of type BulletinData
- Return type:
A Boolean value indicating success with True, False otherwise.
Adds a BulletinData object to TsunamiParameters. The object is not copied but managed by this instance. Any change to the passed object will also change the child.
- remove(simulation)¶
- Parameters:
simulation – Object of type Simulation
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Simulation object from TsunamiParameters.
- remove(incident)¶
- Parameters:
incident – Object of type Incident
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added Incident object from TsunamiParameters.
- remove(tsunamiLog)¶
- Parameters:
tsunamiLog – Object of type TsunamiLog
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added TsunamiLog object from TsunamiParameters.
- remove(bulletinData)¶
- Parameters:
bulletinData – Object of type BulletinData
- Return type:
A Boolean value indicating success with True, False otherwise.
Removes a previously added BulletinData object from TsunamiParameters.
- removeSimulation(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeIncident(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeTsunamiLog(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- removeBulletinData(idx)¶
- Parameters:
idx – An integer index of the object to be removed.
- Return type:
A Boolean value indicating success with True, False otherwise.
- simulationCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Simulation child objects.
- incidentCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of Incident child objects.
- tsunamiLogCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of TsunamiLog child objects.
- bulletinDataCount()¶
- Return type:
integer value indicating the number of child objects.
Returns the number of BulletinData child objects.
- simulation(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Simulation.
Returns the Simulation at index idx.
- incident(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type Incident.
Returns the Incident at index idx.
- tsunamiLog(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type TsunamiLog.
Returns the TsunamiLog at index idx.
- bulletinData(idx)¶
- Parameters:
idx – An integer index of the object to be returned.
- Return type:
Object of type BulletinData.
Returns the BulletinData at index idx.
- findSimulation(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Simulation.
Returns the child object with a certain publicID, None otherwise.
- findIncident(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type Incident.
Returns the child object with a certain publicID, None otherwise.
- findTsunamiLog(tsunamiLog)¶
- Parameters:
tsunamiLog – Reference object of type TsunamiLog.
- Return type:
Object of type TsunamiLog.
Returns the child object with equals the passed object, None otherwise.
- findBulletinData(publicID)¶
- Parameters:
publicID – The publicID of the object to find.
- Return type:
Object of type BulletinData.
Returns the child object with a certain publicID, None otherwise.
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned TsunamiParameters.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- updateChild(ref)¶
- Parameters:
ref – A child object derived from class Seiscomp::DataModel::Object.
- Return type:
A Boolean flag indicating success with True, False otherwise
This method takes the passed reference object and searches for a child with the same publicID (if derived from Seiscomp::DataModel::PublicObject) or the same index (if derived from Seiscomp::DataModel::Object). The the child was found the reference objects attributes are copied to the child object. Children of child are being ignored during this operation. This method implements the Seiscomp::DataModel::PublicObject interface.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
WaveformQuality¶
- class seiscomp.datamodel.WaveformQuality¶
Inherits Seiscomp::DataModel::Object.
Parents:
qualityControl
– QualityControl
Attributes:
waveformID
– WaveformStreamIDcreatorID
– stringcreated
– seiscomp.core.Timestart
– seiscomp.core.Timeend
– seiscomp.core.Time (optional)type
– stringparameter
– stringvalue
– floatlowerUncertainty
– float (optional)upperUncertainty
– float (optional)windowLength
– float (optional)
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type WaveformQuality if the cast was successful, None otherwise.
Cast an arbitrary object to WaveformQuality if the internal wrapped representation is an WaveformQuality object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type WaveformQuality to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- index()¶
- Return type:
The object’s index of type WaveformQualityIndex.
Returns the objects index which is also used for the database as unique constraint.
- equalIndex(lhs)¶
- Parameters:
lhs – WaveformQuality
- Return type:
A Boolean value indicating True if both indexes are equal or False otherwise.
- setWaveformID(waveformID)¶
- Parameters:
waveformID – WaveformStreamID
- waveformID()¶
- Return type:
- setCreatorID(creatorID)¶
- Parameters:
creatorID – string
- creatorID()¶
- Return type:
string
- setCreated(created)¶
- Parameters:
created – seiscomp.core.Time
- created()¶
- Return type:
seiscomp.core.Time
- setStart(start)¶
- Parameters:
start – seiscomp.core.Time
- start()¶
- Return type:
seiscomp.core.Time
- setEnd(end)¶
- Parameters:
end – seiscomp.core.Time
- end()¶
- Return type:
seiscomp.core.Time
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setType(type)¶
- Parameters:
type – string
- type()¶
- Return type:
string
- setParameter(parameter)¶
- Parameters:
parameter – string
- parameter()¶
- Return type:
string
- setValue(value)¶
- Parameters:
value – float
- value()¶
- Return type:
float
- setLowerUncertainty(lowerUncertainty)¶
- Parameters:
lowerUncertainty – float
- lowerUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setUpperUncertainty(upperUncertainty)¶
- Parameters:
upperUncertainty – float
- upperUncertainty()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- setWindowLength(windowLength)¶
- Parameters:
windowLength – float
- windowLength()¶
- Return type:
float
Note
As this attribute is optional, this method throws a ValueError if the value of the attribute is not set.
- qualityControl()¶
- Return type:
Returns the parent QualityControl if available. Returns None if the parent is not a QualityControl. This is a convenience wrapper for parent().
- assign(other)¶
This method implements the Seiscomp::DataModel::Object interface.
- attachTo(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detachFrom(parent)¶
This method implements the Seiscomp::DataModel::Object interface.
- detach()¶
This method implements the Seiscomp::DataModel::Object interface.
- clone()¶
- Return type:
A cloned WaveformQuality.
Returns a new instance that is a clone of the current instance. Child objects are being ignored.
- accept(visitor)¶
- Parameters:
visitor – A visitor.
This method implements the Seiscomp::DataModel::PublicObject interface.
WaveformStreamID¶
- class seiscomp.datamodel.WaveformStreamID¶
Inherits Seiscomp::DataModel::Object.
Attributes:
networkCode
– stringstationCode
– stringlocationCode
– stringchannelCode
– stringresourceURI
– string
Used by:
Methods:
- static Cast(obj)¶
- Parameters:
obj – The object to be casted.
- Return type:
An object of type WaveformStreamID if the cast was successful, None otherwise.
Cast an arbitrary object to WaveformStreamID if the internal wrapped representation is an WaveformStreamID object. The cast is important if instances of type Seiscomp::DataModel::Object are passed to methods which need access to the real type.
- equal(other)¶
- Parameters:
other – Another object of type WaveformStreamID to compare this instance to
- Return type:
A Boolean value indicating True if both objects are equal or False otherwise.
Compares two objects without its child objects. Both objects are compared by value.
- setNetworkCode(networkCode)¶
- Parameters:
networkCode – string
- networkCode()¶
- Return type:
string
- setStationCode(stationCode)¶
- Parameters:
stationCode – string
- stationCode()¶
- Return type:
string
- setLocationCode(locationCode)¶
- Parameters:
locationCode – string
- locationCode()¶
- Return type:
string
- setChannelCode(channelCode)¶
- Parameters:
channelCode – string
- channelCode()¶
- Return type:
string
- setResourceURI(resourceURI)¶
- Parameters:
resourceURI – string
- resourceURI()¶
- Return type:
string