DopplerRow

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

Bases: object

The DopplerRow class is a row of a DopplerTable.

Generated from model’s revision -1, branch

Methods Summary

compareNoAutoInc(sourceId, transitionIndex, …)

Compare each attribute except the autoincrementable one of this DopplerRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(transitionIndex, velDef)

dopplerIdFromBin(row, eis)

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

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.

getDopplerId()

Get dopplerId.

getSourceId()

Get sourceId.

getSources()

Get the collection of rows in the Source table having sourceId == this.sourceId

getTable()

Return the table to which this row belongs.

getTransitionIndex()

Get transitionIndex.

getVelDef()

Get velDef.

initFromBinMethods()

isAdded()

setDopplerId(dopplerId)

Set dopplerId with the specified int value.

setFromXML(xmlrow)

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

setSourceId(sourceId)

Set sourceId with the specified int value.

setTransitionIndex(transitionIndex)

Set transitionIndex with the specified int value.

setVelDef(velDef)

Set velDef with the specified DopplerReferenceCode value.

sourceIdFromBin(row, eis)

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

toBin(eos)

Write this row out to the EndianOutput instance, eos.

toXML()

Return this row in the form of an XML string.

transitionIndexFromBin(row, eis)

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

velDefFromBin(row, eis)

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

Methods Documentation

compareNoAutoInc(sourceId, transitionIndex, velDef)[source]

Compare each attribute except the autoincrementable one of this DopplerRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(transitionIndex, velDef)[source]
static dopplerIdFromBin(row, eis)[source]

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

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.

getDopplerId()[source]

Get dopplerId. return dopplerId as int

getSourceId()[source]

Get sourceId. return sourceId as int

getSources()[source]

Get the collection of rows in the Source table having sourceId == this.sourceId

getTable()[source]

Return the table to which this row belongs.

getTransitionIndex()[source]

Get transitionIndex. return transitionIndex as int

getVelDef()[source]

Get velDef. return velDef as DopplerReferenceCode

static initFromBinMethods()[source]
isAdded()[source]
setDopplerId(dopplerId)[source]

Set dopplerId with the specified int value. dopplerId The int value to which dopplerId is to be set.

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

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.

setSourceId(sourceId)[source]

Set sourceId with the specified int value. sourceId The int value to which sourceId is to be set.

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

setTransitionIndex(transitionIndex)[source]

Set transitionIndex with the specified int value. transitionIndex The int value to which transitionIndex is to be set.

setVelDef(velDef)[source]

Set velDef with the specified DopplerReferenceCode value. velDef The DopplerReferenceCode value to which velDef is to be set.

static sourceIdFromBin(row, eis)[source]

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

toBin(eos)[source]

Write this row out to the EndianOutput instance, eos.

toXML()[source]

Return this row in the form of an XML string.

static transitionIndexFromBin(row, eis)[source]

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

static velDefFromBin(row, eis)[source]

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