Esempio n. 1
0
 public void _KillObserver(cessna_digital_twin.Observer target, int executionFrequency = 1)
 {
     target._isAlive = false;
     _ObserverEnvironment.Remove(target);
     _Unregister(this, target, target._executionFrequency);
     _ObserverAgents.Remove(target.ID);
 }
Esempio n. 2
0
        public cessna_digital_twin.Observer _SpawnObserver(double xcor = 0, double ycor = 0, int freq = 1)
        {
            var id    = System.Guid.NewGuid();
            var agent = new cessna_digital_twin.Observer(id, this, _Register, _Unregister,
                                                         _ObserverEnvironment,
                                                         default(int),
                                                         default(int)
                                                         , xcor, ycor, freq);

            _ObserverAgents.Add(id, agent);
            return(agent);
        }