|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Counter
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.
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 |
---|
void incrementCount()
java.lang.Integer getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |