コード例 #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);
        }
コード例 #2
0
ファイル: DetectionSystem.cs プロジェクト: lanl/Omniscient
 public void RemoveDeclarationInstrument()
 {
     if (declarationInstrument != null)
     {
         instruments.Remove(declarationInstrument);
     }
     declarationInstrument = null;
 }
コード例 #3
0
ファイル: DetectionSystem.cs プロジェクト: lanl/Omniscient
 public void SetDeclarationInstrument(DeclarationInstrument inst)
 {
     if (declarationInstrument != null)
     {
         instruments.Remove(declarationInstrument);
     }
     declarationInstrument = inst;
     instruments.Add(inst);
 }
コード例 #4
0
ファイル: DetectionSystem.cs プロジェクト: lanl/Omniscient
        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>();
        }