6 #ifndef __PDUMODEL_POWER_METER_CONTROLLER_IDL__
7 #define __PDUMODEL_POWER_METER_CONTROLLER_IDL__
10 #include <UserEvent.idl>
22 constant
int ERR_INVALID_PARAM = 1;
23 constant
int ERR_METER_BOARD_BUSY = 2;
PMC panel.
Definition: Panel.idl:26
Power Meter Controller (PMC) interface.
Definition: PowerMeterController.idl:20
int createPowerMeter(out PowerMeter powerMeter, in PowerMeter::Config config, in PowerMeter::Settings settings)
Create a new standalone power meter (no panel).
int scanMeterBoard(in int powerMeterId, out ScanResult result)
Scan for presence and configuration of a meter board.
int createPanel(out Panel panel, in PowerMeter::Config config, in PowerMeter::Settings powerMeterSettings, in Panel::PanelSettings panelSettings)
Create a new panel.
int deletePowerMeter(in int powerMeterId)
Delete a panel or power meter.
map< int, PowerMeter > getPowerMeters()
Retrieve the list of power meters and panels.
A three-phase power meter (PMC).
Definition: PowerMeter.idl:23
PDU Model.
Definition: Ade.idl:12
Panel settings.
Definition: Panel.idl:37
Event: A panel was created.
Definition: PowerMeterController.idl:56
Panel::PanelSettings panelSettings
New panel settings.
Definition: PowerMeterController.idl:57
Event:: A panel was deleted.
Definition: PowerMeterController.idl:61
Panel::PanelSettings panelSettings
Old panel settings.
Definition: PowerMeterController.idl:62
Event: A power meter or panel was created.
Definition: PowerMeterController.idl:43
PowerMeter powerMeter
New power meter instance.
Definition: PowerMeterController.idl:44
PowerMeter::Settings settings
New power meter settings.
Definition: PowerMeterController.idl:46
PowerMeter::Config config
New power meter config.
Definition: PowerMeterController.idl:45
Event: A power meter was deleted.
Definition: PowerMeterController.idl:50
PowerMeter::Config config
Old power meter config.
Definition: PowerMeterController.idl:51
PowerMeter::Settings settings
Old power meter settings.
Definition: PowerMeterController.idl:52
Meter board scan result.
Definition: PowerMeterController.idl:26
int meterCount
Number of meter channels.
Definition: PowerMeterController.idl:28
boolean present
Meter board was found.
Definition: PowerMeterController.idl:27
Power meter configuration.
Definition: PowerMeter.idl:36
Power meter settings.
Definition: PowerMeter.idl:88