|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.fmfw.FmFwObject
org.boxed_economy.besp.model.fmfw.Entity
org.boxed_economy.besp.model.fmfw.Goods
Boxed Economy基礎モデルにおいてエージェント間で取引される財を定義します。 例えば品物や貨幣ですが、agentの取引全てを含むものとして声などもgoodsです。 Goodsの属性としては、Type(種類)、Quantity(量),Information(情報)です。 複数の情報をもたせることができるようになりました。 goodsは2重参照を防ぐために特殊な扱いをしていますので、Goodsの扱いには留意してください。 (goodsManagerを参照)goodsは継承することを前提にしていません。 worldのcreateGoods(),consumeGoods()を 使うことによって、生産・消費として明示的にUpdateEventを送ることができます。
入れ子クラスの概要 |
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承した入れ子クラス |
FmFwObject.InstanceCounter |
コンストラクタの概要 | |
protected |
Goods(GoodsType type,
double quantity)
通常使われるコンストラクタです。 |
メソッドの概要 | |
protected void |
finalize()
|
Information |
getAttachment()
Returns the attachment. |
Information |
getAttachmentKey()
|
GoodsQuantity |
getGoodsQuantity()
GoodsQuantityを返します |
GoodsType |
getType()
GoodsTypeを返します |
boolean |
hasAttachment()
Returns if the goods has the attachment information. |
void |
setAttachment(Information attachment)
Sets the attachment. |
void |
setAttachment(InformationType key,
Information attachment)
Sets the attachment. |
java.lang.String |
toString()
タイプのオブジェクト名とクラス名を文字列で返します. |
クラス org.boxed_economy.besp.model.fmfw.Entity から継承したメソッド |
getInformation, getInformation, getInformations, getWorld, hasInformation, putInformation, putInformation, removeInformation, setInformations, setWorld |
クラス org.boxed_economy.besp.model.fmfw.FmFwObject から継承したメソッド |
getInstanceCounters |
クラス java.lang.Object から継承したメソッド |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
protected Goods(GoodsType type, double quantity)
type
- Goodsの種類quantity
- Goodsの量メソッドの詳細 |
public GoodsType getType()
public GoodsQuantity getGoodsQuantity()
public Information getAttachment()
public void setAttachment(Information attachment)
attachment
- The attachment to setpublic void setAttachment(InformationType key, Information attachment)
attachment
- The attachment to setpublic boolean hasAttachment()
public Information getAttachmentKey()
public java.lang.String toString()
protected void finalize() throws java.lang.Throwable
FmFwObject
内の finalize
java.lang.Throwable
Object.finalize()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |