|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.RelationManager
エージェントの持つrelationを管理するrelationManagerを定義します。 (概念的にはエージェントに含まれます。) relationをTypeで追加・削除・検索するインターフェースを持ちます。 同じRelationTypeでも異なるインスタンスのRelationを区別して格納します。
コンストラクタの概要 | |
protected |
RelationManager(Agent agent)
|
メソッドの概要 | |
void |
addRelation(Relation relation)
Relationを追加します。 |
java.util.List |
getAllRelations()
Method getAllRelations. |
Relation |
getRelation(RelationType type)
引数のTypeであるRelationを返します。 |
Relation |
getRelation(RelationType type,
Agent agent)
引数のType、かつ関係先が引数のAgentであるRelationを返します 存在しない場合、Exceptionを投げます |
java.util.Collection |
getRelations(RelationType type)
引数のTypeであるrelationをリストとして全て返します。 |
java.util.Collection |
getRelationsRecursively(RelationType type)
引数のType及びそのTypeの子のTypeである全てのrelationを返します。 |
java.util.Collection |
getRelationTypes()
このRelaitonManagerの持つRelationのTypeを返します。 |
void |
removeRelation(Relation relation)
引数のRelationを削除します。 |
java.util.Collection |
removeRelations(RelationType type)
引数のTypeのRelation全てを削除します。 |
void |
removeRelationsByAgent(Agent agent)
引数のAgentへのRelationを削除します。 |
java.util.Collection |
removeRelationsRecursively(RelationType type)
引数のType及びその子TypeのRelation全てを削除します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected RelationManager(Agent agent)
メソッドの詳細 |
public void addRelation(Relation relation)
relation
- 追加するRelationpublic void removeRelation(Relation relation)
relation
- 削除対象のRelationpublic java.util.Collection removeRelations(RelationType type)
type
- 削除対象のTypepublic void removeRelationsByAgent(Agent agent)
agent
- 削除対象のRelationの先のAgentpublic java.util.Collection removeRelationsRecursively(RelationType type)
type
- 削除対象のTypepublic java.util.Collection getRelationTypes()
public Relation getRelation(RelationType type)
type
- 検索対象のType
public Relation getRelation(RelationType type, Agent agent)
public java.util.Collection getRelations(RelationType type)
type
- 検索対象のType
public java.util.Collection getRelationsRecursively(RelationType type)
type
- 検索対象のType
public java.util.List getAllRelations()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |