Overview
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
B
C
G
M
R
S
T
B
buildObjects()
- Method in class
Model
Create a List and fill it with N student objects.
C
checkAgents()
- Method in class
Model
Tell the agents to sayHi
G
getName()
- Method in class
Student
Return the student's name string
M
main(String[])
- Static method in class
Test
Model
- class
Model
.
The Model class has methods that build objects and it also tells them to do things.
Model(int)
- Constructor for class
Model
R
receiveMessage(Student, String)
- Method in class
Student
The Student object receives a message from "obj" and the content of the message is a String s Note I'm inconsistent here in setting a precise type for obj in this method, whereas I used Object in sayHiTo().
runTheSimulation(int)
- Method in class
Model
We want to repeatedly process the list of agents.
S
sayHi()
- Method in class
Student
This is a diagnostic method.
sayHiTo(Object)
- Method in class
Student
The student is supposed to send a message to the target Object.
setContactList(HashSet)
- Method in class
Student
step()
- Method in class
Student
Student
- class
Student
.
Student(String)
- Constructor for class
Student
Create a student and tell it its name
T
Test
- class
Test
.
Test()
- Constructor for class
Test
B
C
G
M
R
S
T
Overview
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES