|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.ftcontroller.Counter
public class Counter
Class to handle the eight impulse counters (at ports I1..I8).
Each time a connected switch changes its state (closed/opened), the counter
value is increased by 1.
To clear all counters use FtController.clearAllCounters().
FtController
Method Summary | |
---|---|
Counter |
clearCount()
Sets the current count to 0. |
int |
getCount()
Polls the counter and returns its current count. |
Counter |
setCount(int count)
Sets the current count. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getCount()
public Counter clearCount()
public Counter setCount(int count)
count
- the new current count
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |