MainRow¶
-
class
MainRow(table, row=None)[source]¶ Bases:
objectThe MainRow class is a row of a MainTable.
Generated from model’s revision -1, branch
Methods Summary
addStateId(id)Append a Tag to stateId id the Tag to be appended to stateId
compareNoAutoInc(time, configDescriptionId, …)Compare each attribute except the autoincrementable one of this MainRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(numAntenna, …)configDescriptionIdFromBin(row, eis)Set the configDescriptionId in row from the EndianInput (eis) instance.
dataSizeFromBin(row, eis)Set the dataSize in row from the EndianInput (eis) instance.
dataUIDFromBin(row, eis)Set the dataUID 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.
execBlockIdFromBin(row, eis)Set the execBlockId in row from the EndianInput (eis) instance.
fieldIdFromBin(row, eis)Set the fieldId 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.
getBDFPath()Return a path to the BDF using dataUID and the directory of this ASDM.
getConfigDescriptionId()Get configDescriptionId.
getConfigDescriptionUsingConfigDescriptionId()Returns the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId
getDataSize()Get dataSize.
getDataUID()Get dataUID.
getExecBlockId()Get execBlockId.
getExecBlockUsingExecBlockId()Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
getFieldId()Get fieldId.
getFieldUsingFieldId()Returns the row in the Field table having Field.fieldId == fieldId
getInterval()Get interval.
getNumAntenna()Get numAntenna.
getNumIntegration()Get numIntegration.
getOneStateId(i)Returns the Tag stored in stateId at position i.
getScanNumber()Get scanNumber.
getStateId()Get stateId.
getStateUsingStateId(i)Returns the StateRow linked to this row via the Tag stored in stateId at position i.
getStatesUsingStateId()Returns the array of StateRow linked to this row via the Tags stored in stateId
getSubscanNumber()Get subscanNumber.
getTable()Return the table to which this row belongs.
getTime()Get time.
getTimeSampling()Get timeSampling.
initFromBinMethods()intervalFromBin(row, eis)Set the interval in row from the EndianInput (eis) instance.
isAdded()numAntennaFromBin(row, eis)Set the numAntenna in row from the EndianInput (eis) instance.
numIntegrationFromBin(row, eis)Set the numIntegration in row from the EndianInput (eis) instance.
scanNumberFromBin(row, eis)Set the scanNumber in row from the EndianInput (eis) instance.
setConfigDescriptionId(configDescriptionId)Set configDescriptionId with the specified Tag value.
setDataSize(dataSize)Set dataSize with the specified int value.
setDataUID(dataUID)Set dataUID with the specified EntityRef value.
setExecBlockId(execBlockId)Set execBlockId with the specified Tag value.
setFieldId(fieldId)Set fieldId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setInterval(interval)Set interval with the specified Interval value.
setNumAntenna(numAntenna)Set numAntenna with the specified int value.
setNumIntegration(numIntegration)Set numIntegration with the specified int value.
setOneStateId(index, stateId)Set stateId[index] with the specified Tag value.
setScanNumber(scanNumber)Set scanNumber with the specified int value.
setStateId(stateId)Set stateId with the specified Tag [] value.
setSubscanNumber(subscanNumber)Set subscanNumber with the specified int value.
setTime(time)Set time with the specified ArrayTime value.
setTimeSampling(timeSampling)Set timeSampling with the specified TimeSampling value.
stateIdFromBin(row, eis)Set the stateId in row from the EndianInput (eis) instance.
subscanNumberFromBin(row, eis)Set the subscanNumber in row from the EndianInput (eis) instance.
timeFromBin(row, eis)Set the time in row from the EndianInput (eis) instance.
timeSamplingFromBin(row, eis)Set the timeSampling 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
-
compareNoAutoInc(time, configDescriptionId, fieldId, numAntenna, timeSampling, interval, numIntegration, scanNumber, subscanNumber, dataSize, dataUID, stateId, execBlockId)[source]¶ Compare each attribute except the autoincrementable one of this MainRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(numAntenna, timeSampling, interval, numIntegration, scanNumber, subscanNumber, dataSize, dataUID, stateId, execBlockId)[source]¶
-
static
configDescriptionIdFromBin(row, eis)[source]¶ Set the configDescriptionId in row from the EndianInput (eis) instance.
-
static
dataSizeFromBin(row, eis)[source]¶ Set the dataSize in row from the EndianInput (eis) instance.
-
static
dataUIDFromBin(row, eis)[source]¶ Set the dataUID 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
execBlockIdFromBin(row, eis)[source]¶ Set the execBlockId in row from the EndianInput (eis) instance.
-
static
fieldIdFromBin(row, eis)[source]¶ Set the fieldId 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.
-
getBDFPath()[source]¶ Return a path to the BDF using dataUID and the directory of this ASDM.
This takes the dataUID value and the directory of the container in the table this row is attached to and it returns a string containing the path where that BDF should be found.
-
getConfigDescriptionUsingConfigDescriptionId()[source]¶ Returns the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId
-
getExecBlockUsingExecBlockId()[source]¶ Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
-
getStateUsingStateId(i)[source]¶ Returns the StateRow linked to this row via the Tag stored in stateId at position i.
-
getStatesUsingStateId()[source]¶ Returns the array of StateRow linked to this row via the Tags stored in stateId
-
static
intervalFromBin(row, eis)[source]¶ Set the interval in row from the EndianInput (eis) instance.
-
static
numAntennaFromBin(row, eis)[source]¶ Set the numAntenna in row from the EndianInput (eis) instance.
-
static
numIntegrationFromBin(row, eis)[source]¶ Set the numIntegration in row from the EndianInput (eis) instance.
-
static
scanNumberFromBin(row, eis)[source]¶ Set the scanNumber in row from the EndianInput (eis) instance.
-
setConfigDescriptionId(configDescriptionId)[source]¶ Set configDescriptionId with the specified Tag value. configDescriptionId The Tag value to which configDescriptionId is to be set. The value of configDescriptionId 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.
-
setDataSize(dataSize)[source]¶ Set dataSize with the specified int value. dataSize The int value to which dataSize is to be set.
-
setDataUID(dataUID)[source]¶ Set dataUID with the specified EntityRef value. dataUID The EntityRef value to which dataUID is to be set. The value of dataUID can be anything allowed by the EntityRef constructor.
-
setExecBlockId(execBlockId)[source]¶ Set execBlockId with the specified Tag value. execBlockId The Tag value to which execBlockId is to be set. The value of execBlockId can be anything allowed by the Tag constructor.
-
setFieldId(fieldId)[source]¶ Set fieldId with the specified Tag value. fieldId The Tag value to which fieldId is to be set. The value of fieldId 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.
-
setInterval(interval)[source]¶ Set interval with the specified Interval value. interval The Interval value to which interval is to be set. The value of interval can be anything allowed by the Interval constructor.
-
setNumAntenna(numAntenna)[source]¶ Set numAntenna with the specified int value. numAntenna The int value to which numAntenna is to be set.
-
setNumIntegration(numIntegration)[source]¶ Set numIntegration with the specified int value. numIntegration The int value to which numIntegration is to be set.
-
setOneStateId(index, stateId)[source]¶ Set stateId[index] with the specified Tag value. index The index in stateId where to set the Tag value. stateId The Tag value to which stateId[index] is to be set.
-
setScanNumber(scanNumber)[source]¶ Set scanNumber with the specified int value. scanNumber The int value to which scanNumber is to be set.
-
setStateId(stateId)[source]¶ Set stateId with the specified Tag [] value. stateId The Tag [] value to which stateId is to be set. The value of stateId can be anything allowed by the Tag [] constructor.
-
setSubscanNumber(subscanNumber)[source]¶ Set subscanNumber with the specified int value. subscanNumber The int value to which subscanNumber is to be set.
-
setTime(time)[source]¶ Set time with the specified ArrayTime value. time The ArrayTime value to which time is to be set. The value of time can be anything allowed by the ArrayTime constructor.
Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.
-
setTimeSampling(timeSampling)[source]¶ Set timeSampling with the specified TimeSampling value. timeSampling The TimeSampling value to which timeSampling is to be set.
-
static
stateIdFromBin(row, eis)[source]¶ Set the stateId in row from the EndianInput (eis) instance.
-
static
subscanNumberFromBin(row, eis)[source]¶ Set the subscanNumber in row from the EndianInput (eis) instance.
-