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); }
public void RemoveDeclarationInstrument() { if (declarationInstrument != null) { instruments.Remove(declarationInstrument); } declarationInstrument = null; }
public void SetDeclarationInstrument(DeclarationInstrument inst) { if (declarationInstrument != null) { instruments.Remove(declarationInstrument); } declarationInstrument = inst; instruments.Add(inst); }
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>(); }