| Constructor and Description |
|---|
CompositeAgent(Agent... agents) |
CompositeAgent(java.util.List<? extends Agent> agents) |
| Modifier and Type | Method and Description |
|---|---|
int |
doWork()
An agent should implement this method to do its work.
|
void |
onClose()
To be overridden by Agents that need to do resource cleanup on close.
|
java.lang.String |
roleName()
Get the name of this agent's role.
|
public CompositeAgent(java.util.List<? extends Agent> agents)
agents - the parts of this composite, at least one agent and no null agents allowedjava.lang.IllegalArgumentException - if an empty array of agents is providedjava.lang.NullPointerException - if the array or any element is nullpublic CompositeAgent(Agent... agents)
agents - the parts of this composite, at least one agent and no null agents allowedjava.lang.IllegalArgumentException - if an empty array of agents is providedjava.lang.NullPointerException - if the array or any element is nullpublic int doWork()
throws java.lang.Exception
Agentpublic void onClose()
AgentCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.