AntennaRow¶
-
class
AntennaRow(table, row=None)[source]¶ Bases:
objectThe AntennaRow class is a row of a AntennaTable.
Generated from model’s revision -1, branch
Methods Summary
antennaIdFromBin(row, eis)Set the antennaId in row from the EndianInput (eis) instance.
antennaMakeFromBin(row, eis)Set the antennaMake in row from the EndianInput (eis) instance.
antennaTypeFromBin(row, eis)Set the antennaType in row from the EndianInput (eis) instance.
assocAntennaIdFromBin(row, eis)Set the optional assocAntennaId in row from the EndianInput (eis) instance.
clearAssocAntennaId()Mark assocAntennaId, which is an optional field, as non-existent.
compareNoAutoInc(name, antennaMake, …)Compare each attribute except the autoincrementable one of this AntennaRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(name, antennaMake, …)dishDiameterFromBin(row, eis)Set the dishDiameter 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.
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.
getAntennaMake()Get antennaMake.
getAntennaType()Get antennaType.
getAssocAntennaId()Get assocAntennaId, which is optional.
getAssociatedAntenna()Get the optional row in table Antenna by traversing the defined link to that table.
getDishDiameter()Get dishDiameter.
getName()Get name.
getOffset()Get offset.
getPosition()Get position.
getStationId()Get stationId.
getStationUsingStationId()Returns the row in the Station table having Station.stationId == stationId
getTable()Return the table to which this row belongs.
getTime()Get time.
initFromBinMethods()isAdded()isAssocAntennaIdExists()The attribute assocAntennaId is optional.
isAssociatedAntennaExists()The link to table Antenna is optional.
nameFromBin(row, eis)Set the name in row from the EndianInput (eis) instance.
offsetFromBin(row, eis)Set the offset in row from the EndianInput (eis) instance.
positionFromBin(row, eis)Set the position in row from the EndianInput (eis) instance.
setAntennaId(antennaId)Set antennaId with the specified Tag value.
setAntennaMake(antennaMake)Set antennaMake with the specified AntennaMake value.
setAntennaType(antennaType)Set antennaType with the specified AntennaType value.
setAssocAntennaId(assocAntennaId)Set assocAntennaId with the specified Tag value.
setAssociatedAntennaLink(AssocAntennaId)Set the values of the link attributes needed to link this row to a row in table Antenna.
setDishDiameter(dishDiameter)Set dishDiameter with the specified Length value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setName(name)Set name with the specified str value.
setOffset(offset)Set offset with the specified Length [] value.
setPosition(position)Set position with the specified Length [] value.
setStationId(stationId)Set stationId with the specified Tag value.
setTime(time)Set time with the specified ArrayTime value.
stationIdFromBin(row, eis)Set the stationId in row from the EndianInput (eis) instance.
timeFromBin(row, eis)Set the 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
antennaIdFromBin(row, eis)[source]¶ Set the antennaId in row from the EndianInput (eis) instance.
-
static
antennaMakeFromBin(row, eis)[source]¶ Set the antennaMake in row from the EndianInput (eis) instance.
-
static
antennaTypeFromBin(row, eis)[source]¶ Set the antennaType in row from the EndianInput (eis) instance.
-
static
assocAntennaIdFromBin(row, eis)[source]¶ Set the optional assocAntennaId in row from the EndianInput (eis) instance.
-
compareNoAutoInc(name, antennaMake, antennaType, dishDiameter, position, offset, time, stationId)[source]¶ Compare each attribute except the autoincrementable one of this AntennaRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(name, antennaMake, antennaType, dishDiameter, position, offset, time, stationId)[source]¶
-
static
dishDiameterFromBin(row, eis)[source]¶ Set the dishDiameter 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
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.
-
getAssocAntennaId()[source]¶ Get assocAntennaId, which is optional. return assocAntennaId as Tag raises ValueError If assocAntennaId does not exist.
-
getAssociatedAntenna()[source]¶ Get the optional row in table Antenna by traversing the defined link to that table. return A row in Antenna table. raises NoSuchRow if there is no such row in table Antenna or the link does not exist.
-
getStationUsingStationId()[source]¶ Returns the row in the Station table having Station.stationId == stationId
-
isAssocAntennaIdExists()[source]¶ The attribute assocAntennaId is optional. Return True if this attribute exists. return True if and only if the assocAntennaId attribute exists.
-
isAssociatedAntennaExists()[source]¶ The link to table Antenna is optional. Return True if this link exists.
-
static
positionFromBin(row, eis)[source]¶ Set the position 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.
-
setAntennaMake(antennaMake)[source]¶ Set antennaMake with the specified AntennaMake value. antennaMake The AntennaMake value to which antennaMake is to be set.
-
setAntennaType(antennaType)[source]¶ Set antennaType with the specified AntennaType value. antennaType The AntennaType value to which antennaType is to be set.
-
setAssocAntennaId(assocAntennaId)[source]¶ Set assocAntennaId with the specified Tag value. assocAntennaId The Tag value to which assocAntennaId is to be set. The value of assocAntennaId can be anything allowed by the Tag constructor.
-
setAssociatedAntennaLink(AssocAntennaId)[source]¶ Set the values of the link attributes needed to link this row to a row in table Antenna.
-
setDishDiameter(dishDiameter)[source]¶ Set dishDiameter with the specified Length value. dishDiameter The Length value to which dishDiameter is to be set. The value of dishDiameter can be anything allowed by the Length 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.
-
setName(name)[source]¶ Set name with the specified str value. name The str value to which name is to be set.
-
setOffset(offset)[source]¶ Set offset with the specified Length [] value. offset The Length [] value to which offset is to be set. The value of offset can be anything allowed by the Length [] constructor.
-
setPosition(position)[source]¶ Set position with the specified Length [] value. position The Length [] value to which position is to be set. The value of position can be anything allowed by the Length [] constructor.
-
setStationId(stationId)[source]¶ Set stationId with the specified Tag value. stationId The Tag value to which stationId is to be set. The value of stationId can be anything allowed by the Tag constructor.
-
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