1.3.5 OcaPowerManager

Class Hirarchy:

OcaRootOcaManagerOcaPowerManager

class OcaPowerManager : OcaManager

Optional manager that manages power settings and state.

  • May be instantiated once in any device.

  • If instantiated, object number must be 5.

Properties:

OcaClassID ClassID

Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the OcaRoot property.

This property has id 3.1.

OcaClassVersionNumber ClassVersion

Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the OcaRoot property.

This property has id 3.2.

OcaPowerState State

Current power state of device. Readonly.

This property has id 3.1.

OcaList<OcaONo> PowerSupplies

List of object numbers of available power supplies.

This property has id 3.2.

OcaList<OcaONo> ActivePowerSupplies

Object number(s) of power suppl(ies) currently in use.

This property has id 3.3.

OcaBoolean AutoState

True if current state was invoked automatically, not by a controller action.

This property has id 3.4.

OcaPowerState TargetState

Power state to which the device is transitioning. If no transition is in progress, has value None. Readonly.

This property has id 3.5.

Properties inherited from OcaRoot:

Methods:

OcaStatus GetState(OcaPowerState &State)

Retrieve the value of property 03p01 State , the current power state of the device. Return value indicates whether the value was successfully retrieved.

This method has id 3.1.

Parameters

OcaPowerState State – Output parameter.

OcaStatus SetState(OcaPowerState State)

Change the device power state. The return value indicates whether the requested change has been successfully made.

This method has id 3.2.

Parameters

OcaPowerState State – Input parameter.

OcaStatus GetPowerSupplies(OcaList<OcaONo> &psuList)

Retrieves list of object number(s) of all power supply(ies). Return value indicates whether the data was successfully retrieved.

This method has id 3.3.

Parameters

OcaList<OcaONo> psuList – Output parameter.

OcaStatus GetActivePowerSupplies(OcaList<OcaONo> &psuList)

Retrieves list of object number(s) of active power supply(ies). Return value indicates whether the data was successfully retrieved.

This method has id 3.4.

Parameters

OcaList<OcaONo> psuList – Output parameter.

OcaStatus ExchangePowerSupply(OcaONo oldPsu, OcaONo newPsu, OcaBoolean powerOffOld)

Deactivate one power supply and activate another. An option switch indicates whether the previously active power supply is to be turned off. If it is not turned off, it will be placed in the Unavailable state. The return value indicates whether the requested exchange has been successfully made.

This method has id 3.5.

Parameters
  • OcaONo oldPsu – Input parameter.

  • OcaONo newPsu – Input parameter.

  • OcaBoolean powerOffOld – Input parameter.

OcaStatus GetAutoState(OcaBoolean &state)

Gets the value of the AutoState property. The return value indicates whether the value was successfully retrieved.

This method has id 3.6.

Parameters

OcaBoolean state – Output parameter.

Methods inherited from OcaRoot: