Class PowerFuse
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
A power fuse is able to flick a switch, disabling a circuit when a current exceeds a threshold.
public class PowerFuse : PowerComponent, IPowerAttachment
- Inheritance
-
PowerFuse
- Implements
- Inherited Members
Constructors
PowerFuse()
Default constructor
public PowerFuse()
Fields
CurrentThreshold
[A] The threshold of the fuse
[EditableVariable("A", 0, false, "", "")]
public double CurrentThreshold
Field Value
ResetDuration
[s] The time taken to reset the fuse after it is blown. If 0.0 then the fuse cannot be reset.
[EditableVariable("s", 0, false, "", "")]
public double ResetDuration
Field Value
ThresholdDuration
[s] The time required for the current to exceed the threshold to blow the fuse.
[EditableVariable("s", 0, false, "", "")]
public double ThresholdDuration
Field Value
Properties
IsFuseBlown
[-] A flag if the fuse was blown
[EditableVariable("-", true, "", "")]
public bool IsFuseBlown { get; }
Property Value
Methods
OnUpdate(double, double)
Called when the 'Component' should update
protected override void OnUpdate(double time, double step)
Parameters
Reset()
Resets the blown fuse back to its original state, closing off the circuit.
public void Reset()