Exemplo n.º 1
0
        override public void Start()
        {
            base.Start();

            _estimated_time_left = DateTime.UtcNow.AddSeconds(1);
            SimpleTimer.Enqueue(Finished, null, 1000, 0);

            BH.Subscribe(this, null);
            _bs = new BroadcastSender(Forwarder as StructuredNode, Forwarders);
            _bs.Send(Simulator.SimBroadcastPType);
        }
Exemplo n.º 2
0
        protected void Finished(object o)
        {
            if (_estimated_time_left > DateTime.UtcNow)
            {
                SimpleTimer.Enqueue(Finished, null, 1000, 0);
                return;
            }

            BH.Unsubscribe(this);
            Finished();
        }