ScaleRow

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

Bases: object

The ScaleRow class is a row of a ScaleTable.

Generated from model’s revision -1, branch

Methods Summary

autoDataScaleFromBin(row, eis)

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

compareNoAutoInc(timeScale, crossDataScale, …)

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

compareRequiredValue(timeScale, …)

crossDataScaleFromBin(row, eis)

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

getAutoDataScale()

Get autoDataScale.

getCrossDataScale()

Get crossDataScale.

getScaleId()

Get scaleId.

getTable()

Return the table to which this row belongs.

getTimeScale()

Get timeScale.

getWeightType()

Get weightType.

initFromBinMethods()

isAdded()

scaleIdFromBin(row, eis)

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

setAutoDataScale(autoDataScale)

Set autoDataScale with the specified DataScale value.

setCrossDataScale(crossDataScale)

Set crossDataScale with the specified DataScale value.

setFromXML(xmlrow)

Fill the values of this row from an XML string that was produced by the toXML() method.

setScaleId(scaleId)

Set scaleId with the specified Tag value.

setTimeScale(timeScale)

Set timeScale with the specified TimeScale value.

setWeightType(weightType)

Set weightType with the specified WeightType value.

timeScaleFromBin(row, eis)

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

weightTypeFromBin(row, eis)

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

Methods Documentation

static autoDataScaleFromBin(row, eis)[source]

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

compareNoAutoInc(timeScale, crossDataScale, autoDataScale, weightType)[source]

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

compareRequiredValue(timeScale, crossDataScale, autoDataScale, weightType)[source]
static crossDataScaleFromBin(row, eis)[source]

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

getAutoDataScale()[source]

Get autoDataScale. return autoDataScale as DataScale

getCrossDataScale()[source]

Get crossDataScale. return crossDataScale as DataScale

getScaleId()[source]

Get scaleId. return scaleId as Tag

getTable()[source]

Return the table to which this row belongs.

getTimeScale()[source]

Get timeScale. return timeScale as TimeScale

getWeightType()[source]

Get weightType. return weightType as WeightType

static initFromBinMethods()[source]
isAdded()[source]
static scaleIdFromBin(row, eis)[source]

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

setAutoDataScale(autoDataScale)[source]

Set autoDataScale with the specified DataScale value. autoDataScale The DataScale value to which autoDataScale is to be set.

setCrossDataScale(crossDataScale)[source]

Set crossDataScale with the specified DataScale value. crossDataScale The DataScale value to which crossDataScale 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.

setScaleId(scaleId)[source]

Set scaleId with the specified Tag value. scaleId The Tag value to which scaleId is to be set. The value of scaleId 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.

setTimeScale(timeScale)[source]

Set timeScale with the specified TimeScale value. timeScale The TimeScale value to which timeScale is to be set.

setWeightType(weightType)[source]

Set weightType with the specified WeightType value. weightType The WeightType value to which weightType is to be set.

static timeScaleFromBin(row, eis)[source]

Set the timeScale 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 weightTypeFromBin(row, eis)[source]

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