DataDescriptionRow

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

Bases: object

The DataDescriptionRow class is a row of a DataDescriptionTable.

Generated from model’s revision -1, branch

Methods Summary

clearPulsarId()

Mark pulsarId, which is an optional field, as non-existent.

compareNoAutoInc(polOrHoloId, spectralWindowId)

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

compareRequiredValue(polOrHoloId, …)

dataDescriptionIdFromBin(row, eis)

Set the dataDescriptionId 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.

getDataDescriptionId()

Get dataDescriptionId.

getPolOrHoloId()

Get polOrHoloId.

getPolarizationUsingPolOrHoloId()

Returns the row in the Polarization table having Polarization.polOrHoloId == polOrHoloId

getPulsarId()

Get pulsarId, which is optional.

getPulsarUsingPulsarId()

Returns the row in the Pulsar table having Pulsar.pulsarId == pulsarId

getSpectralWindowId()

Get spectralWindowId.

getSpectralWindowUsingSpectralWindowId()

Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId

getTable()

Return the table to which this row belongs.

initFromBinMethods()

isAdded()

isPulsarIdExists()

The attribute pulsarId is optional.

polOrHoloIdFromBin(row, eis)

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

pulsarIdFromBin(row, eis)

Set the optional pulsarId in row from the EndianInput (eis) instance.

setDataDescriptionId(dataDescriptionId)

Set dataDescriptionId with the specified Tag value.

setFromXML(xmlrow)

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

setPolOrHoloId(polOrHoloId)

Set polOrHoloId with the specified Tag value.

setPulsarId(pulsarId)

Set pulsarId with the specified Tag value.

setSpectralWindowId(spectralWindowId)

Set spectralWindowId with the specified Tag value.

spectralWindowIdFromBin(row, eis)

Set the spectralWindowId 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.

Methods Documentation

clearPulsarId()[source]

Mark pulsarId, which is an optional field, as non-existent.

compareNoAutoInc(polOrHoloId, spectralWindowId)[source]

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

compareRequiredValue(polOrHoloId, spectralWindowId)[source]
static dataDescriptionIdFromBin(row, eis)[source]

Set the dataDescriptionId 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.

getDataDescriptionId()[source]

Get dataDescriptionId. return dataDescriptionId as Tag

getPolOrHoloId()[source]

Get polOrHoloId. return polOrHoloId as Tag

getPolarizationUsingPolOrHoloId()[source]

Returns the row in the Polarization table having Polarization.polOrHoloId == polOrHoloId

getPulsarId()[source]

Get pulsarId, which is optional. return pulsarId as Tag raises ValueError If pulsarId does not exist.

getPulsarUsingPulsarId()[source]

Returns the row in the Pulsar table having Pulsar.pulsarId == pulsarId

Raises ValueError if the optional pulsarId does not exist for this row.

getSpectralWindowId()[source]

Get spectralWindowId. return spectralWindowId as Tag

getSpectralWindowUsingSpectralWindowId()[source]

Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId

getTable()[source]

Return the table to which this row belongs.

static initFromBinMethods()[source]
isAdded()[source]
isPulsarIdExists()[source]

The attribute pulsarId is optional. Return True if this attribute exists. return True if and only if the pulsarId attribute exists.

static polOrHoloIdFromBin(row, eis)[source]

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

static pulsarIdFromBin(row, eis)[source]

Set the optional pulsarId in row from the EndianInput (eis) instance.

setDataDescriptionId(dataDescriptionId)[source]

Set dataDescriptionId with the specified Tag value. dataDescriptionId The Tag value to which dataDescriptionId is to be set. The value of dataDescriptionId 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.

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.

setPolOrHoloId(polOrHoloId)[source]

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

setPulsarId(pulsarId)[source]

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

setSpectralWindowId(spectralWindowId)[source]

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

static spectralWindowIdFromBin(row, eis)[source]

Set the spectralWindowId 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.