Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
PMC panel. More...
Classes | |
struct | CircuitCreatedEvent |
Event: A new circuit was added. More... | |
struct | CircuitDeletedEvent |
Event: A circuit was deleted. More... | |
struct | PanelSettings |
Panel settings. More... | |
struct | PanelSettingsChangedEvent |
Event: Panel settings have changed. More... | |
Public Types | |
enum | LabelingScheme { SEQUENTIAL , ODD_EVEN } |
Mapping of physical circuit positions (0-based) to logical labels. More... | |
Public Types inherited from pdumodel::PowerMeter | |
enum | Type { ONE_PHASE , SPLIT_PHASE , THREE_PHASE } |
Power meter type. More... | |
Public Member Functions | |
PanelSettings | getPanelSettings () |
Retrieve the panel settings. More... | |
int | setPanelSettings (in PanelSettings settings) |
Change the panel settings. More... | |
map< int, Circuit > | getCircuits () |
Retrieve the list of circuits. More... | |
int | createCircuit (out Circuit circuit, in Circuit::Config config, in Circuit.Settings settings) |
Create a new circuit. More... | |
int | deleteCircuit (in int position) |
Delete a circuit. More... | |
Public Member Functions inherited from pdumodel::PowerMeter | |
Config | getConfig () |
Retrieve the power meter configuration. More... | |
Sensors | getSensors () |
Get the power meter sensors. More... | |
vector< Pole > | getPoles () |
Get the list of power meter poles. More... | |
vector< Controller > | getControllers () |
Get the list of sub controllers for this power meter. More... | |
Settings | getSettings () |
Retrieve the power meter settings. More... | |
int | setSettings (in Settings settings) |
Change the power meter settings. More... | |
EnergyPulseSettings | getEnergyPulseSettings () |
Retrieve the energy LED pulse settings. More... | |
int | setEnergyPulseSettings (in EnergyPulseSettings settings) |
Change the energy LED pulse settings. More... | |
Additional Inherited Members | |
Public Attributes inherited from pdumodel::PowerMeter | |
constant int | ERR_INVALID_PARAM = 1 |
Invalid parameters. More... | |
constant int | ERR_MODBUS_UNIT_IN_USE = 2 |
Modbus unit address is already in use. More... | |
PMC panel.
A panel contains:
int pdumodel::Panel::createCircuit | ( | out Circuit | circuit, |
in Circuit::Config | config, | ||
in Circuit.Settings | settings | ||
) |
Create a new circuit.
circuit | Result: Newly created instance |
config | New circuit config |
settings | New circuit settings |
int pdumodel::Panel::deleteCircuit | ( | in int | position | ) |
Delete a circuit.
position | Position of circuit to be deleted |
map< int, Circuit > pdumodel::Panel::getCircuits | ( | ) |
Retrieve the list of circuits.
PanelSettings pdumodel::Panel::getPanelSettings | ( | ) |
Retrieve the panel settings.
int pdumodel::Panel::setPanelSettings | ( | in PanelSettings | settings | ) |
Change the panel settings.
settings | New panel settings |