org.boxed_economy.besp.container.command
クラス Command

java.lang.Object
  拡張org.boxed_economy.besp.container.command.Command
直系の既知のサブクラス:
FileOpenCommand, FileSaveAsCommand, FileSaveCommand, ImportWorldCommand, LimitedTimeRunCommand, ResetCommand, RunCommand, SetStepNumByEndTimeOfDayCommand, SetStepNumByTimeCommand, SetTimeForStepCommand, StopCommand

public abstract class Command
extends java.lang.Object

BESPにおいて、containerを制御するためのコマンドのスーパークラスです。


コンストラクタの概要
Command(BESPContainer container)
          コンストラクタです。
 
メソッドの概要
 void execute()
          コマンドを実行します
protected  BESPContainer getContainer()
           
protected  ModelContainer getModelContainer()
          コンテナ関連
protected  PresentationContainer getPresentationContainer()
           
protected abstract  void run()
          サブクラスがCommandのアルゴリズムを記述するために、 オーバーライドするメソッドです。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Command

public Command(BESPContainer container)
コンストラクタです。引数にpresentationContainerを与えます。

メソッドの詳細

getModelContainer

protected final ModelContainer getModelContainer()
コンテナ関連


getPresentationContainer

protected final PresentationContainer getPresentationContainer()

getContainer

protected final BESPContainer getContainer()

execute

public final void execute()
                   throws java.lang.Exception
コマンドを実行します

例外:
java.lang.Exception

run

protected abstract void run()
                     throws java.lang.Exception
サブクラスがCommandのアルゴリズムを記述するために、 オーバーライドするメソッドです。

例外:
java.lang.Exception