FreqOffsetRow

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

Bases: object

The FreqOffsetRow class is a row of a FreqOffsetTable.

Generated from model’s revision -1, branch

Methods Summary

antennaIdFromBin(row, eis)

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

compareNoAutoInc(antennaId, …)

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

compareRequiredValue(offset)

equalByRequiredValue(otherRow)

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

feedIdFromBin(row, eis)

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

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.

getAntennaId()

Get antennaId.

getAntennaUsingAntennaId()

Returns the row in the Antenna table having Antenna.antennaId == antennaId

getFeedId()

Get feedId.

getFeeds()

Get the collection of rows in the Feed table having feedId == this.feedId

getOffset()

Get offset.

getSpectralWindowId()

Get spectralWindowId.

getSpectralWindowUsingSpectralWindowId()

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

getTable()

Return the table to which this row belongs.

getTimeInterval()

Get timeInterval.

initFromBinMethods()

isAdded()

offsetFromBin(row, eis)

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

setAntennaId(antennaId)

Set antennaId with the specified Tag value.

setFeedId(feedId)

Set feedId with the specified int value.

setFromXML(xmlrow)

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

setOffset(offset)

Set offset with the specified Frequency value.

setSpectralWindowId(spectralWindowId)

Set spectralWindowId with the specified Tag value.

setTimeInterval(timeInterval)

Set timeInterval with the specified ArrayTimeInterval value.

spectralWindowIdFromBin(row, eis)

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

timeIntervalFromBin(row, eis)

Set the timeInterval 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

static antennaIdFromBin(row, eis)[source]

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

compareNoAutoInc(antennaId, spectralWindowId, timeInterval, feedId, offset)[source]

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

compareRequiredValue(offset)[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 feedIdFromBin(row, eis)[source]

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

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.

getAntennaId()[source]

Get antennaId. return antennaId as Tag

getAntennaUsingAntennaId()[source]

Returns the row in the Antenna table having Antenna.antennaId == antennaId

getFeedId()[source]

Get feedId. return feedId as int

getFeeds()[source]

Get the collection of rows in the Feed table having feedId == this.feedId

getOffset()[source]

Get offset. return offset as Frequency

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.

getTimeInterval()[source]

Get timeInterval. return timeInterval as ArrayTimeInterval

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

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

setAntennaId(antennaId)[source]

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

setFeedId(feedId)[source]

Set feedId with the specified int value. feedId The int value to which feedId 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.

setOffset(offset)[source]

Set offset with the specified Frequency value. offset The Frequency value to which offset is to be set. The value of offset can be anything allowed by the Frequency 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.

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

setTimeInterval(timeInterval)[source]

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

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

static spectralWindowIdFromBin(row, eis)[source]

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

static timeIntervalFromBin(row, eis)[source]

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