|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.BehaviorManager
Agentの持つbehaviorを管理します。(概念的にはエージェントに含まれます。) BehaviorをTypeごとに分類して格納します。(同じタイプの異なるBehaviorObjectも別々に格納します。) behaviorを開始・終了・検索するインターフェースを持ちます。
コンストラクタの概要 | |
protected |
BehaviorManager(Agent agent)
コンストラクタです。 |
メソッドの概要 | |
void |
addBehavior(Behavior behavior)
Behaviorを開始して追加します。 |
java.util.List |
getAllBehaviors()
Returns All Behaviors. |
Behavior |
getBehavior(BehaviorType type)
引数のTypeであるBehaviorを返します。 |
java.util.Collection |
getBehaviors(BehaviorType type)
引数のTypeであるBehaviorをリストとして全て返します。 |
java.util.Collection |
getBehaviorsRecursively(BehaviorType type)
引数のType及びその子タイプであるrelationをリストとして全て返します。 |
Behavior |
receiveOpenChannelEvent(OpenChannelEvent e)
Channelを開設するためにChannelOpenEventを受け取るメソッドです。 |
void |
receiveTimeEvent(TimeEvent e)
TimeEventを受け取るためのメソッドです。 |
void |
removeAllBehaviors()
全てのBehaviorを削除します。 |
void |
removeBehavior(Behavior behavior)
Behaviorを終了して削除します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected BehaviorManager(Agent agent)
メソッドの詳細 |
public void addBehavior(Behavior behavior)
public void removeBehavior(Behavior behavior)
public Behavior getBehavior(BehaviorType type)
type
- 検索対象のType
public java.util.Collection getBehaviors(BehaviorType type)
type
- 検索対象のType
public java.util.Collection getBehaviorsRecursively(BehaviorType type)
type
- 検索対象のType
public java.util.List getAllBehaviors()
public Behavior receiveOpenChannelEvent(OpenChannelEvent e)
e
- Channel開設に必要なChannelOpenEventpublic void receiveTimeEvent(TimeEvent e)
e
- TimeEventpublic void removeAllBehaviors()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |