jasi.sim.basic.id
Class Counter

java.lang.Object
  extended by jasi.sim.basic.id.Counter
All Implemented Interfaces:
java.io.Serializable

public final class Counter
extends java.lang.Object
implements java.io.Serializable

Counter for IDs.

See Also:
Serialized Form

Constructor Summary
Counter()
          Constructor for Counter.
 
Method Summary
 Id getValue()
          Returns the value of this counter.
 Id next()
          Get the next ID from counter.
 void setValue(Id value)
          Sets the value of this counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Constructor for Counter.

Method Detail

next

public Id next()
Get the next ID from counter.

Returns:
The next ID.

getValue

public Id getValue()
Returns the value of this counter.

Returns:
The actual value

setValue

public void setValue(Id value)
Sets the value of this counter.

Parameters:
value - The value to set