Class ExternalPowerSource
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] The external power source provides a constant power without changing at a particular wattage.
public class ExternalPowerSource : PowerSource, IPowerInterface
- Inheritance
-
ExternalPowerSource
- Implements
Constructors
ExternalPowerSource()
Default constructor
protected ExternalPowerSource()
Fields
Wattage
The constant power supplied by the external source
[Unit(UnitType.WATT)]
[Range(0, 1.7976931348623157E+308)]
public double Wattage
Field Value
Methods
OnBegin(double)
Called when the object is beginning ticking for the first time. This is when the simulation calls the very first tick and will run before the update call.
protected override void OnBegin(double time)
Parameters
time
double[s] Current time of the simulation before the tick
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)