FlagCmdRow

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

Bases: object

The FlagCmdRow class is a row of a FlagCmdTable.

Generated from model’s revision -1, branch

Methods Summary

appliedFromBin(row, eis)

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

commandFromBin(row, eis)

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

compareNoAutoInc(timeInterval, type, reason, …)

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

compareRequiredValue(type, reason, level, …)

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.

getApplied()

Get applied.

getCommand()

Get command.

getLevel()

Get level.

getReason()

Get reason.

getSeverity()

Get severity.

getTable()

Return the table to which this row belongs.

getTimeInterval()

Get timeInterval.

getType()

Get type.

initFromBinMethods()

isAdded()

levelFromBin(row, eis)

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

reasonFromBin(row, eis)

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

setApplied(applied)

Set applied with the specified bool value.

setCommand(command)

Set command with the specified str value.

setFromXML(xmlrow)

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

setLevel(level)

Set level with the specified int value.

setReason(reason)

Set reason with the specified str value.

setSeverity(severity)

Set severity with the specified int value.

setTimeInterval(timeInterval)

Set timeInterval with the specified ArrayTimeInterval value.

setType(type)

Set type with the specified str value.

severityFromBin(row, eis)

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

timeIntervalFromBin(row, eis)

Set the timeInterval 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

static appliedFromBin(row, eis)[source]

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

static commandFromBin(row, eis)[source]

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

compareNoAutoInc(timeInterval, type, reason, level, severity, applied, command)[source]

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

compareRequiredValue(type, reason, level, severity, applied, command)[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.

getApplied()[source]

Get applied. return applied as bool

getCommand()[source]

Get command. return command as str

getLevel()[source]

Get level. return level as int

getReason()[source]

Get reason. return reason as str

getSeverity()[source]

Get severity. return severity as int

getTable()[source]

Return the table to which this row belongs.

getTimeInterval()[source]

Get timeInterval. return timeInterval as ArrayTimeInterval

getType()[source]

Get type. return type as str

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

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

static reasonFromBin(row, eis)[source]

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

setApplied(applied)[source]

Set applied with the specified bool value. applied The bool value to which applied is to be set.

setCommand(command)[source]

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

setLevel(level)[source]

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

setReason(reason)[source]

Set reason with the specified str value. reason The str value to which reason is to be set.

setSeverity(severity)[source]

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

setTimeInterval(timeInterval)[source]

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

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

setType(type)[source]

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

static severityFromBin(row, eis)[source]

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

static timeIntervalFromBin(row, eis)[source]

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