public class Agent extends Message
Constructor and Description |
---|
Agent(int maxsteps,
Node node)
Creates an Agent.
|
Modifier and Type | Method and Description |
---|---|
void |
eventSync()
Syncs event data with the current node.
|
Node |
getLastNode()
Returns the agents last node
|
boolean |
move()
Move the Query one step.
|
void |
update(Node node)
Sets the message handle for the Query.
|
public Agent(int maxsteps, Node node) throws java.lang.IllegalArgumentException
maxsteps
- the Agent can go and node, wherejava.lang.IllegalArgumentException
- if input is invalid.