|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvitro.Model
public abstract class Model
A Model is a representation of the state of a simulation. All models expose a collection of Actors which can inspect and modify the state of the Model through atomic Actions. Any other useful state or meaningful constraints can be expressed by extending this basic class.
Field Summary | |
---|---|
Set<Actor> |
actors
A Collection of the Actors in this Model. |
Constructor Summary | |
---|---|
Model(Set<Actor> actors)
Create a new Model, providing a collection for storing Actors. |
Method Summary | |
---|---|
List<Action> |
cleanup()
This method will be called by the Controller after all Agents have made their decisions for their respective Actors. |
boolean |
done()
Generically determine when this simulation is complete. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Set<Actor> actors
Constructor Detail |
---|
public Model(Set<Actor> actors)
Method Detail |
---|
public boolean done()
public List<Action> cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |