コード例 #1
0
 public void reset(DateTime time)
 {
     beginTime = time;
     beginTimeTS = Util.dateTimeToUnixTS(time);
     current = new Candlestick(beginTime, 0.0f, float.MaxValue, 0.0f, 0.0f, 0.0f);
     count = 0;
 }
コード例 #2
0
 public void schreibe(Candlestick daten)
 {
     if (this.table != null && this.inserter != null)
     {
         inserter.schreibe(daten, mutator);
         mutator.Flush();
     }
     else
     {
         throw new System.ArgumentException("Tabelle öffnen und/oder DBInserter setzen!");
     }
 }
コード例 #3
0
 public Candlestick getNextCandlestick()
 {
     Candlestick cs = last;
     last = null;
     return cs;
 }
コード例 #4
0
 public void finalizeCurrent()
 {
     current.mean /= count;
     last = current;
 }
コード例 #5
0
        public void schreibe(Candlestick data, ITableMutator mutator)
        {
            //DateTime ts = data.timestamp;
            //String rowKey = data.titel.name + " " + Util.getAmiDatum();

            //// schreibe kurs
            //Key key = new Key(rowKey, "quote");
            //mutator.Set(key, Encoding.UTF8.GetBytes(data.kurs.ToString()));

            //// schreibe volumen
            //key.ColumnFamily = "volume";
            //mutator.Set(key, Encoding.UTF8.GetBytes(data.volumen.ToString()));
        }