/// <summary> /// Bind the behavior. /// </summary> /// <param name="simulation">The simulation.</param> /// <param name="context">Data provider</param> public override void Bind(Simulation simulation, BindingContext context) { base.Bind(simulation, context); // Get parameters _bp = context.GetParameterSet <CommonBehaviors.IndependentSourceParameters>(); }
/// <summary> /// Setup the behavior /// </summary> /// <param name="simulation">Simulation</param> /// <param name="provider">Data provider</param> public override void Setup(Simulation simulation, SetupDataProvider provider) { base.Setup(simulation, provider); provider.ThrowIfNull(nameof(provider)); // Get parameters _bp = provider.GetParameterSet <CommonBehaviors.IndependentSourceParameters>(); }