Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Biasing" /> class.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
        public Biasing(SubcircuitBindingContext context)
            : base(context)
        {
            var parameters = context.GetParameterSet <Parameters>();
            var parent     = context.GetState <IBiasingSimulationState>();

            if (parameters.LocalSolver)
            {
                _state = new LocalSimulationState(Name, parent, new SparseRealSolver());
                context.AddLocalState <IBiasingSimulationState>(_state);
            }
            else
            {
                context.AddLocalState <IBiasingSimulationState>(new FlatSimulationState(Name, parent, context.Bridges));
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="EntitiesBehavior"/> class.
 /// </summary>
 /// <param name="context"></param>
 public EntitiesBehavior(SubcircuitBindingContext context)
     : base(context)
 {
     _context = context;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Temperature" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
 public Temperature(SubcircuitBindingContext context)
     : base(context)
 {
 }
Beispiel #4
0
 /// <inheritdoc />
 public override void FetchBehaviors(SubcircuitBindingContext context)
 {
     base.FetchBehaviors(context);
     _behaviors = context.GetBehaviors <ITimeBehavior>();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Time"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public Time(SubcircuitBindingContext context)
     : base(context)
 {
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BiasingUpdate" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
 public BiasingUpdate(SubcircuitBindingContext context)
     : base(context)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrequencyUpdate" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
 public FrequencyUpdate(SubcircuitBindingContext context)
     : base(context)
 {
 }
Beispiel #8
0
 /// <inheritdoc/>
 public override void FetchBehaviors(SubcircuitBindingContext context)
 {
     base.FetchBehaviors(context);
     _convergenceBehaviors = context.GetBehaviors <IConvergenceBehavior>();
     _state?.Initialize(context.Bridges);
 }
Beispiel #9
0
 /// <inheritdoc/>
 public override void FetchBehaviors(SubcircuitBindingContext context)
 {
     base.FetchBehaviors(context);
     _state?.Initialize(context.Bridges);
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Accept" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
 public Accept(SubcircuitBindingContext context)
     : base(context)
 {
 }
 /// <inheritdoc/>
 public virtual void FetchBehaviors(SubcircuitBindingContext context)
 {
     Behaviors = context.GetBehaviors <B>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SubcircuitBehavior{B}" /> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <exception cref="ArgumentNullException">Thrown if <paramref name="context"/> is <c>null</c>.</exception>
 protected SubcircuitBehavior(SubcircuitBindingContext context)
     : base(context)
 {
 }