Inheritance diagram for bre20::AfrRule:
Public Member Functions | |
AfrRule (String *sensorname) | |
int | getIndex () |
void | setIndex (int i) |
String * | getName () |
void | setName (String *sensorname) |
void | setAfrKey (LoggerKey *afrkey) |
virtual String * | modifiedFields () |
virtual void | setupRule (Form *frm) |
virtual bool | updateRule (Form *frm) |
virtual bool | executeReplay (String *keys[], Hashtable *vals) |
virtual bool | executeRule (Form *frm)=0 |
Protected Attributes | |
int | index |
String * | name |
LoggerKey * | afrKey |
just use this supplied LoggerKey object to set afr value. |
|
|
|
This function is the same as executeRule() but happens when a log is being replayed. It is necessary for updating gauges when replaying. The text based values are automatically put into their respective places when replaying.
Implements bre20::Rule. |
|
This function is called when a rule needs to be executed. In the context of the Datalogger, it will be called each time the logger gets data back from an ECU. You are passed the Datalogger and will then be able to modify the data from the ecu before its displayed. Additionally if your rule needs to deal with a gauge you must update that gauge in this function.
Implements bre20::Rule. |
|
|
|
|
|
A string that explains what fields you are modifying. see the rule field explanation.
If you only modify one field just return the name of that field. If concatination is necessary, the fields will be separated by colons ( return "rpm:index:tps";
Implements bre20::Rule. |
|
|
|
|
|
|
|
Called the first time the FormWithRules form knows about your rule.
Implements bre20::Rule. |
|
This function is called when a rule needs to be updated. In the context of the Datalogger, it will be called each time the DatalogOptions dialog is opened and closed. You are passed the Datalogger and will update the rule's display as necessary (such as with a change in the units). Additionally if your rule needs to deal with a gauge you must update that gauge in this function. Implements bre20::Rule. |
|
just use this supplied LoggerKey object to set afr value.
|
|
|
|
|