|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.FmFwObject
org.boxed_economy.besp.model.fmfw.Relation
Boxed Economyにおけるagent間の静的な関連性を定義します。 この種類はRelationTypeによって定義されます。 goodsを送るために動的なChannelを生成することができます。 (生成されたChannelはRelationに保持されます。) relationは方向を持ち、relationStartとrelationEndのagentを保持します。
入れ子クラスの概要 |
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承した入れ子クラス |
FmFwObject.InstanceCounter |
コンストラクタの概要 | |
protected |
Relation(RelationType type,
Agent source,
Agent target)
コンストラクタです。 |
メソッドの概要 | |
protected void |
fireChanneClosed(UpdateRelationEvent e)
|
protected void |
fireChanneOpened(UpdateRelationEvent e)
|
Agent |
getSource()
このrelationを持っているagentを返します。 |
Agent |
getTarget()
このrelationが指しているagentを返します。 |
RelationType |
getType()
このRelationのTypeを返します。 |
boolean |
openChannel(Behavior openBehavior,
BehaviorType targetBehaviorType)
Channelを開設するためのメソッドです。 |
boolean |
openChannel(Behavior openBehavior,
BehaviorType targetBehaviorType,
boolean keepChannel)
Channelを開設するためのメソッドです。 |
protected void |
removeChannel(Channel channel)
Channelを閉じます。 |
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承したメソッド |
finalize, getInstanceCounters |
クラス java.lang.Object から継承したメソッド |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected Relation(RelationType type, Agent source, Agent target)
type
- RelationのTypesource
- 関係元Agenttarget
- 関係先Agentメソッドの詳細 |
public RelationType getType()
public Agent getSource()
public Agent getTarget()
public boolean openChannel(Behavior openBehavior, BehaviorType targetBehaviorType)
openBehavior
- Channelを開設するBehavior
public boolean openChannel(Behavior openBehavior, BehaviorType targetBehaviorType, boolean keepChannel)
openBehavior
- Channelを開設するBehaviorkeepChannel
- 開設されたChannelを保存するかの真偽
protected void removeChannel(Channel channel)
channel
- 閉じるChannelprotected void fireChanneOpened(UpdateRelationEvent e)
protected void fireChanneClosed(UpdateRelationEvent e)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |