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;
Power Meter Controller (PMC) interface.
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).
Event: A panel was created.
Panel::PanelSettings panelSettings
New panel settings.
Event:: A panel was deleted.
Panel::PanelSettings panelSettings
Old panel settings.
Event: A power meter or panel was created.
PowerMeter powerMeter
New power meter instance.
PowerMeter::Settings settings
New power meter settings.
PowerMeter::Config config
New power meter config.
Event: A power meter was deleted.
PowerMeter::Config config
Old power meter config.
PowerMeter::Settings settings
Old power meter settings.
int meterCount
Number of meter channels.
boolean present
Meter board was found.
Power meter configuration.