public abstract class AgentController extends java.lang.Object implements IAgentController
Constructor and Description |
---|
AgentController()
Create a new control
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IAgentController child)
add a child agent control
|
IAgentController |
getParent()
get parent control
|
void |
receiveMessage(AgentCommand message,
IAgentController sender)
receive message from other agents
a) Message from parent:
1.
|
void |
removeCildren(IAgentController child)
remove a child agent control
|
void |
setParent(IAgentController parent)
set parent control
|
abstract boolean |
setupAgent()
is called by create an agent. and setup default values.
|
public abstract boolean setupAgent()
public void addChild(IAgentController child)
child
- agent to add to controlpublic void removeCildren(IAgentController child)
child
- agent to remove from controlpublic IAgentController getParent()
IAgentController
getParent
in interface IAgentController
public void setParent(IAgentController parent)
IAgentController
setParent
in interface IAgentController
parent
- to setpublic void receiveMessage(AgentCommand message, IAgentController sender)
IAgentController
receiveMessage
in interface IAgentController
message
- queue the send to agentssender
- send which send message