|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Model
The Model class has methods that build objects and it also tells them to do things. Please note the use of both Lists and Sets here. For each student, it creates a set of "contacts" that serves an important role in the Student class.
Constructor Summary | |
Model(int n)
|
Method Summary | |
void |
buildObjects()
Create a List and fill it with N student objects. |
void |
checkAgents()
Tell the agents to sayHi |
void |
runTheSimulation(int n)
We want to repeatedly process the list of agents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Model(int n)
Method Detail |
public void buildObjects()
public void checkAgents()
public void runTheSimulation(int n)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |