HistoryRow¶
-
class
HistoryRow(table, row=None)[source]¶ Bases:
objectThe HistoryRow class is a row of a HistoryTable.
Generated from model’s revision -1, branch
Methods Summary
appParmsFromBin(row, eis)Set the appParms in row from the EndianInput (eis) instance.
applicationFromBin(row, eis)Set the application in row from the EndianInput (eis) instance.
cliCommandFromBin(row, eis)Set the cliCommand in row from the EndianInput (eis) instance.
compareNoAutoInc(execBlockId, time, message, …)Compare each attribute except the autoincrementable one of this HistoryRow with the corresponding parameters and return True if there is a match and False otherwise.
compareRequiredValue(message, priority, …)equalByRequiredValue(otherRow)Return True if all required attributes of the value part are equal to their homologues in otherRow and False otherwise.
execBlockIdFromBin(row, eis)Set the execBlockId 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.
getAppParms()Get appParms.
getApplication()Get application.
getCliCommand()Get cliCommand.
getExecBlockId()Get execBlockId.
getExecBlockUsingExecBlockId()Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
getMessage()Get message.
getObjectId()Get objectId.
getOrigin()Get origin.
getPriority()Get priority.
getTable()Return the table to which this row belongs.
getTime()Get time.
initFromBinMethods()isAdded()messageFromBin(row, eis)Set the message in row from the EndianInput (eis) instance.
objectIdFromBin(row, eis)Set the objectId in row from the EndianInput (eis) instance.
originFromBin(row, eis)Set the origin in row from the EndianInput (eis) instance.
priorityFromBin(row, eis)Set the priority in row from the EndianInput (eis) instance.
setAppParms(appParms)Set appParms with the specified str value.
setApplication(application)Set application with the specified str value.
setCliCommand(cliCommand)Set cliCommand with the specified str value.
setExecBlockId(execBlockId)Set execBlockId with the specified Tag value.
setFromXML(xmlrow)Fill the values of this row from an XML string that was produced by the toXML() method.
setMessage(message)Set message with the specified str value.
setObjectId(objectId)Set objectId with the specified str value.
setOrigin(origin)Set origin with the specified str value.
setPriority(priority)Set priority with the specified str value.
setTime(time)Set time with the specified ArrayTime value.
timeFromBin(row, eis)Set the time 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
appParmsFromBin(row, eis)[source]¶ Set the appParms in row from the EndianInput (eis) instance.
-
static
applicationFromBin(row, eis)[source]¶ Set the application in row from the EndianInput (eis) instance.
-
static
cliCommandFromBin(row, eis)[source]¶ Set the cliCommand in row from the EndianInput (eis) instance.
-
compareNoAutoInc(execBlockId, time, message, priority, origin, objectId, application, cliCommand, appParms)[source]¶ Compare each attribute except the autoincrementable one of this HistoryRow with the corresponding parameters and return True if there is a match and False otherwise.
-
compareRequiredValue(message, priority, origin, objectId, application, cliCommand, appParms)[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
execBlockIdFromBin(row, eis)[source]¶ Set the execBlockId 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.
-
getExecBlockUsingExecBlockId()[source]¶ Returns the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
-
static
messageFromBin(row, eis)[source]¶ Set the message in row from the EndianInput (eis) instance.
-
static
objectIdFromBin(row, eis)[source]¶ Set the objectId in row from the EndianInput (eis) instance.
-
static
priorityFromBin(row, eis)[source]¶ Set the priority in row from the EndianInput (eis) instance.
-
setAppParms(appParms)[source]¶ Set appParms with the specified str value. appParms The str value to which appParms is to be set.
-
setApplication(application)[source]¶ Set application with the specified str value. application The str value to which application is to be set.
-
setCliCommand(cliCommand)[source]¶ Set cliCommand with the specified str value. cliCommand The str value to which cliCommand is to be set.
-
setExecBlockId(execBlockId)[source]¶ Set execBlockId with the specified Tag value. execBlockId The Tag value to which execBlockId is to be set. The value of execBlockId 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.
-
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.
-
setMessage(message)[source]¶ Set message with the specified str value. message The str value to which message is to be set.
-
setObjectId(objectId)[source]¶ Set objectId with the specified str value. objectId The str value to which objectId is to be set.
-
setOrigin(origin)[source]¶ Set origin with the specified str value. origin The str value to which origin is to be set.
-
setPriority(priority)[source]¶ Set priority with the specified str value. priority The str value to which priority is to be set.
-
setTime(time)[source]¶ Set time with the specified ArrayTime value. time The ArrayTime value to which time is to be set. The value of time can be anything allowed by the ArrayTime 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