Class PowerMonitor
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
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 : Component, IPowerAttachment
- Inheritance
-
PowerMonitor
- Implements
- Inherited Members
Constructors
PowerMonitor()
Default constructor
public PowerMonitor()
Fields
Out_PowerMonitorMsg
The message with updates about the current system
public PowerMonitorMessage Out_PowerMonitorMsg
Field Value
Methods
Connect(PowerBus)
Connects to a particular power bus and is able to start returning data from it.
public void Connect(PowerBus bus)
Parameters
bus
PowerBusThe bus to connect to
OnDecodeMetadata(JObject)
Called after the "Component" was loaded to handle additional metadata.
protected override void OnDecodeMetadata(JObject metadata)
Parameters
metadata
JObject
OnEncodeMetadata(JObject)
Called while the "Component" is being saved to save additional metadata.
protected override JObject OnEncodeMetadata(JObject metadata)
Parameters
metadata
JObject
Returns
- JObject
OnUpdate(double, double)
Called when the 'Component' should update
protected override void OnUpdate(double time, double step)