SwitchCycleRow

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

Bases: object

The SwitchCycleRow class is a row of a SwitchCycleTable.

Generated from model’s revision -1, branch

Methods Summary

clearDirectionCode()

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

clearDirectionEquinox()

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

compareNoAutoInc(numStep, weightArray, …)

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

compareRequiredValue(numStep, weightArray, …)

dirOffsetArrayFromBin(row, eis)

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

directionCodeFromBin(row, eis)

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

directionEquinoxFromBin(row, eis)

Set the optional directionEquinox 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.

freqOffsetArrayFromBin(row, eis)

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

getDirOffsetArray()

Get dirOffsetArray.

getDirectionCode()

Get directionCode, which is optional.

getDirectionEquinox()

Get directionEquinox, which is optional.

getFreqOffsetArray()

Get freqOffsetArray.

getNumStep()

Get numStep.

getStepDurationArray()

Get stepDurationArray.

getSwitchCycleId()

Get switchCycleId.

getTable()

Return the table to which this row belongs.

getWeightArray()

Get weightArray.

initFromBinMethods()

isAdded()

isDirectionCodeExists()

The attribute directionCode is optional.

isDirectionEquinoxExists()

The attribute directionEquinox is optional.

numStepFromBin(row, eis)

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

setDirOffsetArray(dirOffsetArray)

Set dirOffsetArray with the specified Angle [] [] value.

setDirectionCode(directionCode)

Set directionCode with the specified DirectionReferenceCode value.

setDirectionEquinox(directionEquinox)

Set directionEquinox with the specified ArrayTime value.

setFreqOffsetArray(freqOffsetArray)

Set freqOffsetArray with the specified Frequency [] value.

setFromXML(xmlrow)

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

setNumStep(numStep)

Set numStep with the specified int value.

setStepDurationArray(stepDurationArray)

Set stepDurationArray with the specified Interval [] value.

setSwitchCycleId(switchCycleId)

Set switchCycleId with the specified Tag value.

setWeightArray(weightArray)

Set weightArray with the specified float [] value.

stepDurationArrayFromBin(row, eis)

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

switchCycleIdFromBin(row, eis)

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

weightArrayFromBin(row, eis)

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

Methods Documentation

clearDirectionCode()[source]

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

clearDirectionEquinox()[source]

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

compareNoAutoInc(numStep, weightArray, dirOffsetArray, freqOffsetArray, stepDurationArray)[source]

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

compareRequiredValue(numStep, weightArray, dirOffsetArray, freqOffsetArray, stepDurationArray)[source]
static dirOffsetArrayFromBin(row, eis)[source]

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

static directionCodeFromBin(row, eis)[source]

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

static directionEquinoxFromBin(row, eis)[source]

Set the optional directionEquinox 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 freqOffsetArrayFromBin(row, eis)[source]

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

getDirOffsetArray()[source]

Get dirOffsetArray. return dirOffsetArray as Angle [] []

getDirectionCode()[source]

Get directionCode, which is optional. return directionCode as DirectionReferenceCode raises ValueError If directionCode does not exist.

getDirectionEquinox()[source]

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

getFreqOffsetArray()[source]

Get freqOffsetArray. return freqOffsetArray as Frequency []

getNumStep()[source]

Get numStep. return numStep as int

getStepDurationArray()[source]

Get stepDurationArray. return stepDurationArray as Interval []

getSwitchCycleId()[source]

Get switchCycleId. return switchCycleId as Tag

getTable()[source]

Return the table to which this row belongs.

getWeightArray()[source]

Get weightArray. return weightArray as float []

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

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

isDirectionEquinoxExists()[source]

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

static numStepFromBin(row, eis)[source]

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

setDirOffsetArray(dirOffsetArray)[source]

Set dirOffsetArray with the specified Angle [] [] value. dirOffsetArray The Angle [] [] value to which dirOffsetArray is to be set. The value of dirOffsetArray can be anything allowed by the Angle [] [] constructor.

setDirectionCode(directionCode)[source]

Set directionCode with the specified DirectionReferenceCode value. directionCode The DirectionReferenceCode value to which directionCode is to be set.

setDirectionEquinox(directionEquinox)[source]

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

setFreqOffsetArray(freqOffsetArray)[source]

Set freqOffsetArray with the specified Frequency [] value. freqOffsetArray The Frequency [] value to which freqOffsetArray is to be set. The value of freqOffsetArray can be anything allowed by the Frequency [] 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.

setNumStep(numStep)[source]

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

setStepDurationArray(stepDurationArray)[source]

Set stepDurationArray with the specified Interval [] value. stepDurationArray The Interval [] value to which stepDurationArray is to be set. The value of stepDurationArray can be anything allowed by the Interval [] constructor.

setSwitchCycleId(switchCycleId)[source]

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

setWeightArray(weightArray)[source]

Set weightArray with the specified float [] value. weightArray The float [] value to which weightArray is to be set.

static stepDurationArrayFromBin(row, eis)[source]

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

static switchCycleIdFromBin(row, eis)[source]

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

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