Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
pdumodel::Panel Interface Reference

PMC panel. More...

Inheritance diagram for pdumodel::Panel:
pdumodel::PowerMeter

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, CircuitgetCircuits ()
 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< PolegetPoles ()
 Get the list of power meter poles. More...
 
vector< ControllergetControllers ()
 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...
 

Detailed Description

PMC panel.

A panel contains:

Definition at line 26 of file Panel.idl.

Member Enumeration Documentation

◆ LabelingScheme

Mapping of physical circuit positions (0-based) to logical labels.

Enumerator
SEQUENTIAL 

Circuit positions 0..2 are labeled 1, 2 and 3.

ODD_EVEN 

Circuit positions 0..2 are labeled 1, 3 and 5 (two columns)

Definition at line 31 of file Panel.idl.

Member Function Documentation

◆ createCircuit()

int pdumodel::Panel::createCircuit ( out Circuit  circuit,
in Circuit::Config  config,
in Circuit.Settings  settings 
)

Create a new circuit.

Parameters
circuitResult: Newly created instance
configNew circuit config
settingsNew circuit settings
Returns
0 if OK
1 if the circuit config or settings are invalid

◆ deleteCircuit()

int pdumodel::Panel::deleteCircuit ( in int  position)

Delete a circuit.

Parameters
positionPosition of circuit to be deleted
Returns
0 if OK
1 if the circuit position is invalid

◆ getCircuits()

map< int, Circuit > pdumodel::Panel::getCircuits ( )

Retrieve the list of circuits.

Returns
Configured circuits by position

◆ getPanelSettings()

PanelSettings pdumodel::Panel::getPanelSettings ( )

Retrieve the panel settings.

Returns
Panel settings

◆ setPanelSettings()

int pdumodel::Panel::setPanelSettings ( in PanelSettings  settings)

Change the panel settings.

Parameters
settingsNew panel settings
Returns
0 if OK
1 if any parameters are invalid

The documentation for this interface was generated from the following file: