|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLLNode
AgentNode
Class to implement a linked list of Turtle-like characters. (Maybe "agents"?)
Field Summary |
Fields inherited from class LLNode |
next |
Constructor Summary | |
AgentNode()
Two constructors: One for creating the head of the list , with no agent |
|
AgentNode(Turtle agent)
One constructor for creating a node with an agent |
Method Summary | |
Turtle |
getAgent()
Getter for the turtle |
void |
remove(Turtle myTurtle)
Remove the node where this turtle is found. |
void |
setAgent(Turtle agent)
Setter for the turtle |
String |
toString()
Make a printable form |
Methods inherited from class LLNode |
add, count, getNext, insertAfter, last, remove, reverse, reverse2, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AgentNode()
public AgentNode(Turtle agent)
Method Detail |
public String toString()
public void setAgent(Turtle agent)
public Turtle getAgent()
public void remove(Turtle myTurtle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |