|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
edu.columbia.cs.coms4701.agent.environments.simple.SimpleCounter
public class SimpleCounter
A simple counter implementation.
Field Summary |
---|
Fields inherited from class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject |
---|
changeSupport |
Constructor Summary | |
---|---|
SimpleCounter()
|
Method Summary | |
---|---|
java.lang.Integer |
getCount()
Fetches the current count. |
void |
incrementCount()
Increments the counter by 1. |
protected void |
setCount(java.lang.Integer newCount)
Sets the counter to a new value. |
java.lang.String |
toString()
|
Methods inherited from class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject |
---|
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive |
Constructor Detail |
---|
public SimpleCounter()
Method Detail |
---|
public void incrementCount()
incrementCount
in interface Counter
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Integer getCount()
getCount
in interface Counter
protected void setCount(java.lang.Integer newCount)
newCount
- the new value of the counter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |