Class PowerSource
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
A power source is a component that can be added to the power bus system and is able to provide power that can charge up a storage unit, such as a battery.
public class PowerSource : PhysicalComponent, IPowerAttachment
- Inheritance
-
PowerSource
- Implements
- Derived
- Inherited Members
Constructors
PowerSource()
Default constructor
public PowerSource()
Fields
Out_PowerSourceMsg
The power source message containing the current information of the storage unit
public PowerSourceMessage Out_PowerSourceMsg
Field Value
Properties
IsActive
[-] A flag for if the source is currently active
[EditableVariable("-", false, "", "")]
public bool IsActive { get; set; }
Property Value
NominalVoltage
[V] The desired voltage that is produced from this source
[EditableVariable("V", 0, false, "", "")]
public double NominalVoltage { get; set; }
Property Value
Out_PowerNodeMsg
The power node message that contains the information about the power node
public PowerNodeMessage? Out_PowerNodeMsg { get; }
Property Value
Power
[W] Current power being produced in Watts
[EditableVariable("W", 0, false, "", "")]
public double Power { get; set; }
Property Value
Methods
OnBegin(double)
Called when the 'Component' is beginning
protected override void OnBegin(double time)
Parameters
time
doublecurrent time (seconds)
OnReset(double)
Called when the 'Component' is reset from a simulation
protected override void OnReset(double time)
Parameters
time
doublereset time (seconds)