Packagejp.co.fujitsu.reffi.client.flex.manager
Classpublic class TimerProcessCoreManager

[概 要]

TimerとTimerProcessCoreをIDで管理するマネージャクラスです.

[詳 細]

インターバル管理Timerと、タイマーイベントハンドリングを行うTimerProcessCoreを 任意のIDで対応管理します。

[備 考]

Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.



Public Properties
 PropertyDefined by
  timers : Dictionary

[概 要]

TimerとTimerProcessCoreの対応マッププロパティです.
TimerProcessCoreManager
Public Methods
 MethodDefined by
  
TimerProcessCoreManager(blocker:TimerBlocker)

[概 要]

コンストラクタです.
TimerProcessCoreManager
  
[static]

[概 要]

タイマーマネージャインスタンスを取得します.
TimerProcessCoreManager
  
isRegist(timerId:String):Boolean

[概 要]

引数timerIdが現在登録されているか確認します.
TimerProcessCoreManager
  
isRunning(timerId:String):Boolean

[概 要]

引数timerIdが現在実行中であるか確認します.
TimerProcessCoreManager
  
start(timerId:String, timerCore:TimerProcessCore):void

[概 要]

タイマーを開始します.
TimerProcessCoreManager
  
stop(timerId:String):void

[概 要]

タイマーを終了します.
TimerProcessCoreManager
Property detail
timersproperty
timers:Dictionary  [read-write]

[概 要]

TimerとTimerProcessCoreの対応マッププロパティです.

[詳 細]

以下のような構造を持つプロパティです。
   timers:Dictionary
       "timerId1" = timerMap:Dictionary
                       "timer" = Timer
                       "core" = TimerCore
       "timerId2" = timerMap:Dictionary
                       "timer" = Timer
                       "core" = TimerCore
   

[備 考]

既に実行中のタイマーと同じtimerIdを付けることは出来ません。

実装
    public function get timers():Dictionary
    public function set timers(value:Dictionary):void

Constructor detail
TimerProcessCoreManager()constructor
public function TimerProcessCoreManager(blocker:TimerBlocker)

[概 要]

コンストラクタです.

[詳 細]

本クラスはシングルトンクラスのため外部からの呼び出しは行えません。

[備 考]

TimerProcessCoreManagerのインスタンスを取得する場合は、getInstance()を使用してください。

パラメータ

blocker:TimerBlocker — シングルトン生成用ブロックインスタンス

関連項目

Method detail
getInstance()method
public static function getInstance():TimerProcessCoreManager

[概 要]

タイマーマネージャインスタンスを取得します.

[詳 細]

シングルトンタイマーマネージャインスタンスを取得して返却します。

[備 考]

戻り値
TimerProcessCoreManager — タイマーマネージャインスタンス
isRegist()method 
public function isRegist(timerId:String):Boolean

[概 要]

引数timerIdが現在登録されているか確認します.

[詳 細]

timersタイマー管理プロパティから、引数timerIdが登録されているかを調べます。

[備 考]

パラメータ
timerId:String — 登録されているか調べる識別子

戻り値
Boolean — 登録されている場合はtrue、それ以外はfalse
isRunning()method 
public function isRunning(timerId:String):Boolean

[概 要]

引数timerIdが現在実行中であるか確認します.

[詳 細]

timersタイマー管理プロパティから、引数timerIdに対応するタイマーを取得し、 Timer#runningプロパティを返却します。
timerIdに対応するTimerが登録されていない場合はfalseを返却します。

[備 考]

パラメータ
timerId:String — 登録されているか調べる識別子

戻り値
Boolean — 登録されている場合はtrue、それ以外はfalse
start()method 
public function start(timerId:String, timerCore:TimerProcessCore):void

[概 要]

タイマーを開始します.

[詳 細]

[備 考]

パラメータ
timerId:String — 開始するタイマーの識別子
 
timerCore:TimerProcessCore — 開始するTimerProcessCore
stop()method 
public function stop(timerId:String):void

[概 要]

タイマーを終了します.

[詳 細]

[備 考]

パラメータ
timerId:String — 終了するタイマーの識別子