Here we want to explain step-by-step the design of a trivial Fesa class. In code fragments shown in this step-by-step tutorial, the class is called HBrTrivial. But any other name works too. We start by defining, what the class should do (always a good starting point):
The class will return as data a random value according to v = offset + random() % range - range / 2.
The values for offset and range are settable fields of the class.
The class will return as status the time since the start or last reset.
The class can be reset, i.e. the time counter set to 0.
The class will acquire data and status using the internal periodic timer.
As of 2009-03-18 there are problems with external timing under Fesa version 2.10. As we do not use external timing in this trivial class, it should run under 2.10 as well as under 2.9.