/// <summary> /// Setup the behavior /// </summary> /// <param name="provider">Data provider</param> public override void Setup(SetupDataProvider provider) { if (provider == null) { throw new ArgumentNullException(nameof(provider)); } // Get parameters _temp = provider.GetBehavior <TemperatureBehavior>("entity"); }
/// <summary> /// Setup the 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 behaviors _temp = provider.GetBehavior <TemperatureBehavior>(); }