Code Examples
A repository of 155 code examples for BeepBeep
customprocessors.CounterSingle Class Reference

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.
 

Detailed Description

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.

Author
Sylvain Hallé Easy

Definition at line 38 of file CounterSingle.java.


The documentation for this class was generated from the following file: