FocusRow¶
-
class
FocusRow(table, row=None)[source]¶ Bases:
objectThe FocusRow class is a row of a FocusTable.
Generated from model’s revision -1, branch
Methods Summary
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
clearMeasuredFocusPosition()Mark measuredFocusPosition, which is an optional field, as non-existent.
clearMeasuredFocusRotation()Mark measuredFocusRotation, which is an optional field, as non-existent.
compareNoAutoInc(antennaId, timeInterval, …)Compare each attribute except the autoincrementable one of this FocusRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(focusTracking, …)equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
focusModelIdFromBin(row, eis)Set the focusModelId in row from the EndianInput (eis) instance.
focusOffsetFromBin(row, eis)Set the focusOffset in row from the EndianInput (eis) instance.
focusRotationOffsetFromBin(row, eis)Set the focusRotationOffset in row from the EndianInput (eis) instance.
focusTrackingFromBin(row, eis)Set the focusTracking 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
getFocusModelId()Get focusModelId.
getFocusModels()Get the collection of rows in the FocusModel table having focusModelId == this.focusModelId
getFocusOffset()Get focusOffset.
getFocusRotationOffset()Get focusRotationOffset.
getFocusTracking()Get focusTracking.
getMeasuredFocusPosition()Get measuredFocusPosition, which is optional.
getMeasuredFocusRotation()Get measuredFocusRotation, which is optional.
getTable()Return the table to which this row belongs.
getTimeInterval()Get timeInterval.
initFromBinMethods()isAdded()isMeasuredFocusPositionExists()The attribute measuredFocusPosition is optional.
isMeasuredFocusRotationExists()The attribute measuredFocusRotation is optional.
measuredFocusPositionFromBin(row, eis)Set the optional measuredFocusPosition in row from the EndianInput (eis) instance.
measuredFocusRotationFromBin(row, eis)Set the optional measuredFocusRotation in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag value.
setFocusModelId(focusModelId)Set focusModelId with the specified int value.
setFocusOffset(focusOffset)Set focusOffset with the specified Length [] value.
setFocusRotationOffset(focusRotationOffset)Set focusRotationOffset with the specified Angle [] value.
setFocusTracking(focusTracking)Set focusTracking with the specified bool value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setMeasuredFocusPosition(measuredFocusPosition)Set measuredFocusPosition with the specified Length [] value.
setMeasuredFocusRotation(measuredFocusRotation)Set measuredFocusRotation with the specified Angle [] value.
setTimeInterval(timeInterval)Set timeInterval with the specified ArrayTimeInterval 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.
Methods Documentation
-
static
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
clearMeasuredFocusPosition()[source]¶ Mark measuredFocusPosition, which is an optional field, as non-existent.
-
clearMeasuredFocusRotation()[source]¶ Mark measuredFocusRotation, which is an optional field, as non-existent.
-
compareNoAutoInc(antennaId, timeInterval, focusTracking, focusOffset, focusRotationOffset, focusModelId)[source]¶ Compare each attribute except the autoincrementable one of this FocusRow 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
focusModelIdFromBin(row, eis)[source]¶ Set the focusModelId in row from the EndianInput (eis) instance.
-
static
focusOffsetFromBin(row, eis)[source]¶ Set the focusOffset in row from the EndianInput (eis) instance.
-
static
focusRotationOffsetFromBin(row, eis)[source]¶ Set the focusRotationOffset in row from the EndianInput (eis) instance.
-
static
focusTrackingFromBin(row, eis)[source]¶ Set the focusTracking 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.
-
getAntennaUsingAntennaId()[source]¶ Returns the row in the Antenna table having Antenna.antennaId == antennaId
-
getFocusModels()[source]¶ Get the collection of rows in the FocusModel table having focusModelId == this.focusModelId
-
getMeasuredFocusPosition()[source]¶ Get measuredFocusPosition, which is optional. return measuredFocusPosition as Length [] raises ValueError If measuredFocusPosition does not exist.
-
getMeasuredFocusRotation()[source]¶ Get measuredFocusRotation, which is optional. return measuredFocusRotation as Angle [] raises ValueError If measuredFocusRotation does not exist.
-
isMeasuredFocusPositionExists()[source]¶ The attribute measuredFocusPosition is optional. Return True if this attribute exists. return True if and only if the measuredFocusPosition attribute exists.
-
isMeasuredFocusRotationExists()[source]¶ The attribute measuredFocusRotation is optional. Return True if this attribute exists. return True if and only if the measuredFocusRotation attribute exists.
-
static
measuredFocusPositionFromBin(row, eis)[source]¶ Set the optional measuredFocusPosition in row from the EndianInput (eis) instance.
-
static
measuredFocusRotationFromBin(row, eis)[source]¶ Set the optional measuredFocusRotation 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.
-
setFocusModelId(focusModelId)[source]¶ Set focusModelId with the specified int value. focusModelId The int value to which focusModelId is to be set.
-
setFocusOffset(focusOffset)[source]¶ Set focusOffset with the specified Length [] value. focusOffset The Length [] value to which focusOffset is to be set. The value of focusOffset can be anything allowed by the Length [] constructor.
-
setFocusRotationOffset(focusRotationOffset)[source]¶ Set focusRotationOffset with the specified Angle [] value. focusRotationOffset The Angle [] value to which focusRotationOffset is to be set. The value of focusRotationOffset can be anything allowed by the Angle [] constructor.
-
setFocusTracking(focusTracking)[source]¶ Set focusTracking with the specified bool value. focusTracking The bool value to which focusTracking is to be set.
-
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.
-
setMeasuredFocusPosition(measuredFocusPosition)[source]¶ Set measuredFocusPosition with the specified Length [] value. measuredFocusPosition The Length [] value to which measuredFocusPosition is to be set. The value of measuredFocusPosition can be anything allowed by the Length [] constructor.
-
setMeasuredFocusRotation(measuredFocusRotation)[source]¶ Set measuredFocusRotation with the specified Angle [] value. measuredFocusRotation The Angle [] value to which measuredFocusRotation is to be set. The value of measuredFocusRotation can be anything allowed by the Angle [] constructor.
-
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