Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Noise"/> class.
        /// </summary>
        /// <param name="name">The identifier of the simulation.</param>
        /// <param name="output">The output node identifier.</param>
        /// <param name="reference">The reference output node identifier.</param>
        /// <param name="input">The input source identifier.</param>
        /// <param name="frequencySweep">The frequency sweep.</param>
        public Noise(string name, string output, string reference, string input, Sweep <double> frequencySweep) : base(name, frequencySweep)
        {
            Configurations.Add(new NoiseConfiguration(output, reference, input));

            // Add behavior types in the order they are (usually) called
            BehaviorTypes.Add(typeof(INoiseBehavior));
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Noise"/> class.
        /// </summary>
        /// <param name="name">The identifier of the simulation.</param>
        public Noise(string name) : base(name)
        {
            Configurations.Add(new NoiseConfiguration());

            // Add behavior types in the order they are (usually) called
            BehaviorTypes.Add(typeof(INoiseBehavior));
        }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrequencySimulation"/> class.
        /// </summary>
        /// <param name="name">The identifier of the simulation.</param>
        /// <param name="frequencySweep">The frequency sweep.</param>
        protected FrequencySimulation(string name, Sweep <double> frequencySweep) : base(name)
        {
            Configurations.Add(new FrequencyConfiguration(frequencySweep));

            // Add behavior types in the order they are (usually) called
            BehaviorTypes.Add(typeof(IFrequencyBehavior));
        }
Beispiel #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FrequencySimulation"/> class.
        /// </summary>
        /// <param name="name">The identifier of the simulation.</param>
        protected FrequencySimulation(string name) : base(name)
        {
            Configurations.Add(new FrequencyConfiguration());
            FrequencySimulationStatistics = new ComplexSimulationStatistics();
            Statistics.Add(typeof(ComplexSimulationStatistics), FrequencySimulationStatistics);

            // Add behavior types in the order they are (usually) called
            BehaviorTypes.Add(typeof(IFrequencyBehavior));
        }