org.boxed_economy.components.control
クラス ControlManager

java.lang.Object
  拡張org.boxed_economy.besp.presentation.AbstractPresentationComponent
      拡張org.boxed_economy.components.control.ControlManager
すべての実装インタフェース:
java.util.EventListener, ModelContainerListener, PresentationComponent, SimulationStateListener, UpdateEventDeliverer

public class ControlManager
extends AbstractPresentationComponent
implements SimulationStateListener, ModelContainerListener

制御をつかさどる制御マネージャです

バージョン:
$Id: ControlManager.java,v 1.1 2004/03/21 12:07:50 macchan Exp $
作成者:
macchan

フィールドの概要
 ActionGroup controlGroup
           
 Menu controlMenu
          メニュー関連
 Action resetAction
           
static java.util.ResourceBundle resource
           
 Action runAction
           
 Action showControlPanelAction
           
 ActionGroup showControlPanelGroup
           
 Action stepRunAction
           
 Action stopAction
           
 
コンストラクタの概要
ControlManager()
          Constructor for ControlManager.
 
メソッドの概要
 ControlPanel getControlPanel()
          Returns the controlPanel.
 void initialize()
          このコンポーネントの初期化処理を記述するメソッドです。
 void prepareWorldClose(ModelContainerEvent ev)
          現在のモデルが破棄される直前に呼ばれます
 void prepareWorldOpen(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化される前のタイミングで呼ばれます
 void simulationStarted(SimulationStateEvent ev)
          シミュレーションが開始されたことを通知します
 void simulationStopped(SimulationStateEvent ev)
          シミュレーションが停止されたことを通知します
 void simulationStopping(SimulationStateEvent ev)
          シミュレーションが停止処理にはいったことを通知します
 void terminate()
          このプレゼンテーションコンポーネントを終了します。
 void worldClosed(ModelContainerEvent ev)
          現在のモデルが破棄された直後に呼ばれます
 void worldOpened(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化された後のタイミングで呼ばれます
 
クラス org.boxed_economy.besp.presentation.AbstractPresentationComponent から継承したメソッド
addTradeListener, addUpdateAgentListener, addUpdateBehaviorListener, addUpdateChannelListener, addUpdateClockListener, addUpdateInformationListener, addUpdateRelationListener, addUpdateStepListener, addUpdateWorldListener, getPresentationContainer, getWorld, removeTradeListener, removeUpdateAgentListener, removeUpdateBehaviorListener, removeUpdateChannelListener, removeUpdateClockListener, removeUpdateInformationListener, removeUpdateRelationListener, removeUpdateStepListener, removeUpdateWorldListener, setPresentationContainer
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

resource

public static java.util.ResourceBundle resource

controlMenu

public Menu controlMenu
メニュー関連


controlGroup

public ActionGroup controlGroup

runAction

public Action runAction

stopAction

public Action stopAction

stepRunAction

public Action stepRunAction

resetAction

public Action resetAction

showControlPanelGroup

public ActionGroup showControlPanelGroup

showControlPanelAction

public Action showControlPanelAction
コンストラクタの詳細

ControlManager

public ControlManager()
Constructor for ControlManager.

メソッドの詳細

initialize

public void initialize()
インタフェース PresentationComponent の記述:
このコンポーネントの初期化処理を記述するメソッドです。 プレゼンテーションコンポーネントがコンテナーに追加された後に呼ばれます。

定義:
インタフェース PresentationComponent 内の initialize
関連項目:
org.boxed_economy.besp.presentation.fw.PresentationComponent#initialize()

terminate

public void terminate()
インタフェース PresentationComponent の記述:
このプレゼンテーションコンポーネントを終了します。 コンテナーのremoveメソッドから呼ばれます。(modelが存在していれば、 先にcloseWorldが呼ばれます。)

定義:
インタフェース PresentationComponent 内の terminate
関連項目:
org.boxed_economy.besp.presentation.fw.PresentationComponent#terminate()

getControlPanel

public ControlPanel getControlPanel()
Returns the controlPanel.

戻り値:
ControlPanel

simulationStarted

public void simulationStarted(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが開始されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStarted
関連項目:
SimulationStateListener.simulationStarted(SimulationStateEvent)

simulationStopping

public void simulationStopping(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止処理にはいったことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopping
関連項目:
SimulationStateListener.simulationStopping(SimulationStateEvent)

simulationStopped

public void simulationStopped(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopped
関連項目:
SimulationStateListener.simulationStopped(SimulationStateEvent)

prepareWorldOpen

public void prepareWorldOpen(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化される前のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldOpen
関連項目:
ModelContainerListener.prepareWorldOpen(ModelContainerEvent)

worldOpened

public void worldOpened(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化された後のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の worldOpened
関連項目:
ModelContainerListener.worldOpened(ModelContainerEvent)

prepareWorldClose

public void prepareWorldClose(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄される直前に呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldClose
関連項目:
ModelContainerListener.prepareWorldClose(ModelContainerEvent)

worldClosed

public void worldClosed(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄された直後に呼ばれます

定義:
インタフェース ModelContainerListener 内の worldClosed
関連項目:
ModelContainerListener.worldClosed(ModelContainerEvent)