ObservationRow

class ObservationRow(table, row=None)[source]

Bases: object

The ObservationRow class is a row of a ObservationTable.

Generated from model’s revision -1, branch

Methods Summary

compareRequiredValue()

equalByRequiredValue(otherRow)

Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.

fromBin(eis, table, attributesSeq)

Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.

getObservationId()

Get observationId.

getTable()

Return the table to which this row belongs.

initFromBinMethods()

isAdded()

observationIdFromBin(row, eis)

Set the observationId in row from the EndianInput (eis) instance.

setFromXML(xmlrow)

Fill the values of this row from an XML string that was produced by the toXML() method.

setObservationId(observationId)

Set observationId with the specified Tag value.

toBin(eos)

Write this row out to the EndianOutput instance, eos.

toXML()

Return this row in the form of an XML string.

Methods Documentation

compareRequiredValue()[source]
equalByRequiredValue(otherRow)[source]

Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.

static fromBin(eis, table, attributesSeq)[source]

Given an EndianInput instance by the table (which must be a Pointing instance) and the list of attributes to be found in eis, in order, this constructs a row by pulling off values from that EndianInput in the expected order.

The new row object is returned.

getObservationId()[source]

Get observationId. return observationId as Tag

getTable()[source]

Return the table to which this row belongs.

static initFromBinMethods()[source]
isAdded()[source]
static observationIdFromBin(row, eis)[source]

Set the observationId in row from the EndianInput (eis) instance.

setFromXML(xmlrow)[source]

Fill the values of this row from an XML string that was produced by the toXML() method. If xmlrow is a minidom.Element with a nodeName of row then it will be used as is. Anything else that is not a string is an error.

setObservationId(observationId)[source]

Set observationId with the specified Tag value. observationId The Tag value to which observationId is to be set. The value of observationId can be anything allowed by the Tag constructor.

Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.

toBin(eos)[source]

Write this row out to the EndianOutput instance, eos.

toXML()[source]

Return this row in the form of an XML string.