Raritan PX2/PX3 JSON-RPC API
|
6 #ifndef __PDUMODEL_OUTLET_IDL__
7 #define __PDUMODEL_OUTLET_IDL__
9 #include <Nameplate.idl>
10 #include <NumericSensor.idl>
11 #include <StateSensor.idl>
14 #include <OverCurrentProtector.idl>
15 #include <Controller.idl>
31 constant
int ERR_OUTLET_NOT_SWITCHABLE = 1;
32 constant
int ERR_LOAD_SHEDDING_ACTIVE = 2;
33 constant
int ERR_OUTLET_DISABLED = 3;
34 constant
int ERR_OUTLET_NOT_OFF = 4;
36 constant
int ERR_INVALID_PARAM = 1;
117 valueobject PowerControlEvent extends
event.UserEvent {
123 valueobject StateChangedEvent extends
idl.Event {
129 valueobject SettingsChangedEvent extends
event.UserEvent {
sensors::NumericSensor_4_0_4 crestFactor
Crest factor sensor.
Definition: Outlet.idl:112
boolean usePduCycleDelay
true to use power-cycle delay as defined in PDU settings
Definition: Outlet.idl:90
int relayCycleCnt
Relay switch count.
Definition: Outlet.idl:24
boolean isLoadShed
true if the outlet is currently switched off due to being non-critical and load shedding being active
Definition: Outlet.idl:72
sensors::NumericSensor_4_0_4 voltage
RMS voltage sensor.
Definition: Outlet.idl:98
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
StartupState startupState
Power state on device startup.
Definition: Outlet.idl:89
sensors::NumericSensor_4_0_4 displacementPowerFactor
Displacement power factor sensor.
Definition: Outlet.idl:107
MetaData getMetaData()
Retrieve the outlet metadata.
sensors::NumericSensor_4_0_4 phaseAngle
Phase angle sensor.
Definition: Outlet.idl:110
Numerical usage ratings.
Definition: Nameplate.idl:15
@ SS_OFF
Outlet will be switched off
Definition: Outlet.idl:81
sensors::NumericSensor_4_0_4 maximumCurrent
Maximum current sensor.
Definition: Outlet.idl:101
Settings newSettings
Settings after change.
Definition: Outlet.idl:131
Outlet interface
Definition: Outlet.idl:29
Outlet LED state
Definition: Outlet.idl:56
boolean red
true if the red LED is enabled
Definition: Outlet.idl:57
int cycleDelay
Outlet-specific power-cycle delay
Definition: Outlet.idl:91
string name
User-defined name.
Definition: Outlet.idl:88
sensors::NumericSensor_4_0_4 apparentPower
Apparent power sensor.
Definition: Outlet.idl:105
void getIOP(out Inlet_2_0_7 i, out OverCurrentProtector_3_0_7 o, out vector< Pole_7_0_0 > p)
Get inlet, overcurrent protector and poles.
PDU Model.
Definition: Ade.idl:12
StartupState
Outlet power state on device startup
Definition: Outlet.idl:79
time lastPowerStateChange
Time of last power state change (UNIX timestamp, UTC)
Definition: Outlet.idl:75
Inlet interface
Definition: Inlet.idl:22
sensors::NumericSensor_4_0_4 apparentEnergy
Apparent energy sensor.
Definition: Outlet.idl:109
Sensor with discrete readings.
Definition: StateSensor.idl:43
boolean green
true if the green LED is enabled
Definition: Outlet.idl:58
int relayFailCnt
Relay failure count.
Definition: Outlet.idl:25
Basic IDL definitions.
Definition: Event.idl:10
sensors::NumericSensor_4_0_4 activePower
Active power sensor.
Definition: Outlet.idl:103
boolean nonCritical
true if outlet is non-critical (for load shedding)
Definition: Outlet.idl:92
LedState ledState
LED state.
Definition: Outlet.idl:74
Component nameplate information.
Definition: Nameplate.idl:23
sensors::StateSensor_4_0_4 outletState
Outlet power state sensor
Definition: Outlet.idl:113
sensors::NumericSensor_4_0_4 powerFactor
Power factor sensor.
Definition: Outlet.idl:106
sensors::NumericSensor_4_0_4 lineFrequency
AC line frequency sensor.
Definition: Outlet.idl:111
boolean cycle
Whether the outlet was cycled.
Definition: Outlet.idl:119
sensors::NumericSensor_4_0_4 peakCurrent
Peak current sensor.
Definition: Outlet.idl:100
int setSettings(in Settings settings)
Change the outlet settings.
sensors::NumericSensor_4_0_4 reactivePower
Reactive power sensor.
Definition: Outlet.idl:104
int setPowerState(in PowerState pstate)
Switch the outlet.
boolean blinking
true if the LED is blinking
Definition: Outlet.idl:59
int sequenceDelay
Delay in ms after this outlet when switching multiple outlets on.
Definition: Outlet.idl:93
PowerState powerState
Current power state of outlet (represented by the control state of the relay, which was set by the la...
Definition: Outlet.idl:65
int cyclePowerState()
Power-cycle the outlet.
State newState
State after change.
Definition: Outlet.idl:125
int unstick()
Trigger an attempt to un-stick sticking relay contacts.
Sensors getSensors()
Get the outlet sensors.
boolean available
powerState is available
Definition: Outlet.idl:64
@ PS_OFF
Switch off / Power is off.
Definition: Outlet.idl:51
@ SS_LASTKNOWN
Last known power state will be restored.
Definition: Outlet.idl:82
Outlet settings
Definition: Outlet.idl:87
Settings getSettings()
Retrieve the outlet settings.
State getState()
Retrieve the outlet state.
sensors::NumericSensor_4_0_4 current
RMS current sensor.
Definition: Outlet.idl:99
PowerState
Outlet power state.
Definition: Outlet.idl:50
Outlet sensors
Definition: Outlet.idl:97
A sensor with numeric readings.
Definition: NumericSensor.idl:17
Controller_4_0_1 getController()
Get the controller for this outlet.
boolean cycleInProgress
if a power-cycle is in progress.
Definition: Outlet.idl:70
Outlet statistics
Definition: Outlet.idl:23
sensors::NumericSensor_4_0_4 unbalancedCurrent
Current unbalance sensor.
Definition: Outlet.idl:102
@ SS_ON
Outlet will be switched on
Definition: Outlet.idl:80
boolean switchOnInProgress
true if the outlet is pending to be switched on after the sequencing delay has passed.
Definition: Outlet.idl:68
Common base interface for any kind of electrical device that is used in the PDU model,...
Definition: EDevice.idl:24
Outlet state
Definition: Outlet.idl:63
Slave controller interface.
Definition: Controller.idl:26
Overcurrent protector interface.
Definition: OverCurrentProtector.idl:26
sensors::NumericSensor_4_0_4 activeEnergy
Active energy sensor.
Definition: Outlet.idl:108