Table of Contents

Class PowerManager

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

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 : Component, IPowerAttachment
Inheritance
PowerManager
Implements
Inherited Members

Constructors

PowerManager()

Default constructor

public PowerManager()

Fields

In_PowerManagerMsg

The power manager message that can be configured

public PowerManagerMessage In_PowerManagerMsg

Field Value

PowerManagerMessage

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 PowerBus

The bus to connect to

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 PowerStorage[] GetStorageUnits()

Returns

PowerStorage[]

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

OnUpdate(double, double)

Called when the 'Component' should update

protected override void OnUpdate(double time, double step)

Parameters

time double

current time (seconds)

step double

the time step (seconds)