Overview
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
F
G
I
M
N
O
P
R
S
T
_
A
activateIn(Swarm)
- Method in class
Model
Describe
activateIn
method here.
activateIn(Swarm)
- Method in class
Observer
B
buildActions()
- Method in class
Model
We want to repeatedly process the list of agents.
buildActions()
- Method in class
Observer
buildObjects()
- Method in class
Model
Create a List and fill it with N student objects.
buildObjects()
- Method in class
Observer
C
checkAgents()
- Method in class
Model
Tell the agents to sayHi
checkFingerprint(Fingerprint)
- Method in class
Student
Find out if fingerprint of suspect is in records.
checkForCrime()
- Method in class
Model
Randomly designate some student as the criminal, give his fingerprint to a policeman, and tell the policeman to conduct the investigation.
D
displayActions
- Variable in class
Observer
ActionGroup for sequence of GUI events
displayFrequency
- Variable in class
Observer
update frequency for graphs
displaySchedule
- Variable in class
Observer
the single Schedule instance
drop()
- Method in class
Observer
F
Fingerprint
- class
Fingerprint
.
Here, a fingerprint is just a random number.
Fingerprint(double)
- Constructor for class
Fingerprint
G
getFingerprint()
- Method in class
Student
Return the fingerprint object
getName()
- Method in class
Student
Return the student's name string
getSomeData()
- Method in class
Student
getStudentList()
- Method in class
Model
go()
- Method in class
Model
A go method is needed because we need to run the activity structure that was created in buildActions() and put into the time scheme by activateIn().
I
investigateCrime(Fingerprint)
- Method in class
Policeman
Oh, heck, there's a crime! and the fingerprint is x.
M
main(String[])
- Static method in class
Test
main
is a required method, all Java programs must have it.
Model
- class
Model
.
The Model class has methods that build objects and it also tells them to do things.
Model(Zone, int)
- Constructor for class
Model
Creates a new
Model
instance.
modelSwarm
- Variable in class
Observer
the Swarm we're observing
N
nOfAgents
- Variable in class
Observer
O
Observer
- class
Observer
.
Observer(Zone, int)
- Constructor for class
Observer
P
Policeman
- class
Policeman
.
When a crime occurs, a Policeman instance is created.
Policeman(LinkedList)
- Constructor for class
Policeman
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().
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
.
The Student class is a basic type of this model.
Student(String)
- Constructor for class
Student
Create a student and tell it its name.
studentGraph
- Variable in class
Observer
T
Test
- class
Test
.
Describe class
Test
here.
Test()
- Constructor for class
Test
_
_studentGraphDeath_(Object)
- Method in class
Observer
_update_()
- Method in class
Observer
A
B
C
D
F
G
I
M
N
O
P
R
S
T
_
Overview
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES