|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object LLNode AgentNode
public class AgentNode
Class to implement a linked list of Turtle-like characters. (Maybe "agents"?)
Constructor Summary | |
---|---|
AgentNode()
A constructor that takes no arguments |
|
AgentNode(Turtle agent)
A constuctor that takes an agent |
Method Summary | |
---|---|
Turtle |
getAgent()
Method to get the agent (the turtle) |
void |
remove(Turtle myTurtle)
Remove the node where the passed turtle is found. |
void |
setAgent(Turtle agent)
Method to set the agent turtle |
String |
toString()
Method to return an information string |
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()
toString
in class Object
public void setAgent(Turtle agent)
agent
- the agent to usepublic Turtle getAgent()
public void remove(Turtle myTurtle)
myTurtle
- the turtle to remove
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |