edu.columbia.cs.coms4701.agent
Interface Counter

All Superinterfaces:
EnvironmentObject
All Known Implementing Classes:
SimpleCounter

public interface Counter
extends EnvironmentObject

An environment object that supports a simple integer counter. A Counter is used to keep track of iterations of the environment steps.

A simple counter is expected to initialize to zero at construction time, though subinterfaces or implementing classes may choose to offer methods to set or reset the counter to other values.

Version:
0.1

User: aaron Date: Aug 23, 2006 Time: 5:50:01 PM

Author:
aaron@cs

Method Summary
 java.lang.Integer getCount()
          Fetches the current count.
 void incrementCount()
          Increments the count by 1.
 
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive
 

Method Detail

incrementCount

void incrementCount()
Increments the count by 1.


getCount

java.lang.Integer getCount()
Fetches the current count.

Returns:
the current count. Expected to begin at 0.