コード例 #1
0
        /// <summary>
        /// Initializes the export.
        /// </summary>
        /// <param name="sender">The object (simulation) sending the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        protected override void Initialize(object sender, EventArgs e)
        {
            var state = Simulation.GetState <IComplexSimulationState>();

            if (Simulation.EntityBehaviors.TryGetBehaviors(Source, out var ebd))
            {
                if (ebd.TryGetValue <IBranchedBehavior <Complex> >(out var behavior))
                {
                    Index     = state.Map[behavior.Branch];
                    Extractor = () => state.Solution[Index];
                }
            }
        }
コード例 #2
0
        /// <summary>
        /// Initializes the export.
        /// </summary>
        /// <param name="sender">The object (simulation) sending the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        protected override void Initialize(object sender, EventArgs e)
        {
            var state = Simulation.GetState <INoiseSimulationState>();

            Extractor = () => state.OutputNoiseDensity * state.Point.Value.InverseGainSquared;
        }
コード例 #3
0
        /// <summary>
        /// Initializes the export.
        /// </summary>
        /// <param name="sender">The object (simulation) sending the event.</param>
        /// <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param>
        protected override void Initialize(object sender, EventArgs e)
        {
            var state = Simulation.GetState <INoiseSimulationState>();

            Extractor = () => state.OutputNoiseDensity;
        }