Table of Contents

Class PowerMonitor

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] A power monitor is able to produce metrics from the power system and allow for enabling and disabling of particular component powers.


public class PowerMonitor : UniverseBehaviour
Inheritance
PowerMonitor

Constructors

PowerMonitor()

Default constructor

protected PowerMonitor()

Fields

Out_PowerMonitorMsg

The message with updates about the current system

public PowerMonitorMessage? Out_PowerMonitorMsg

Field Value

PowerMonitorMessage

PowerBus

The connected bus that the monitor is watching

[ReadOnly]
[Metadata(IsAdvanced = true)]
public PowerBus? PowerBus

Field Value

PowerBus

Methods

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

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