Ejemplo n.º 1
0
        public override Instrument FromParameters(DetectionSystem parent, string newName, List <Parameter> parameters, uint id)
        {
            DeclarationInstrument instrument = new DeclarationInstrument(parent, newName, id);

            Instrument.ApplyStandardInstrumentParameters(instrument, parameters);
            return(instrument);
        }
Ejemplo n.º 2
0
 public void RemoveDeclarationInstrument()
 {
     if (declarationInstrument != null)
     {
         instruments.Remove(declarationInstrument);
     }
     declarationInstrument = null;
 }
Ejemplo n.º 3
0
 public void SetDeclarationInstrument(DeclarationInstrument inst)
 {
     if (declarationInstrument != null)
     {
         instruments.Remove(declarationInstrument);
     }
     declarationInstrument = inst;
     instruments.Add(inst);
 }
Ejemplo n.º 4
0
        public DetectionSystem(Facility parent, string name, uint id) : base(parent, name, id)
        {
            parent.GetSystems().Add(this);

            instruments           = new List <Instrument>();
            declarationInstrument = null;

            eventGenerators = new List <EventGenerator>();
            events          = new List <Event>();
        }