Counters are external objects that can be created by the toolkit
using XML definition files, which are stored outside of the system. Counters
created from external definitions through ElementFactory are static and you
need to declare them at installation or configuration time. Besides using
external definition files to create counters, you can also dynamically create
counters during the runtime of the application.
Following is an example
of a counter declaration in the XML file:
<com.ibm.btt.bc.counter.Counter id="counterTest"
incraseMaxLimit="10000" totalMaxLimit="100000"
increaseTimesMaxLimit="100">
</com.ibm.btt.bc.counter.Counter>
Each counter consists of
a total field (called total), an increase field (called increase), and an
increase times field (called totIncrs).