/// <summary> /// Setup the behavior. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="provider">The data provider.</param> public override void Setup(Simulation simulation, SetupDataProvider provider) { base.Setup(simulation, provider); provider.ThrowIfNull(nameof(provider)); // Get parameters _bp = provider.GetParameterSet <BaseParameters>(); // Get behaviors _tran = provider.GetBehavior <TransientBehavior>(); }
/// <summary> /// Bind the behavior. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="context">The data provider.</param> public override void Bind(Simulation simulation, BindingContext context) { base.Bind(simulation, context); // Get parameters _bp = context.GetParameterSet <BaseParameters>(); // Get behaviors _tran = context.GetBehavior <TransientBehavior>(); _method = ((TimeSimulation)simulation).Method; }
/// <summary> /// Setup the behavior. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="provider">The data provider.</param> public override void Setup(Simulation simulation, SetupDataProvider provider) { base.Setup(simulation, provider); if (provider == null) { throw new ArgumentNullException(nameof(simulation)); } // Get parameters _bp = provider.GetParameterSet <BaseParameters>(); // Get behaviors _tran = provider.GetBehavior <TransientBehavior>(); }