FieldRow¶
-
class
FieldRow(table, row=None)[source]¶ Bases:
objectThe FieldRow class is a row of a FieldTable.
Generated from model’s revision -1, branch
Methods Summary
assocFieldIdFromBin(row, eis)Set the optional assocFieldId in row from the EndianInput (eis) instance.
assocNatureFromBin(row, eis)Set the optional assocNature in row from the EndianInput (eis) instance.
clearAssocFieldId()Mark assocFieldId, which is an optional field, as non-existent.
clearAssocNature()Mark assocNature, which is an optional field, as non-existent.
clearCode()Mark code, which is an optional field, as non-existent.
clearDirectionCode()Mark directionCode, which is an optional field, as non-existent.
clearDirectionEquinox()Mark directionEquinox, which is an optional field, as non-existent.
clearEphemerisId()Mark ephemerisId, which is an optional field, as non-existent.
clearSourceId()Mark sourceId, which is an optional field, as non-existent.
clearTime()Mark time, which is an optional field, as non-existent.
codeFromBin(row, eis)Set the optional code in row from the EndianInput (eis) instance.
compareNoAutoInc(fieldName, numPoly, …)Compare each attribute except the autoincrementable one of this FieldRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(fieldName, numPoly, …)delayDirFromBin(row, eis)Set the delayDir in row from the EndianInput (eis) instance.
directionCodeFromBin(row, eis)Set the optional directionCode in row from the EndianInput (eis) instance.
directionEquinoxFromBin(row, eis)Set the optional directionEquinox in row from the EndianInput (eis) instance.
ephemerisIdFromBin(row, eis)Set the optional ephemerisId 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.
fieldIdFromBin(row, eis)Set the fieldId in row from the EndianInput (eis) instance.
fieldNameFromBin(row, eis)Set the fieldName 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.
getAssocFieldId()Get assocFieldId, which is optional.
getAssocNature()Get assocNature, which is optional.
getCode()Get code, which is optional.
getDelayDir()Get delayDir.
getDirectionCode()Get directionCode, which is optional.
getDirectionEquinox()Get directionEquinox, which is optional.
getEphemerisId()Get ephemerisId, which is optional.
getFieldId()Get fieldId.
getFieldName()Get fieldName.
getFieldUsingAssocFieldId()Returns the row in the Field table having Field.assocFieldId == assocFieldId
getNumPoly()Get numPoly.
getPhaseDir()Get phaseDir.
getReferenceDir()Get referenceDir.
getSourceId()Get sourceId, which is optional.
getSources()Get the collection of rows in the Source table having sourceId == this.sourceId
getTable()Return the table to which this row belongs.
getTime()Get time, which is optional.
initFromBinMethods()isAdded()isAssocFieldIdExists()The attribute assocFieldId is optional.
isAssocNatureExists()The attribute assocNature is optional.
isCodeExists()The attribute code is optional.
isDirectionCodeExists()The attribute directionCode is optional.
isDirectionEquinoxExists()The attribute directionEquinox is optional.
isEphemerisIdExists()The attribute ephemerisId is optional.
isSourceIdExists()The attribute sourceId is optional.
isTimeExists()The attribute time is optional.
numPolyFromBin(row, eis)Set the numPoly in row from the EndianInput (eis) instance.
phaseDirFromBin(row, eis)Set the phaseDir in row from the EndianInput (eis) instance.
referenceDirFromBin(row, eis)Set the referenceDir in row from the EndianInput (eis) instance.
setAssocFieldId(assocFieldId)Set assocFieldId with the specified Tag value.
setAssocNature(assocNature)Set assocNature with the specified str value.
setCode(code)Set code with the specified str value.
setDelayDir(delayDir)Set delayDir with the specified Angle [] [] value.
setDirectionCode(directionCode)Set directionCode with the specified DirectionReferenceCode value.
setDirectionEquinox(directionEquinox)Set directionEquinox with the specified ArrayTime value.
setEphemerisId(ephemerisId)Set ephemerisId with the specified int value.
setFieldId(fieldId)Set fieldId with the specified Tag value.
setFieldName(fieldName)Set fieldName with the specified str value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setNumPoly(numPoly)Set numPoly with the specified int value.
setPhaseDir(phaseDir)Set phaseDir with the specified Angle [] [] value.
setReferenceDir(referenceDir)Set referenceDir with the specified Angle [] [] value.
setSourceId(sourceId)Set sourceId with the specified int value.
setTime(time)Set time with the specified ArrayTime value.
sourceIdFromBin(row, eis)Set the optional sourceId in row from the EndianInput (eis) instance.
timeFromBin(row, eis)Set the optional time 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
assocFieldIdFromBin(row, eis)[source]¶ Set the optional assocFieldId in row from the EndianInput (eis) instance.
-
static
assocNatureFromBin(row, eis)[source]¶ Set the optional assocNature in row from the EndianInput (eis) instance.
-
clearDirectionEquinox()[source]¶ Mark directionEquinox, which is an optional field, as non-existent.
-
static
codeFromBin(row, eis)[source]¶ Set the optional code in row from the EndianInput (eis) instance.
-
compareNoAutoInc(fieldName, numPoly, delayDir, phaseDir, referenceDir)[source]¶ Compare each attribute except the autoincrementable one of this FieldRow with the corresponding parameters and return True if there is a match and False otherwise.
-
static
delayDirFromBin(row, eis)[source]¶ Set the delayDir in row from the EndianInput (eis) instance.
-
static
directionCodeFromBin(row, eis)[source]¶ Set the optional directionCode in row from the EndianInput (eis) instance.
-
static
directionEquinoxFromBin(row, eis)[source]¶ Set the optional directionEquinox in row from the EndianInput (eis) instance.
-
static
ephemerisIdFromBin(row, eis)[source]¶ Set the optional ephemerisId 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
fieldIdFromBin(row, eis)[source]¶ Set the fieldId in row from the EndianInput (eis) instance.
-
static
fieldNameFromBin(row, eis)[source]¶ Set the fieldName 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.
-
getAssocFieldId()[source]¶ Get assocFieldId, which is optional. return assocFieldId as Tag raises ValueError If assocFieldId does not exist.
-
getAssocNature()[source]¶ Get assocNature, which is optional. return assocNature as str raises ValueError If assocNature does not exist.
-
getCode()[source]¶ Get code, which is optional. return code as str raises ValueError If code does not exist.
-
getDirectionCode()[source]¶ Get directionCode, which is optional. return directionCode as DirectionReferenceCode raises ValueError If directionCode does not exist.
-
getDirectionEquinox()[source]¶ Get directionEquinox, which is optional. return directionEquinox as ArrayTime raises ValueError If directionEquinox does not exist.
-
getEphemerisId()[source]¶ Get ephemerisId, which is optional. return ephemerisId as int raises ValueError If ephemerisId does not exist.
-
getFieldUsingAssocFieldId()[source]¶ Returns the row in the Field table having Field.assocFieldId == assocFieldId
Raises ValueError if the optional assocFieldId does not exist for this row.
-
getSourceId()[source]¶ Get sourceId, which is optional. return sourceId as int raises ValueError If sourceId does not exist.
-
getSources()[source]¶ Get the collection of rows in the Source table having sourceId == this.sourceId
-
getTime()[source]¶ Get time, which is optional. return time as ArrayTime raises ValueError If time does not exist.
-
isAssocFieldIdExists()[source]¶ The attribute assocFieldId is optional. Return True if this attribute exists. return True if and only if the assocFieldId attribute exists.
-
isAssocNatureExists()[source]¶ The attribute assocNature is optional. Return True if this attribute exists. return True if and only if the assocNature attribute exists.
-
isCodeExists()[source]¶ The attribute code is optional. Return True if this attribute exists. return True if and only if the code attribute exists.
-
isDirectionCodeExists()[source]¶ The attribute directionCode is optional. Return True if this attribute exists. return True if and only if the directionCode attribute exists.
-
isDirectionEquinoxExists()[source]¶ The attribute directionEquinox is optional. Return True if this attribute exists. return True if and only if the directionEquinox attribute exists.
-
isEphemerisIdExists()[source]¶ The attribute ephemerisId is optional. Return True if this attribute exists. return True if and only if the ephemerisId attribute exists.
-
isSourceIdExists()[source]¶ The attribute sourceId is optional. Return True if this attribute exists. return True if and only if the sourceId attribute exists.
-
isTimeExists()[source]¶ The attribute time is optional. Return True if this attribute exists. return True if and only if the time attribute exists.
-
static
numPolyFromBin(row, eis)[source]¶ Set the numPoly in row from the EndianInput (eis) instance.
-
static
phaseDirFromBin(row, eis)[source]¶ Set the phaseDir in row from the EndianInput (eis) instance.
-
static
referenceDirFromBin(row, eis)[source]¶ Set the referenceDir in row from the EndianInput (eis) instance.
-
setAssocFieldId(assocFieldId)[source]¶ Set assocFieldId with the specified Tag value. assocFieldId The Tag value to which assocFieldId is to be set. The value of assocFieldId can be anything allowed by the Tag constructor.
-
setAssocNature(assocNature)[source]¶ Set assocNature with the specified str value. assocNature The str value to which assocNature is to be set.
-
setCode(code)[source]¶ Set code with the specified str value. code The str value to which code is to be set.
-
setDelayDir(delayDir)[source]¶ Set delayDir with the specified Angle [] [] value. delayDir The Angle [] [] value to which delayDir is to be set. The value of delayDir can be anything allowed by the Angle [] [] constructor.
-
setDirectionCode(directionCode)[source]¶ Set directionCode with the specified DirectionReferenceCode value. directionCode The DirectionReferenceCode value to which directionCode is to be set.
-
setDirectionEquinox(directionEquinox)[source]¶ Set directionEquinox with the specified ArrayTime value. directionEquinox The ArrayTime value to which directionEquinox is to be set. The value of directionEquinox can be anything allowed by the ArrayTime constructor.
-
setEphemerisId(ephemerisId)[source]¶ Set ephemerisId with the specified int value. ephemerisId The int value to which ephemerisId is to be set.
-
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.
-
setFieldName(fieldName)[source]¶ Set fieldName with the specified str value. fieldName The str value to which fieldName 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.
-
setNumPoly(numPoly)[source]¶ Set numPoly with the specified int value. numPoly The int value to which numPoly is to be set.
-
setPhaseDir(phaseDir)[source]¶ Set phaseDir with the specified Angle [] [] value. phaseDir The Angle [] [] value to which phaseDir is to be set. The value of phaseDir can be anything allowed by the Angle [] [] constructor.
-
setReferenceDir(referenceDir)[source]¶ Set referenceDir with the specified Angle [] [] value. referenceDir The Angle [] [] value to which referenceDir is to be set. The value of referenceDir can be anything allowed by the Angle [] [] constructor.
-
setSourceId(sourceId)[source]¶ Set sourceId with the specified int value. sourceId The int value to which sourceId 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.
-
static
sourceIdFromBin(row, eis)[source]¶ Set the optional sourceId in row from the EndianInput (eis) instance.
-
static