Esempio n. 1
0
 /// <inheritdoc/>
 void IBiasingBehavior.Load()
 {
     if (_state != null)
     {
         _state.Update();
         do
         {
             _state.Solver.Reset();
             LoadBehaviors();
         }while (!_state.Apply());
     }
     else
     {
         LoadBehaviors();
     }
 }
Esempio n. 2
0
 /// <inheritdoc/>
 void IFrequencyBehavior.Load()
 {
     if (_state != null)
     {
         _state.Update();
         do
         {
             _state.IsConvergent = true;
             _state.Solver.Reset();
             foreach (var behavior in Behaviors)
             {
                 behavior.Load();
             }
         }while (!_state.Apply());
     }
     else
     {
         foreach (var behavior in Behaviors)
         {
             behavior.Load();
         }
     }
 }