Class PowerManager
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] The power manager is able to manipulate a connected EPS bus based on some inputs from a message. This can be connected to a software or user interface to adjust manual properties of the circuit.
public class PowerManager : UniverseBehaviour
- Inheritance
-
PowerManager
Constructors
PowerManager()
Default constructor
protected PowerManager()
Fields
Out_PowerManagerMsg
The power manager message that can be configured
public PowerManagerMessage? Out_PowerManagerMsg
Field Value
PowerBus
The connected bus that the monitor is watching
[ReadOnly]
[Metadata(IsAdvanced = true)]
public PowerBus? PowerBus
Field Value
Methods
GetSourceUnits()
Returns an array of all source units connected to the current Power Bus on the circuit.
public PowerSource[] GetSourceUnits()
Returns
- PowerSource[]
A list of all source units attached
GetStorageUnits()
Returns an array of all storage units connected to the current Power Bus on the circuit.
public Battery[] GetStorageUnits()
Returns
- Battery[]
A list of all storage units attached
GetSwitches()
Returns an array of all switches connected to the current Power Bus on the circuit.
public PowerSwitch[] GetSwitches()
Returns
- PowerSwitch[]
A list of all switches attached
OnCreate()
Called when the object is created from the controller and has been attached to the parent object. By this point, it has been registered to the simulation and will run after the constructor.
protected override void OnCreate()
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)