VLAWVRRow¶
-
class
VLAWVRRow(table, row=None)[source]¶ Bases:
objectThe VLAWVRRow class is a row of a VLAWVRTable.
Generated from model’s revision -1, branch
Methods Summary
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
chanFreqCenterFromBin(row, eis)Set the optional chanFreqCenter in row from the EndianInput (eis) instance.
chanWidthFromBin(row, eis)Set the optional chanWidth in row from the EndianInput (eis) instance.
clearChanFreqCenter()Mark chanFreqCenter, which is an optional field, as non-existent.
clearChanWidth()Mark chanWidth, which is an optional field, as non-existent.
clearWvrId()Mark wvrId, which is an optional field, as non-existent.
compareNoAutoInc(antennaId, timeInterval, …)Compare each attribute except the autoincrementable one of this VLAWVRRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numChan, hiValues, loValues)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.
getAntennaId()Get antennaId.
getAntennaUsingAntennaId()Returns the row in the Antenna table having Antenna.antennaId == antennaId
getChanFreqCenter()Get chanFreqCenter, which is optional.
getChanWidth()Get chanWidth, which is optional.
getHiValues()Get hiValues.
getLoValues()Get loValues.
getNumChan()Get numChan.
getTable()Return the table to which this row belongs.
getTimeInterval()Get timeInterval.
getWvrId()Get wvrId, which is optional.
hiValuesFromBin(row, eis)Set the hiValues in row from the EndianInput (eis) instance.
initFromBinMethods()isAdded()isChanFreqCenterExists()The attribute chanFreqCenter is optional.
isChanWidthExists()The attribute chanWidth is optional.
isWvrIdExists()The attribute wvrId is optional.
loValuesFromBin(row, eis)Set the loValues in row from the EndianInput (eis) instance.
numChanFromBin(row, eis)Set the numChan in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag value.
setChanFreqCenter(chanFreqCenter)Set chanFreqCenter with the specified Frequency [] value.
setChanWidth(chanWidth)Set chanWidth with the specified Frequency [] value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setHiValues(hiValues)Set hiValues with the specified float [] value.
setLoValues(loValues)Set loValues with the specified float [] value.
setNumChan(numChan)Set numChan with the specified int value.
setTimeInterval(timeInterval)Set timeInterval with the specified ArrayTimeInterval value.
setWvrId(wvrId)Set wvrId with the specified str value.
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.
wvrIdFromBin(row, eis)Set the optional wvrId in row from the EndianInput (eis) instance.
Methods Documentation
-
static
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
static
chanFreqCenterFromBin(row, eis)[source]¶ Set the optional chanFreqCenter in row from the EndianInput (eis) instance.
-
static
chanWidthFromBin(row, eis)[source]¶ Set the optional chanWidth in row from the EndianInput (eis) instance.
-
compareNoAutoInc(antennaId, timeInterval, numChan, hiValues, loValues)[source]¶ Compare each attribute except the autoincrementable one of this VLAWVRRow 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
-
getChanFreqCenter()[source]¶ Get chanFreqCenter, which is optional. return chanFreqCenter as Frequency [] raises ValueError If chanFreqCenter does not exist.
-
getChanWidth()[source]¶ Get chanWidth, which is optional. return chanWidth as Frequency [] raises ValueError If chanWidth does not exist.
-
getWvrId()[source]¶ Get wvrId, which is optional. return wvrId as str raises ValueError If wvrId does not exist.
-
static
hiValuesFromBin(row, eis)[source]¶ Set the hiValues in row from the EndianInput (eis) instance.
-
isChanFreqCenterExists()[source]¶ The attribute chanFreqCenter is optional. Return True if this attribute exists. return True if and only if the chanFreqCenter attribute exists.
-
isChanWidthExists()[source]¶ The attribute chanWidth is optional. Return True if this attribute exists. return True if and only if the chanWidth attribute exists.
-
isWvrIdExists()[source]¶ The attribute wvrId is optional. Return True if this attribute exists. return True if and only if the wvrId attribute exists.
-
static
loValuesFromBin(row, eis)[source]¶ Set the loValues in row from the EndianInput (eis) instance.
-
static
numChanFromBin(row, eis)[source]¶ Set the numChan 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.
-
setChanFreqCenter(chanFreqCenter)[source]¶ Set chanFreqCenter with the specified Frequency [] value. chanFreqCenter The Frequency [] value to which chanFreqCenter is to be set. The value of chanFreqCenter can be anything allowed by the Frequency [] constructor.
-
setChanWidth(chanWidth)[source]¶ Set chanWidth with the specified Frequency [] value. chanWidth The Frequency [] value to which chanWidth is to be set. The value of chanWidth can be anything allowed by the Frequency [] constructor.
-
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.
-
setHiValues(hiValues)[source]¶ Set hiValues with the specified float [] value. hiValues The float [] value to which hiValues is to be set.
-
setLoValues(loValues)[source]¶ Set loValues with the specified float [] value. loValues The float [] value to which loValues is to be set.
-
setNumChan(numChan)[source]¶ Set numChan with the specified int value. numChan The int value to which numChan 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.
-
setWvrId(wvrId)[source]¶ Set wvrId with the specified str value. wvrId The str value to which wvrId is to be set.
-
static