SquareLawDetectorRow

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

Bases: object

The SquareLawDetectorRow class is a row of a SquareLawDetectorTable.

Generated from model’s revision -1, branch

Methods Summary

bandTypeFromBin(row, eis)

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

compareNoAutoInc(numBand, bandType)

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

compareRequiredValue(numBand, bandType)

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.

getBandType()

Get bandType.

getNumBand()

Get numBand.

getSquareLawDetectorId()

Get squareLawDetectorId.

getTable()

Return the table to which this row belongs.

initFromBinMethods()

isAdded()

numBandFromBin(row, eis)

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

setBandType(bandType)

Set bandType with the specified DetectorBandType value.

setFromXML(xmlrow)

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

setNumBand(numBand)

Set numBand with the specified int value.

setSquareLawDetectorId(squareLawDetectorId)

Set squareLawDetectorId with the specified Tag value.

squareLawDetectorIdFromBin(row, eis)

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

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

compareNoAutoInc(numBand, bandType)[source]

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

compareRequiredValue(numBand, bandType)[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.

getBandType()[source]

Get bandType. return bandType as DetectorBandType

getNumBand()[source]

Get numBand. return numBand as int

getSquareLawDetectorId()[source]

Get squareLawDetectorId. return squareLawDetectorId as Tag

getTable()[source]

Return the table to which this row belongs.

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

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

setBandType(bandType)[source]

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

setNumBand(numBand)[source]

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

setSquareLawDetectorId(squareLawDetectorId)[source]

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

static squareLawDetectorIdFromBin(row, eis)[source]

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