Sha256: db6b21899c77c352b8666e297e16218727b62387962528ff265bb23db371ee3b

Contents?: true

Size: 922 Bytes

Versions: 17

Compression:

Stored size: 922 Bytes

Contents

package fx.chart.model {
  
  import fx.chart.model.*;
  import fx.util.*;
  
  /**
   * データ
   */
  public class TimedData {
    
    private var datas:Array;
    private var dateMap:Object;
    
    /**
     * コンストラクタ
     */
    public function TimedData(datas:Array, scaleTime:int, timeData:*):void {
      this.datas = datas;
      dateMap = {};
      datas.forEach( function( item:*, index:int, arr:Array ):void {
        var time:Number = int(item[timeData]/scaleTime)*scaleTime;
        dateMap[time] = item;
      } );
    }
    
    /**
     * 日時に対応する取引データを得る。見つからない場合null
     */
    public function getDataByDate( time:Number ):Array {
      return dateMap[time];
    }
    
    /**
     * データを配列で取得する
     */
    public function getDatas( ):Array {
      return datas;
    }
  }
}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
unageanu-jiji-0.1.0 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.0.0 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.0.1 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.0.2 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.0.3 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.1.0 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.1.1 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.1.2 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.1.3 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.1.4 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.2.1 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.2.3 swf/chart/fx/chart/model/TimedData.as
unageanu-jiji-1.2.4 swf/chart/fx/chart/model/TimedData.as
jiji-1.2.8 swf/chart/fx/chart/model/TimedData.as
jiji-1.2.7 swf/chart/fx/chart/model/TimedData.as
jiji-1.2.6 swf/chart/fx/chart/model/TimedData.as
jiji-1.2.5 swf/chart/fx/chart/model/TimedData.as