/// <summary>
        /// Setup behavior
        /// </summary>
        /// <param name="simulation">Simulation</param>
        /// <param name="provider">Data provider</param>
        public override void Setup(Simulation simulation, SetupDataProvider provider)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }

            // Get parameters
            _bp  = provider.GetParameterSet <BaseParameters>();
            _mbp = provider.GetParameterSet <ModelBaseParameters>("model");

            // Get behaviors
            _modeltemp = provider.GetBehavior <ModelTemperatureBehavior>("model");
        }
Example #2
0
        /// <summary>
        /// Setup behavior
        /// </summary>
        /// <param name="provider">Data provider</param>
        public override void Setup(SetupDataProvider provider)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }

            // Get parameters
            _bp  = provider.GetParameterSet <BaseParameters>("entity");
            _mbp = provider.GetParameterSet <ModelBaseParameters>("model");
            _mnp = provider.GetParameterSet <ModelNoiseParameters>("model");

            // Get behaviors
            _temp      = provider.GetBehavior <TemperatureBehavior>("entity");
            _load      = provider.GetBehavior <LoadBehavior>("entity");
            _modeltemp = provider.GetBehavior <ModelTemperatureBehavior>("model");
        }
Example #3
0
        /// <summary>
        /// Setup behavior
        /// </summary>
        /// <param name="provider"></param>
        public override void Setup(SetupDataProvider provider)
        {
            if (provider == null)
            {
                throw new ArgumentNullException(nameof(provider));
            }

            // Get parameters
            _bp  = provider.GetParameterSet <BaseParameters>("entity");
            _mbp = provider.GetParameterSet <ModelBaseParameters>("model");

            // Get behaviors
            _temp      = provider.GetBehavior <TemperatureBehavior>("entity");
            _modeltemp = provider.GetBehavior <ModelTemperatureBehavior>("model");

            // Initialize some variable
            SaturationVoltageDs = 0;
            Von  = 0;
            Mode = 1;
        }