Raritan PX2/PX3 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_1_1 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  boolean isLoadShed;
68  LedState ledState;
71  };
72 
74  enumeration StartupState {
78  SS_PDUDEF
79  };
80 
82  structure Settings {
83  string name;
85  boolean usePduCycleDelay;
86  int cycleDelay;
87  boolean nonCritical;
89  };
90 
92  structure Sensors {
108  };
109 
111  valueobject PowerControlEvent extends event.UserEvent {
112  PowerState state;
113  boolean cycle;
114  };
115 
117  valueobject StateChangedEvent extends idl.Event {
118  State oldState;
120  };
121 
123  valueobject SettingsChangedEvent extends event.UserEvent {
124  Settings oldSettings;
126  };
127 
133  MetaData getMetaData();
134 
140  Sensors getSensors();
141 
147  State getState();
148 
158  int setPowerState(in PowerState pstate);
159 
167  int cyclePowerState();
168 
174  Settings getSettings();
175 
184  int setSettings(in Settings settings);
185 
193  void getIOP(out Inlet_2_0_1 i, out OverCurrentProtector_3_0_1 o, out vector<Pole_4_0_1> p);
194 
200  Controller_4_0_0 getController();
201 
215  int unstick();
216  };
217 
218 }
219 
220 #endif
A sensor with numeric readings.
Definition: NumericSensor.idl:12
Numerical usage ratings.
Definition: Nameplate.idl:10
Outlet will be switched off
Definition: Outlet.idl:76
Outlet settings
Definition: Outlet.idl:82
Sensor with discrete readings.
Definition: StateSensor.idl:38
StartupState startupState
Power state on device startup.
Definition: Outlet.idl:84
Outlet LED state
Definition: Outlet.idl:51
sensors::NumericSensor_4_0_2 activeEnergy
Active energy sensor.
Definition: Outlet.idl:103
sensors::NumericSensor_4_0_2 reactivePower
Reactive power sensor.
Definition: Outlet.idl:99
string name
User-defined name.
Definition: Outlet.idl:83
int relayFailCnt
Relay failure count.
Definition: Outlet.idl:20
sensors::NumericSensor_4_0_2 apparentPower
Apparent power sensor.
Definition: Outlet.idl:100
Settings newSettings
Settings after change.
Definition: Outlet.idl:125
boolean usePduCycleDelay
true to use power-cycle delay as defined in PDU settings
Definition: Outlet.idl:85
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
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
Outlet metadata
Definition: Outlet.idl:34
sensors::StateSensor_4_0_2 outletState
Outlet power state sensor
Definition: Outlet.idl:107
sensors::NumericSensor_4_0_2 voltage
RMS voltage sensor.
Definition: Outlet.idl:93
int cycleDelay
Outlet-specific power-cycle delay
Definition: Outlet.idl:86
Switch off / Power is off.
Definition: Outlet.idl:46
boolean nonCritical
true if outlet is non-critical (for load shedding)
Definition: Outlet.idl:87
sensors::NumericSensor_4_0_2 apparentEnergy
Apparent energy sensor.
Definition: Outlet.idl:104
sensors::NumericSensor_4_0_2 current
RMS current sensor.
Definition: Outlet.idl:94
Outlet state
Definition: Outlet.idl:58
Slave controller interface.
Definition: Controller.idl:21
Basic IDL definitions.
Definition: Event.idl:6
boolean green
true if the green LED is enabled
Definition: Outlet.idl:53
boolean isLatching
true if the outlet is able to keep its state after power loss
Definition: Outlet.idl:40
string receptacleType
Receptacle type.
Definition: Outlet.idl:36
Component nameplate information.
Definition: Nameplate.idl:17
boolean available
powerState is available
Definition: Outlet.idl:59
sensors::NumericSensor_4_0_2 peakCurrent
Peak current sensor.
Definition: Outlet.idl:95
StartupState
Outlet power state on device startup
Definition: Outlet.idl:74
Outlet statistics
Definition: Outlet.idl:18
sensors::NumericSensor_4_0_2 lineFrequency
AC line frequency sensor.
Definition: Outlet.idl:106
Nameplate namePlate
Nameplate information
Definition: Outlet.idl:37
boolean cycle
Whether the outlet was cycled.
Definition: Outlet.idl:113
time lastPowerStateChange
Time of last power state change.
Definition: Outlet.idl:70
Rating rating
Numerical usage ratings.
Definition: Outlet.idl:38
int maxRelayCycleCnt
Maximum relay cycle count.
Definition: Outlet.idl:41
sensors::NumericSensor_4_0_2 displacementPowerFactor
Displacement power factor sensor.
Definition: Outlet.idl:102
Sensors Model.
Definition: AccumulatingNumericSensor.idl:8
PDU Model.
Definition: Ade.idl:7
sensors::NumericSensor_4_0_2 powerFactor
Power factor sensor.
Definition: Outlet.idl:101
sensors::NumericSensor_4_0_2 maximumCurrent
Maximum current sensor.
Definition: Outlet.idl:96
sensors::NumericSensor_4_0_2 activePower
Active power sensor.
Definition: Outlet.idl:98
Last known power state will be restored.
Definition: Outlet.idl:77
Overcurrent protector interface.
Definition: OverCurrentProtector.idl:21
Outlet will be switched on
Definition: Outlet.idl:75
PowerState
Outlet power state.
Definition: Outlet.idl:45
boolean isSwitchable
true if the outlet is switchable
Definition: Outlet.idl:39
Inlet interface
Definition: Inlet.idl:17
sensors::NumericSensor_4_0_2 phaseAngle
Phase angle sensor.
Definition: Outlet.idl:105
boolean red
true if the red LED is enabled
Definition: Outlet.idl:52
Outlet sensors
Definition: Outlet.idl:92
boolean blinking
true if the LED is blinking
Definition: Outlet.idl:54
string label
Outlet label
Definition: Outlet.idl:35
State newState
State after change.
Definition: Outlet.idl:119
Outlet interface
Definition: Outlet.idl:24
int sequenceDelay
Delay in ms after this outlet when switching multiple outlets on.
Definition: Outlet.idl:88
sensors::NumericSensor_4_0_2 unbalancedCurrent
Current unbalance sensor.
Definition: Outlet.idl:97
int relayCycleCnt
Relay switch count.
Definition: Outlet.idl:19