Example #1
0
 private Cycle(Cycle fromCycle)
 {
     Sequence  = fromCycle.Sequence;
     _throttle = fromCycle._throttle;
     NextCycle = this;
     CycleKey  = fromCycle.CycleKey;
 }
Example #2
0
        public Cycle(FrameSequence sequence, double throttleTime, string cycleKey)
        {
            Sequence     = sequence;
            ThrottleTime = throttleTime;
            NextCycle    = this;
            CycleKey     = cycleKey;

            if (Cycle._cycles.ContainsKey(cycleKey))
            {
                Cycle._cycles[cycleKey] = this;
            }
            else
            {
                Cycle._cycles.Add(cycleKey, this);
            }
        }