HolographyRow

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

Bases: object

The HolographyRow class is a row of a HolographyTable.

Generated from model’s revision -1, branch

Methods Summary

compareNoAutoInc(distance, focus, numCorr, type)

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

compareRequiredValue(distance, focus, …)

distanceFromBin(row, eis)

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

focusFromBin(row, eis)

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

getDistance()

Get distance.

getFocus()

Get focus.

getHolographyId()

Get holographyId.

getNumCorr()

Get numCorr.

getTable()

Return the table to which this row belongs.

getType()

Get type.

holographyIdFromBin(row, eis)

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

initFromBinMethods()

isAdded()

numCorrFromBin(row, eis)

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

setDistance(distance)

Set distance with the specified Length value.

setFocus(focus)

Set focus with the specified Length value.

setFromXML(xmlrow)

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

setHolographyId(holographyId)

Set holographyId with the specified Tag value.

setNumCorr(numCorr)

Set numCorr with the specified int value.

setType(type)

Set type with the specified HolographyChannelType [] value.

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

compareNoAutoInc(distance, focus, numCorr, type)[source]

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

compareRequiredValue(distance, focus, numCorr, type)[source]
static distanceFromBin(row, eis)[source]

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

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

getDistance()[source]

Get distance. return distance as Length

getFocus()[source]

Get focus. return focus as Length

getHolographyId()[source]

Get holographyId. return holographyId as Tag

getNumCorr()[source]

Get numCorr. return numCorr as int

getTable()[source]

Return the table to which this row belongs.

getType()[source]

Get type. return type as HolographyChannelType []

static holographyIdFromBin(row, eis)[source]

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

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

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

setDistance(distance)[source]

Set distance with the specified Length value. distance The Length value to which distance is to be set. The value of distance can be anything allowed by the Length constructor.

setFocus(focus)[source]

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

setHolographyId(holographyId)[source]

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

setNumCorr(numCorr)[source]

Set numCorr with the specified int value. numCorr The int value to which numCorr is to be set.

setType(type)[source]

Set type with the specified HolographyChannelType [] value. type The HolographyChannelType [] value to which type is to be set.

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.