|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.ModelContainer
モデルコンテナーです。 モデルを設定・更新するメソッドを持ちます。また、モデルスレッドを保持します。
フィールドの概要 | |
static int |
PRIORITY_DEFAULT
定数 |
コンストラクタの概要 | |
ModelContainer(BESPContainer container)
Constructor for ModelContainer. |
メソッドの概要 | |
void |
addModelContainerListener(ModelContainerListener l)
|
protected void |
firePrepareWorldClose(ModelContainerEvent e)
|
protected void |
firePrepareWorldOpen(ModelContainerEvent e)
|
protected void |
fireWorldClosed(ModelContainerEvent e)
|
protected void |
fireWorldOpened(ModelContainerEvent e)
|
AgentType |
getAgentType(java.lang.String key)
キーに該当するAgentTypeを取得します。 |
java.util.Collection |
getAgentTypes()
全てのAgentTypeを返します。 |
BehaviorType |
getBehaviorType(java.lang.String key)
キーに該当するBehaviorTypeを取得します。 |
java.util.Collection |
getBehaviorTypes()
全てのBehaviorTypeを返します。 |
BESPContainer |
getContainer()
container関連 |
java.io.File |
getFile()
File関連 |
GoodsType |
getGoodsType(java.lang.String key)
キーに該当するGoodsTypeを取得します。 |
java.util.Collection |
getGoodsTypes()
全てのGoodsTypeを返します。 |
InformationType |
getInformationType(java.lang.String key)
キーに該当するInformationTypeを取得します。 |
java.util.Collection |
getInformationTypes()
全てのInformationTypeを返します。 |
LimitedTimeRunSetting |
getLimitedTimeRunSetting()
このthreadに現在設定されている実行設定を返します。 |
World |
getModel()
世界関連 |
ModelThread |
getModelThread()
thread関連 |
java.util.List |
getOrderdPriorities()
降順に整列されたプライオリティーのリストを返します |
PresentationContainer |
getPresentationContainer()
|
int |
getPriority(AgentType agentType)
引数のAgentTypeに対応するPriorityを返します。 |
RelationType |
getRelationType(java.lang.String key)
キーに該当するRelationTypeを取得します。 |
java.util.Collection |
getRelationTypes()
全てのRelationTypeを返します。 |
void |
initialize()
初期化を行ないます。 |
AgentType |
installAgentType(java.lang.String name)
AgentTypeを生成して返します。 |
AgentType |
installAgentType(java.lang.String name,
int priority)
AgentTypeを生成して返します。 |
BehaviorType |
installBehaviorType(java.lang.String name)
BehaviorTypeを生成して返します。 |
GoodsType |
installGoodsType(java.lang.String name)
GoodsTypeを生成して返します。 |
InformationType |
installInformationType(java.lang.String name)
InformationTypeを生成して返します。 |
RelationType |
installRelationType(java.lang.String name)
RelationTypeを生成して返します。 |
void |
removeModelContainerListener(ModelContainerListener l)
|
void |
setFile(java.io.File file)
modelの出力を、boxFileを指定して行ないます。 |
void |
setLimitedRunSetting(LimitedTimeRunSetting setting)
このClockに実行設定を設定します。 |
void |
setModel(World model)
|
void |
setPriority(AgentType agentType,
int priority)
Priorityを追加設定します。 |
void |
terminate()
終了処理を行ないます。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int PRIORITY_DEFAULT
コンストラクタの詳細 |
public ModelContainer(BESPContainer container)
メソッドの詳細 |
public void initialize()
public void terminate()
public BESPContainer getContainer()
public PresentationContainer getPresentationContainer()
public World getModel()
public void setModel(World model)
public java.io.File getFile()
public void setFile(java.io.File file)
public ModelThread getModelThread()
public LimitedTimeRunSetting getLimitedTimeRunSetting()
public void setLimitedRunSetting(LimitedTimeRunSetting setting)
public AgentType getAgentType(java.lang.String key)
key
- 検索するキー文字列public BehaviorType getBehaviorType(java.lang.String key)
key
- 検索するキー文字列public GoodsType getGoodsType(java.lang.String key)
key
- 検索するキー文字列public InformationType getInformationType(java.lang.String key)
key
- 検索するキー文字列public RelationType getRelationType(java.lang.String key)
key
- 検索するキー文字列public java.util.Collection getAgentTypes()
public java.util.Collection getBehaviorTypes()
public java.util.Collection getGoodsTypes()
public java.util.Collection getInformationTypes()
public java.util.Collection getRelationTypes()
public AgentType installAgentType(java.lang.String name)
name
- 生成するTypeの名前
public AgentType installAgentType(java.lang.String name, int priority)
name
- 生成するTypeの名前
public GoodsType installGoodsType(java.lang.String name)
name
- 生成するTypeの名前
public BehaviorType installBehaviorType(java.lang.String name)
name
- 生成するTypeの名前
public RelationType installRelationType(java.lang.String name)
name
- 生成するTypeの名前
public InformationType installInformationType(java.lang.String name)
name
- 生成するTypeの名前
public int getPriority(AgentType agentType)
agentType
- 取得したいPriorityのType
public void setPriority(AgentType agentType, int priority)
agentType
- 関連付けるTypepublic java.util.List getOrderdPriorities()
public void addModelContainerListener(ModelContainerListener l)
public void removeModelContainerListener(ModelContainerListener l)
protected void firePrepareWorldOpen(ModelContainerEvent e)
protected void fireWorldOpened(ModelContainerEvent e)
protected void firePrepareWorldClose(ModelContainerEvent e)
protected void fireWorldClosed(ModelContainerEvent e)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |