org.boxed_economy.besp.presentation
インタフェース PresentationComponent

すべてのスーパーインタフェース:
UpdateEventDeliverer
既知のサブインタフェースの一覧:
GUIComponent
既知の実装クラスの一覧:
AbstractFrameComponent, AbstractInternalFrameComponent, AbstractPresentationComponent

public interface PresentationComponent
extends UpdateEventDeliverer

PresentationComponent PresentationComponentが各種のEventを受け取るためのインターフェースを 定義します。PresentationComponentはこのインターフェースを実装してください。 defaultとして、基礎モデルフレームワークに定義されているmodelUpdateEventReceivedイベント および、containerに定義されているイベントのリスナーのためのインターフェースを持ちます。 PresentationComponentを読み込んだ後は必ず最初にpresentationContainerを設定してください。

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

メソッドの概要
 PresentationContainer getPresentationContainer()
          presentationContainerを取得します。
 World getWorld()
          modelを返します。
 void initialize()
          このコンポーネントの初期化処理を記述するメソッドです。
 void setPresentationContainer(PresentationContainer presentationContainer)
          presentationContainerを設定します。
 void terminate()
          このプレゼンテーションコンポーネントを終了します。
 
インタフェース org.boxed_economy.besp.presentation.UpdateEventDeliverer から継承したメソッド
addTradeListener, addUpdateAgentListener, addUpdateBehaviorListener, addUpdateChannelListener, addUpdateClockListener, addUpdateInformationListener, addUpdateRelationListener, addUpdateStepListener, addUpdateWorldListener, removeTradeListener, removeUpdateAgentListener, removeUpdateBehaviorListener, removeUpdateChannelListener, removeUpdateClockListener, removeUpdateInformationListener, removeUpdateRelationListener, removeUpdateStepListener, removeUpdateWorldListener
 

メソッドの詳細

getPresentationContainer

public PresentationContainer getPresentationContainer()
presentationContainerを取得します。

戻り値:
このPresentationComponentの配置されているpresentationContainer

setPresentationContainer

public void setPresentationContainer(PresentationContainer presentationContainer)
presentationContainerを設定します。


getWorld

public World getWorld()
modelを返します。

戻り値:
現在modelContainerに設定されているWorld

initialize

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


terminate

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