public class Agent extends CommunicativeAgent implements BehaviorController
Constructor and Description |
---|
Agent() |
Modifier and Type | Method and Description |
---|---|
void |
addBehavior(Behavior behavior)
Add a behavior to the agent controller.
|
Timestamp |
call()
Returns the next timestamp when this agent needs to be scheduled for execution.
|
boolean |
hasTerminated()
Indicates whether this processes has terminated.
|
void |
removeBehavior(Behavior behavior)
Remove a behavior from the agent controller.
|
generateUniqueIdentifier, getAddress, hasMessages, hasMessages, receive, receive, send
currentTime, getAttribute, getIdentifier, hasAttribute, hasIdentifier, setAttributes, setup
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateUniqueIdentifier, getAddress, hasMessages, hasMessages, receive, receive, send
hasMessages
currentTime
public void addBehavior(Behavior behavior)
BehaviorController
addBehavior
in interface BehaviorController
behavior
- the behavior to be addedpublic void removeBehavior(Behavior behavior)
BehaviorController
removeBehavior
in interface BehaviorController
behavior
- the behavior to be removedpublic Timestamp call()
Timestamp.MAX
.public boolean hasTerminated()
Process
Process.call()
.hasTerminated
in interface Process
true
if the process has terminated, false
otherwise.Copyright © Aimpulse Intelligent Systems GmbH
All rights reserved.