Table of Contents

Class PowerCurrentLimiter

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] A current limiter is able to disable a part of the circuit when the current exceeds a threshold.


public class PowerCurrentLimiter : PowerComponent
Inheritance
PowerCurrentLimiter

Constructors

PowerCurrentLimiter()

Default constructor

protected PowerCurrentLimiter()

Fields

CurrentLimit

The max current limit

[Unit(UnitType.AMPERE)]
[Range(0, 1.7976931348623157E+308)]
public double CurrentLimit

Field Value

double

PreviousCurrent

The previous current if the current was limited

[Unit(UnitType.AMPERE)]
[ReadOnly]
[Metadata(IsAdvanced = true)]
public double PreviousCurrent

Field Value

double

Methods

OnLoad(double)

Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.

protected override void OnLoad(double time)

Parameters

time double

[s] The current clock time of the simulation

OnSave()

Called before the object is saved into the save state. This ensures that any additional metadata can be saved on the object before it is automatically serialized.

protected override void OnSave()

OnUpdate(double, double)

Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.

protected override void OnUpdate(double time, double step)

Parameters

time double

[s] Current time of the simulation before the update

step double

[s] The time-step to update during this tick