StationRow

class StationRow(table, row=None)[source]

Bases: object

The StationRow class is a row of a StationTable.

Generated from model’s revision -1, branch

Methods Summary

clearTime()

Mark time, which is an optional field, as non-existent.

compareNoAutoInc(name, position, type)

Compare each attribute except the autoincrementable one of this StationRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(name, position, type)

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.

getName()

Get name.

getPosition()

Get position.

getStationId()

Get stationId.

getTable()

Return the table to which this row belongs.

getTime()

Get time, which is optional.

getType()

Get type.

initFromBinMethods()

isAdded()

isTimeExists()

The attribute time is optional.

nameFromBin(row, eis)

Set the name in row from the EndianInput (eis) instance.

positionFromBin(row, eis)

Set the position in row from the EndianInput (eis) instance.

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.

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.

setType(type)

Set type with the specified StationType value.

stationIdFromBin(row, eis)

Set the stationId 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.

typeFromBin(row, eis)

Set the type in row from the EndianInput (eis) instance.

Methods Documentation

clearTime()[source]

Mark time, which is an optional field, as non-existent.

compareNoAutoInc(name, position, type)[source]

Compare each attribute except the autoincrementable one of this StationRow with the corresponding parameters and return True if there is a match and False otherwise.

compareRequiredValue(name, position, type)[source]
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.

getName()[source]

Get name. return name as str

getPosition()[source]

Get position. return position as Length []

getStationId()[source]

Get stationId. return stationId as Tag

getTable()[source]

Return the table to which this row belongs.

getTime()[source]

Get time, which is optional. return time as ArrayTime raises ValueError If time does not exist.

getType()[source]

Get type. return type as StationType

static initFromBinMethods()[source]
isAdded()[source]
isTimeExists()[source]

The attribute time is optional. Return True if this attribute exists. return True if and only if the time attribute exists.

static nameFromBin(row, eis)[source]

Set the name in row from the EndianInput (eis) instance.

static positionFromBin(row, eis)[source]

Set the position in row from the EndianInput (eis) instance.

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.

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.

Raises a ValueError If an attempt is made to change a part of the key after is has been added to the table.

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.

setType(type)[source]

Set type with the specified StationType value. type The StationType value to which type is to be set.

static stationIdFromBin(row, eis)[source]

Set the stationId in row from the EndianInput (eis) instance.

static timeFromBin(row, eis)[source]

Set the optional time in row from the EndianInput (eis) instance.

toBin(eos)[source]

Write this row out to the EndianOutput instance, eos.

toXML()[source]

Return this row in the form of an XML string.

static typeFromBin(row, eis)[source]

Set the type in row from the EndianInput (eis) instance.