Code Examples
A repository of 155 code examples for BeepBeep
|
Compute data about the execution of a hybrid car engine. More...
Static Public Member Functions | |
static void | main (String[] args) throws FileNotFoundException |
Compute data about the execution of a hybrid car engine.
In this example, sensors collect data about the execution of a car engine, such as electrical power remaining, fuel remaining, speed and distance travelled. The execution of the engine is broken down into extended periods of time called "cycles", identified in the input data by a cycle number.
The processor chain in this example computes, for each cycle, the recovery rate. This corresponds to the sum of all datapoints in each cycle where electrical power is negative. The chain of processors that performs this computation can be illustrated as follows:
Definition at line 65 of file Engine.java.