Class Model

java.lang.Object
  |
  +--Model

public class Model
extends java.lang.Object


Constructor Summary
Model(int n)
           
 
Method Summary
 void buildObjects()
          Create a List and fill it with N student objects.
 void checkAgain()
           
 void checkAgents()
          Tell the agents to sayHi in various ways.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model(int n)
Method Detail

buildObjects

public void buildObjects()
Create a List and fill it with N student objects.

checkAgents

public void checkAgents()
Tell the agents to sayHi in various ways. This method shows how to create another LinkedList which is a copy of the original. It shows how to shuffle it, how to remove an element by its position in a List, How to get a reference to an object from one list and remove that object by name from the other list. Note the remove method returns a true/false variable, telling whether it found the object you were looking for

checkAgain

public void checkAgain()