Raritan EMX JSON-RPC API
Outlet.idl
1 #ifndef __PDUMODEL_OUTLET_IDL__
2 #define __PDUMODEL_OUTLET_IDL__
3 
4 #include <Nameplate.idl>
5 #include <NumericSensor.idl>
6 #include <StateSensor.idl>
7 #include <Pole.idl>
8 #include <Inlet.idl>
9 #include <OverCurrentProtector.idl>
10 #include <Controller.idl>
11 
15 module pdumodel {
16 
18  structure OutletStatistic {
21  };
22 
24  interface Outlet_2_0_0 extends EDevice {
25 
26  constant int ERR_OUTLET_NOT_SWITCHABLE = 1;
27  constant int ERR_LOAD_SHEDDING_ACTIVE = 2;
28  constant int ERR_OUTLET_DISABLED = 3;
29  constant int ERR_OUTLET_NOT_OFF = 4;
30 
31  constant int ERR_INVALID_PARAM = 1;
32 
34  structure MetaData {
35  string label;
36  string receptacleType;
39  boolean isSwitchable;
40  boolean isLatching;
42  };
43 
45  enumeration PowerState {
47  PS_ON
48  };
49 
51  structure LedState {
52  boolean red;
53  boolean green;
54  boolean blinking;
55  };
56 
58  structure State {
59  boolean available;
61  boolean switchOnInProgress;
64  boolean cycleInProgress;
66  LedState ledState;
69  };
70 
72  enumeration StartupState {
76  SS_PDUDEF
77  };
78 
80  structure Settings {
81  string name;
83  boolean usePduCycleDelay;
84  int cycleDelay;
85  boolean nonCritical;
87  };
88 
90  structure Sensors {
106  };
107 
109  valueobject PowerControlEvent extends event.UserEvent {
110  PowerState state;
111  boolean cycle;
112  };
113 
115  valueobject StateChangedEvent extends idl.Event {
116  State oldState;
118  };
119 
121  valueobject SettingsChangedEvent extends event.UserEvent {
122  Settings oldSettings;
124  };
125 
131  MetaData getMetaData();
132 
138  Sensors getSensors();
139 
145  State getState();
146 
157  int setPowerState(in PowerState pstate);
158 
167  int cyclePowerState();
168 
174  Settings getSettings();
175 
184  int setSettings(in Settings settings);
185 
193  void getIOP(out Inlet_2_0_0 i, out OverCurrentProtector_3_0_0 o, out vector<Pole_4_0_0> p);
194 
200  Controller_3_0_0 getController();
201 
215  int unstick();
216  };
217 
218 }
219 
220 #endif
boolean cycle
Whether the outlet was cycled.
Definition: Outlet.idl:111
boolean isLatching
true if the outlet is able to keep its state after power loss
Definition: Outlet.idl:40
boolean red
true if the red LED is enabled
Definition: Outlet.idl:52
Slave controller interface.
Definition: Controller.idl:21
Numerical usage ratings.
Definition: Nameplate.idl:10
sensors::NumericSensor_4_0_1 activeEnergy
Active energy sensor.
Definition: Outlet.idl:101
A sensor with numeric readings.
Definition: NumericSensor.idl:12
Outlet settings
Definition: Outlet.idl:80
Last known power state will be restored.
Definition: Outlet.idl:75
Switch off / Power is off.
Definition: Outlet.idl:46
Sensor with discrete readings.
Definition: StateSensor.idl:35
sensors::NumericSensor_4_0_1 maximumCurrent
Maximum current sensor.
Definition: Outlet.idl:94
sensors::StateSensor_4_0_1 outletState
Outlet power state sensor
Definition: Outlet.idl:105
int relayFailCnt
Relay failure count.
Definition: Outlet.idl:20
sensors::NumericSensor_4_0_1 activePower
Active power sensor.
Definition: Outlet.idl:96
Outlet sensors
Definition: Outlet.idl:90
Outlet metadata
Definition: Outlet.idl:34
Common base interface for any kind of electrical device that is used in the PDU model, such as inlets, OCPs and outlets.
Definition: EDevice.idl:19
Outlet interface
Definition: Outlet.idl:24
sensors::NumericSensor_4_0_1 powerFactor
Power factor sensor.
Definition: Outlet.idl:99
boolean isSwitchable
true if the outlet is switchable
Definition: Outlet.idl:39
string label
Outlet label
Definition: Outlet.idl:35
sensors::NumericSensor_4_0_1 reactivePower
Reactive power sensor.
Definition: Outlet.idl:97
boolean green
true if the green LED is enabled
Definition: Outlet.idl:53
PowerState
Outlet power state.
Definition: Outlet.idl:45
boolean usePduCycleDelay
true to use power-cycle delay as defined in PDU settings
Definition: Outlet.idl:83
PowerState powerState
Current power state of outlet (represented by the control state of the relay, which was set by the la...
Definition: Outlet.idl:60
Basic IDL definitions.
Definition: Event.idl:6
sensors::NumericSensor_4_0_1 lineFrequency
AC line frequency sensor.
Definition: Outlet.idl:104
Outlet will be switched on
Definition: Outlet.idl:73
Component nameplate information.
Definition: Nameplate.idl:17
string receptacleType
Receptacle type.
Definition: Outlet.idl:36
Outlet LED state
Definition: Outlet.idl:51
Overcurrent protector interface.
Definition: OverCurrentProtector.idl:21
sensors::NumericSensor_4_0_1 current
RMS current sensor.
Definition: Outlet.idl:92
int cycleDelay
Outlet-specific power-cycle delay
Definition: Outlet.idl:84
sensors::NumericSensor_4_0_1 phaseAngle
Phase angle sensor.
Definition: Outlet.idl:103
Outlet statistics
Definition: Outlet.idl:18
sensors::NumericSensor_4_0_1 unbalancedCurrent
Current unbalance sensor.
Definition: Outlet.idl:95
sensors::NumericSensor_4_0_1 displacementPowerFactor
Displacement power factor sensor.
Definition: Outlet.idl:100
Settings newSettings
Settings after change.
Definition: Outlet.idl:123
sensors::NumericSensor_4_0_1 voltage
RMS voltage sensor.
Definition: Outlet.idl:91
sensors::NumericSensor_4_0_1 apparentPower
Apparent power sensor.
Definition: Outlet.idl:98
StartupState startupState
Power state on device startup.
Definition: Outlet.idl:82
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
PDU Model.
Definition: Ade.idl:7
time lastPowerStateChange
Time of last power state change.
Definition: Outlet.idl:68
StartupState
Outlet power state on device startup
Definition: Outlet.idl:72
State newState
State after change.
Definition: Outlet.idl:117
boolean nonCritical
true if outlet is non-critical (for load shedding)
Definition: Outlet.idl:85
string name
User-defined name.
Definition: Outlet.idl:81
boolean blinking
true if the LED is blinking
Definition: Outlet.idl:54
Outlet state
Definition: Outlet.idl:58
Rating rating
Numerical usage ratings.
Definition: Outlet.idl:38
Nameplate namePlate
Nameplate information
Definition: Outlet.idl:37
Outlet will be switched off
Definition: Outlet.idl:74
boolean available
powerState is available
Definition: Outlet.idl:59
sensors::NumericSensor_4_0_1 peakCurrent
Peak current sensor.
Definition: Outlet.idl:93
int sequenceDelay
Delay in ms after this outlet when switching multiple outlets on.
Definition: Outlet.idl:86
sensors::NumericSensor_4_0_1 apparentEnergy
Apparent energy sensor.
Definition: Outlet.idl:102
int maxRelayCycleCnt
Maximum relay cycle count.
Definition: Outlet.idl:41
Inlet interface
Definition: Inlet.idl:17
int relayCycleCnt
Relay switch count.
Definition: Outlet.idl:19