SysPowerRow¶
-
class
SysPowerRow(table, row=None)[source]¶ Bases:
objectThe SysPowerRow class is a row of a SysPowerTable.
Generated from model’s revision -1, branch
Methods Summary
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
clearRequantizerGain()Mark requantizerGain, which is an optional field, as non-existent.
clearSwitchedPowerDifference()Mark switchedPowerDifference, which is an optional field, as non-existent.
clearSwitchedPowerSum()Mark switchedPowerSum, which is an optional field, as non-existent.
compareNoAutoInc(antennaId, …)Compare each attribute except the autoincrementable one of this SysPowerRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numReceptor)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
getNumReceptor()Get numReceptor.
getRequantizerGain()Get requantizerGain, which is optional.
getSpectralWindowId()Get spectralWindowId.
getSpectralWindowUsingSpectralWindowId()Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
getSwitchedPowerDifference()Get switchedPowerDifference, which is optional.
getSwitchedPowerSum()Get switchedPowerSum, which is optional.
getTable()Return the table to which this row belongs.
getTimeInterval()Get timeInterval.
initFromBinMethods()isAdded()isRequantizerGainExists()The attribute requantizerGain is optional.
isSwitchedPowerDifferenceExists()The attribute switchedPowerDifference is optional.
isSwitchedPowerSumExists()The attribute switchedPowerSum is optional.
numReceptorFromBin(row, eis)Set the numReceptor in row from the EndianInput (eis) instance.
requantizerGainFromBin(row, eis)Set the optional requantizerGain 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.
setNumReceptor(numReceptor)Set numReceptor with the specified int value.
setRequantizerGain(requantizerGain)Set requantizerGain with the specified float [] value.
setSpectralWindowId(spectralWindowId)Set spectralWindowId with the specified Tag value.
setSwitchedPowerDifference(…)Set switchedPowerDifference with the specified float [] value.
setSwitchedPowerSum(switchedPowerSum)Set switchedPowerSum with the specified float [] value.
setTimeInterval(timeInterval)Set timeInterval with the specified ArrayTimeInterval value.
spectralWindowIdFromBin(row, eis)Set the spectralWindowId in row from the EndianInput (eis) instance.
switchedPowerDifferenceFromBin(row, eis)Set the optional switchedPowerDifference in row from the EndianInput (eis) instance.
switchedPowerSumFromBin(row, eis)Set the optional switchedPowerSum 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.
-
clearSwitchedPowerDifference()[source]¶ Mark switchedPowerDifference, which is an optional field, as non-existent.
-
clearSwitchedPowerSum()[source]¶ Mark switchedPowerSum, which is an optional field, as non-existent.
-
compareNoAutoInc(antennaId, spectralWindowId, feedId, timeInterval, numReceptor)[source]¶ Compare each attribute except the autoincrementable one of this SysPowerRow with the corresponding parameters and return True if there is a match and False otherwise.
-
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.
-
getAntennaUsingAntennaId()[source]¶ Returns the row in the Antenna table having Antenna.antennaId == antennaId
-
getRequantizerGain()[source]¶ Get requantizerGain, which is optional. return requantizerGain as float [] raises ValueError If requantizerGain does not exist.
-
getSpectralWindowUsingSpectralWindowId()[source]¶ Returns the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
-
getSwitchedPowerDifference()[source]¶ Get switchedPowerDifference, which is optional. return switchedPowerDifference as float [] raises ValueError If switchedPowerDifference does not exist.
-
getSwitchedPowerSum()[source]¶ Get switchedPowerSum, which is optional. return switchedPowerSum as float [] raises ValueError If switchedPowerSum does not exist.
-
isRequantizerGainExists()[source]¶ The attribute requantizerGain is optional. Return True if this attribute exists. return True if and only if the requantizerGain attribute exists.
-
isSwitchedPowerDifferenceExists()[source]¶ The attribute switchedPowerDifference is optional. Return True if this attribute exists. return True if and only if the switchedPowerDifference attribute exists.
-
isSwitchedPowerSumExists()[source]¶ The attribute switchedPowerSum is optional. Return True if this attribute exists. return True if and only if the switchedPowerSum attribute exists.
-
static
numReceptorFromBin(row, eis)[source]¶ Set the numReceptor in row from the EndianInput (eis) instance.
-
static
requantizerGainFromBin(row, eis)[source]¶ Set the optional requantizerGain 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.
-
setNumReceptor(numReceptor)[source]¶ Set numReceptor with the specified int value. numReceptor The int value to which numReceptor is to be set.
-
setRequantizerGain(requantizerGain)[source]¶ Set requantizerGain with the specified float [] value. requantizerGain The float [] value to which requantizerGain is to be set.
-
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.
-
setSwitchedPowerDifference(switchedPowerDifference)[source]¶ Set switchedPowerDifference with the specified float [] value. switchedPowerDifference The float [] value to which switchedPowerDifference is to be set.
-
setSwitchedPowerSum(switchedPowerSum)[source]¶ Set switchedPowerSum with the specified float [] value. switchedPowerSum The float [] value to which switchedPowerSum is to be set.
-
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
switchedPowerDifferenceFromBin(row, eis)[source]¶ Set the optional switchedPowerDifference in row from the EndianInput (eis) instance.
-
static
switchedPowerSumFromBin(row, eis)[source]¶ Set the optional switchedPowerSum in row from the EndianInput (eis) instance.
-
static