![]() |
Code Examples
A repository of 155 code examples for BeepBeep
|
This processor simply generates the trace of numbers 0, 1, 2, ... More...
Public Member Functions | |
CounterSingle | duplicate (boolean with_state) |
void | reset () |
Static Public Member Functions | |
static void | main (String[] args) |
Protected Member Functions | |
boolean | compute (Object[] inputs, Queue< Object[]> outputs) |
Protected Attributes | |
int | m_counterValue |
The variable that will keep the current value of the counter. | |
This processor simply generates the trace of numbers 0, 1, 2, ...
This is one of two possible ways of writing such a counter: by creating an instance of SynchronousProcessor with a purpose-built compute()
method. Another way is illustrated by the CounterGroup class.
Definition at line 38 of file CounterSingle.java.