bre20::DynoRule Class Reference

tab page with a grid More...

Inheritance diagram for bre20::DynoRule:

bre20::Rule List of all members.

Public Member Functions

 DynoRule ()
virtual void RecalculateRun (int runIndex)
virtual void RecalculateAllRuns ()
virtual void addFile (String *fname)
virtual void setupRule (LogFileReader *rd)
virtual bool executeRule (LogFileReader *rd)
virtual void setupRule (Form *frm)
virtual void finishRule (Form *frm)
virtual bool executeRule (Form *frm)
virtual bool updateRule (Form *frm)
virtual bool executeReplay (String *keys[], Hashtable *values)
virtual String * modifiedFields ()
virtual DynoPagegetDynoPage ()

Protected Attributes

__int64 lasttime
float lastitem __gc []
Form * ana
DynoPagegraph
bool isSetup
bool fromAnalyzer
IgnoreRule * mintps
DynoCalculationcalcs
ArrayList * curData
DynoRun * curRun

Detailed Description

tab page with a grid


Constructor & Destructor Documentation

bre20::DynoRule::DynoRule  ) 
 


Member Function Documentation

void bre20::DynoRule::addFile String *  fname  )  [virtual]
 

bool bre20::DynoRule::executeReplay String *  keys[],
Hashtable *  values
[virtual]
 

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.

Parameters:
keys The labels from the log file.
values has values from the file mapped to each key.
Returns:
true if executed properly

Implements bre20::Rule.

bool bre20::DynoRule::executeRule Form *  frm  )  [virtual]
 

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.

Parameters:
frm The form you will be given to grab values from or act on
Returns:
true if it executed properly, false if otherwise

Implements bre20::Rule.

bool bre20::DynoRule::executeRule LogFileReader rd  )  [virtual]
 

void bre20::DynoRule::finishRule Form *  frm  )  [virtual]
 

Called after all the execute functions have been called.

Reimplemented from bre20::Rule.

virtual DynoPage* bre20::DynoRule::getDynoPage  )  [virtual]
 

virtual String* bre20::DynoRule::modifiedFields  )  [virtual]
 

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 ( : ). i.e.

                return "rpm:index:tps";

Returns:
A string that explains what fields you are modifying.

Implements bre20::Rule.

void bre20::DynoRule::RecalculateAllRuns  )  [virtual]
 

void bre20::DynoRule::RecalculateRun int  runIndex  )  [virtual]
 

void bre20::DynoRule::setupRule Form *  frm  )  [virtual]
 

else

Implements bre20::Rule.

void bre20::DynoRule::setupRule LogFileReader rd  )  [virtual]
 

bool bre20::DynoRule::updateRule Form *  frm  )  [virtual]
 

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.


Member Data Documentation

float lastitem bre20::DynoRule::__gc[] [protected]
 

Form* bre20::DynoRule::ana [protected]
 

DynoCalculation* bre20::DynoRule::calcs [protected]
 

ArrayList* bre20::DynoRule::curData [protected]
 

DynoRun* bre20::DynoRule::curRun [protected]
 

bool bre20::DynoRule::fromAnalyzer [protected]
 

DynoPage* bre20::DynoRule::graph [protected]
 

bool bre20::DynoRule::isSetup [protected]
 

__int64 bre20::DynoRule::lasttime [protected]
 

IgnoreRule* bre20::DynoRule::mintps [protected]
 




BRE Documentation Home