public interface ObservableAgent extends Agent
ObservableAgent
defines the interface with the basic functionality needed to be able to be observed by an
AgentObserver
.Agent.Status
Modifier and Type | Method and Description |
---|---|
void |
addObserver(AgentObserver observer)
Used to add an
AgentObserver to the list of observers of this instance. |
void |
removeObserver(AgentObserver observer)
Used to remove an
AgentObserver from the list of observers of this instance. |
getAgentId, getStatus, setContext
void addObserver(AgentObserver observer)
AgentObserver
to the list of observers of this instance.observer
- the new AgentObserver
.void removeObserver(AgentObserver observer)
AgentObserver
from the list of observers of this instance.observer
- the AgentObserver
that will be removed.