Table of Contents

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

PowerManagerMessage

PowerBus

The connected bus that the monitor is watching

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

Field Value

PowerBus

Methods

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)

Parameters

time double

[s] Current time of the simulation before the update

step double

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