ProcessorRow¶
-
class
ProcessorRow(table, row=None)[source]¶ Bases:
objectThe ProcessorRow class is a row of a ProcessorTable.
Generated from model’s revision -1, branch
Methods Summary
compareNoAutoInc(modeId, processorType, …)Compare each attribute except the autoincrementable one of this ProcessorRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(modeId, processorType, …)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.
getModeId()Get modeId.
getProcessorId()Get processorId.
getProcessorSubType()Get processorSubType.
getProcessorType()Get processorType.
getTable()Return the table to which this row belongs.
initFromBinMethods()isAdded()modeIdFromBin(row, eis)Set the modeId in row from the EndianInput (eis) instance.
processorIdFromBin(row, eis)Set the processorId in row from the EndianInput (eis) instance.
processorSubTypeFromBin(row, eis)Set the processorSubType in row from the EndianInput (eis) instance.
processorTypeFromBin(row, eis)Set the processorType in row from the EndianInput (eis) instance.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setModeId(modeId)Set modeId with the specified Tag value.
setProcessorId(processorId)Set processorId with the specified Tag value.
setProcessorSubType(processorSubType)Set processorSubType with the specified ProcessorSubType value.
setProcessorType(processorType)Set processorType with the specified ProcessorType value.
toBin(eos)Write this row out to the EndianOutput instance, eos.
toXML()Return this row in the form of an XML string.
Methods Documentation
-
compareNoAutoInc(modeId, processorType, processorSubType)[source]¶ Compare each attribute except the autoincrementable one of this ProcessorRow with the corresponding parameters and return True if there is a match and False otherwise.
-
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.
-
static
processorIdFromBin(row, eis)[source]¶ Set the processorId in row from the EndianInput (eis) instance.
-
static
processorSubTypeFromBin(row, eis)[source]¶ Set the processorSubType in row from the EndianInput (eis) instance.
-
static
processorTypeFromBin(row, eis)[source]¶ Set the processorType in row from the EndianInput (eis) instance.
-
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.
-
setModeId(modeId)[source]¶ Set modeId with the specified Tag value. modeId The Tag value to which modeId is to be set. The value of modeId can be anything allowed by the Tag constructor.
-
setProcessorId(processorId)[source]¶ Set processorId with the specified Tag value. processorId The Tag value to which processorId is to be set. The value of processorId 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.
-
setProcessorSubType(processorSubType)[source]¶ Set processorSubType with the specified ProcessorSubType value. processorSubType The ProcessorSubType value to which processorSubType is to be set.
-