| Package | org.libspark.thread.threads.progression |
| Class | public class ThreadCommand |
| Inheritance | ThreadCommand jp.progression.core.commands.Command |
コマンドの実行が開始されると、コンストラクタで指定されたスレッドの実行を開始し、 スレッドの実行が終了するとコマンドの実行も終了します。
このコマンドに対して割り込みを掛けると、スレッドの interrupt メソッドを呼び出した上で スレッドの終了を待ちます。
スレッド内で例外が発生した場合はコマンドエラーとなります。
| Method | Defined by | ||
|---|---|---|---|
|
ThreadCommand(t:Thread, initObject:Object = null)
新しい ThreadCommand クラスのインスタンスを作成します. Create a new instance of the ThreadCommand class. | ThreadCommand | ||
|
clone():Command
この ThreadCommand インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します. Create a copy of this instance of the ThreadCommand and set each properties to same as original. | ThreadCommand | ||
| ThreadCommand | () | constructor |
public function ThreadCommand(t:Thread, initObject:Object = null)
新しい ThreadCommand クラスのインスタンスを作成します.
Create a new instance of the ThreadCommand class.
Parameterst:Thread — 実行するスレッド A Thread will be execute |
|
initObject:Object (default = null) — 設定したいプロパティを含んだオブジェクト A object contains properties |
| clone | () | method |
public override function clone():Command
この ThreadCommand インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します.
Create a copy of this instance of the ThreadCommand and set each properties to same as original.
ReturnsCommand — この ThreadCommand インスタンスのコピー A copy of this instance of the ThreadCommand |