|
||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||
See:
Description
Here we have an application that creates a Model, which acts as a manager of a simulation. The Test class, where main is located, is where you should look for the code that does that. The Model's constructor needs a number input to set the number of agents in the model.
The
Please note, In the checkAgents method, I show 2 ways of traversing through a collection using the Iterator. This is a vital component of Java collections and everybody must master it.
|
||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||