|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.AgentManager
Agentを管理するためのクラスです。 AgentTypeによってAgentを検索・削除するインターフェースを持ちます。 同じAgentTypeでも異なるインスタンスのAgentを区別して格納します。
コンストラクタの概要 | |
protected |
AgentManager()
|
メソッドの概要 | |
void |
addAgent(Agent newAgent)
Agentを追加します。 |
Agent |
getAgent(AgentType type)
引数のTypeのAgentを返します。 |
java.util.Collection |
getAgents(AgentType type)
引数のTypeのAgentのリストを返します。 |
java.util.List |
getAgentsRecursively(AgentType type)
引数のType及びその子TypeのAgentのリストを返します。 |
java.util.List |
getAllAgents()
全てのAgentの集合を返します。 |
void |
removeAgent(Agent target)
引数に指定したAgentをリストから削除します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected AgentManager()
メソッドの詳細 |
public void addAgent(Agent newAgent)
newAgent
- 追加するAgentpublic void removeAgent(Agent target)
target
- 削除するAgentpublic Agent getAgent(AgentType type)
type
- 指定するAgentType
public java.util.Collection getAgents(AgentType type)
type
- 指定するAgentType
public java.util.List getAgentsRecursively(AgentType type)
type
- 指定するAgentType
public java.util.List getAllAgents()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |