|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.boxed_economy.besp.model.ModelThread
Worldに配置されたClock、Agentに対しTimeEventを発信することでモデルを駆動するクラスです。
フィールドの概要 | |
static int |
RUNNING
|
protected java.util.Vector |
simulationStateListeners
状態イベント配信関連 |
static int |
STOPPED
|
static int |
STOPPING
|
コンストラクタの概要 | |
ModelThread(ModelContainer modelContainer)
コンストラクタです。 |
メソッドの概要 | |
void |
addSimulationStateListener(SimulationStateListener l)
|
void |
deliverTimeEvent(World world)
TimeEventをClockとAgentに対して配信するメソッドです。 |
protected void |
firePresentationComponentStarted(SimulationStateEvent e)
|
protected void |
firePresentationComponentStopped(SimulationStateEvent e)
|
protected void |
firePresentationComponentStopping(SimulationStateEvent e)
|
long |
getEventDispatchInterval()
eventDispatchIntervalを返します。 |
protected LimitedTimeRunSetting |
getLimitedRunSetting()
現在設定されている実行設定を返します。 |
int |
getState()
現在の状態を取得します |
void |
removeSimulationStateListener(SimulationStateListener l)
|
void |
run()
run() Runnable interfaceの実装です。 |
void |
setEventDispatchInterval(long interval)
配信間隔を変更します。 |
protected void |
setLimitedRunSetting(LimitedTimeRunSetting setting)
実行設定を設定します。 |
void |
start()
Threadをスタートさせ、シミュレーションを進めます stopメソッドが呼ばれるまで、シミュレーションを動かしつづけます。 |
void |
start(long step)
引数で指定した回数だけシミュレーション実行を行ないます。 |
void |
stop()
シミュレーション(イベントの配信)を停止します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int STOPPED
public static final int STOPPING
public static final int RUNNING
protected java.util.Vector simulationStateListeners
コンストラクタの詳細 |
public ModelThread(ModelContainer modelContainer)
メソッドの詳細 |
public int getState()
public void start() throws java.lang.Exception
java.lang.Exception
public void start(long step) throws java.lang.Exception
step
- 実行する回数
java.lang.Exception
public void stop()
public void run()
java.lang.Runnable
内の run
protected LimitedTimeRunSetting getLimitedRunSetting()
protected void setLimitedRunSetting(LimitedTimeRunSetting setting)
public void deliverTimeEvent(World world)
public long getEventDispatchInterval()
public void setEventDispatchInterval(long interval)
public void addSimulationStateListener(SimulationStateListener l)
public void removeSimulationStateListener(SimulationStateListener l)
protected void firePresentationComponentStarted(SimulationStateEvent e)
protected void firePresentationComponentStopping(SimulationStateEvent e)
protected void firePresentationComponentStopped(SimulationStateEvent e)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |