Class POSPowerProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.pospower.POSPowerProperties
- All Implemented Interfaces:
JposBaseInterface,POSPowerInterface
Class containing the POS Power specific properties, their default values and default implementations of
POSPowerInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter POS Power.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintUPOS property BatteryCapacityRemaining.intUPOS property BatteryCapacityRemainingInSeconds.intUPOS property BatteryCriticallyLowThreshold.intUPOS property BatteryCriticallyLowThresholdInSeconds.intUPOS property BatteryLowThreshold.intUPOS property BatteryLowThresholdInSeconds.booleanUPOS property CapBatteryCapacityRemaining.booleanUPOS property CapBatteryCapacityRemainingInSeconds.booleanUPOS property CapChargeTime.booleanUPOS property CapFanAlarm.booleanUPOS property CapHeatAlarm.booleanUPOS property CapQuickCharge.booleanUPOS property CapRestartPOS.booleanUPOS property CapShutdownPOS.booleanUPOS property CapStandbyPOS.booleanUPOS property CapSuspendPOS.intUPOS property CapUPSChargeState.booleanUPOS property CapVariableBatteryCriticallyLowThreshold.booleanUPOS property CapVariableBatteryCriticallyLowThresholdInSeconds.booleanUPOS property CapVariableBatteryLowThreshold.booleanUPOS property CapVariableBatteryLowThresholdInSeconds.intUPOS property ChargeTime.intUPOS property EnforcedShutdownDelayTime.intUPOS property PowerFailDelayTime.intUPOS property PowerSource.booleanUPOS property QuickChargeMode.intUPOS property QuickChargeTime.intUPOS property UPSChargeState.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbatteryCriticallyLowThreshold(int threshold)Final part of setBatteryCriticallyLowThreshold method.voidbatteryLowThreshold(int threshold)Final part of setBatteryLowThreshold method.voidenforcedShutdownDelayTime(int delay)Final part of setEnforcedShutdownDelayTime method.voidFinal part of restartPOS method.voidsetBatteryCriticallyLowThresholdInSeconds(int seconds)Final part of setBatteryCriticallyLowThresholdInSeconds method.voidsetBatteryLowThresholdInSeconds(int seconds)Final part of setBatteryLowThresholdInSeconds method.voidFinal part of shutdownPOS method.voidstandbyPOS(int reason)Final part of standbyPOS method.voidsuspendPOS(int reason)Final part of suspendPOS method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, initOnOpen, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
CapBatteryCapacityRemaining
public boolean CapBatteryCapacityRemainingUPOS property CapBatteryCapacityRemaining. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapFanAlarm
public boolean CapFanAlarmUPOS property CapFanAlarm. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapHeatAlarm
public boolean CapHeatAlarmUPOS property CapHeatAlarm. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapQuickCharge
public boolean CapQuickChargeUPOS property CapQuickCharge. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRestartPOS
public boolean CapRestartPOSUPOS property CapRestartPOS. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapShutdownPOS
public boolean CapShutdownPOSUPOS property CapShutdownPOS. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapStandbyPOS
public boolean CapStandbyPOSUPOS property CapStandbyPOS. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSuspendPOS
public boolean CapSuspendPOSUPOS property CapSuspendPOS. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapUPSChargeState
public int CapUPSChargeStateUPOS property CapUPSChargeState. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapVariableBatteryCriticallyLowThreshold
public boolean CapVariableBatteryCriticallyLowThresholdUPOS property CapVariableBatteryCriticallyLowThreshold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapVariableBatteryLowThreshold
public boolean CapVariableBatteryLowThresholdUPOS property CapVariableBatteryLowThreshold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
BatteryCapacityRemaining
public int BatteryCapacityRemainingUPOS property BatteryCapacityRemaining. Default: 0. Should be set to an initial value in the open method if CapBatteryCapacityRemaining is true. -
BatteryCriticallyLowThreshold
public int BatteryCriticallyLowThresholdUPOS property BatteryCriticallyLowThreshold. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapVariableBatteryCriticallyLowThreshold is true. -
BatteryLowThreshold
public int BatteryLowThresholdUPOS property BatteryLowThreshold. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapVariableBatteryLowThreshold is true. -
EnforcedShutdownDelayTime
public int EnforcedShutdownDelayTimeUPOS property EnforcedShutdownDelayTime. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
PowerFailDelayTime
public int PowerFailDelayTimeUPOS property PowerFailDelayTime. Default: 0. Can be initialized by objects derived from JposDevice within the changeDefaults or open method. -
PowerSource
public int PowerSourceUPOS property PowerSource. Default: SOURCE_NA. Should be initialized by objects derived from JposDevice within the open method. -
QuickChargeMode
public boolean QuickChargeModeUPOS property QuickChargeMode. Default: false. Should be overwritten by objects derived from JposDevice within the open method if CapQuickCharge is true. -
QuickChargeTime
public int QuickChargeTimeUPOS property QuickChargeTime. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapQuickCharge is true. -
UPSChargeState
public int UPSChargeStateUPOS property UPSChargeState. Default: 0. Must be overwritten by objects derived from JposDevice whenever DeviceEnabled will be set to true if CapUPSChargeState is not 0. -
BatteryCapacityRemainingInSeconds
public int BatteryCapacityRemainingInSecondsUPOS property BatteryCapacityRemainingInSeconds. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapBatteryCapacityRemainingInSeconds is true. -
BatteryCriticallyLowThresholdInSeconds
public int BatteryCriticallyLowThresholdInSecondsUPOS property BatteryCriticallyLowThresholdInSeconds. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapVariableBatteryCriticallyLowThresholdInSeconds is true. -
BatteryLowThresholdInSeconds
public int BatteryLowThresholdInSecondsUPOS property BatteryLowThresholdInSeconds. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapVariableBatteryLowThresholdInSeconds is true. -
CapBatteryCapacityRemainingInSeconds
public boolean CapBatteryCapacityRemainingInSecondsUPOS property CapBatteryCapacityRemainingInSeconds. Default: false. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapChargeTime
public boolean CapChargeTimeUPOS property CapChargeTime. Default: false. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapVariableBatteryCriticallyLowThresholdInSeconds
public boolean CapVariableBatteryCriticallyLowThresholdInSecondsUPOS property CapVariableBatteryCriticallyLowThresholdInSeconds. Default: false. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapVariableBatteryLowThresholdInSeconds
public boolean CapVariableBatteryLowThresholdInSecondsUPOS property CapVariableBatteryLowThresholdInSeconds. Default: false. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
ChargeTime
public int ChargeTimeUPOS property ChargeTime. Default: 0. Should be overwritten by objects derived from JposDevice within the open method if CapChargeTime is true.
-
-
Constructor Details
-
POSPowerProperties
protected POSPowerProperties(int dev)Constructor. Sets ExclusiveUse to ExclusiveAllowed to match the POSPower device model.- Parameters:
dev- Device index
-
-
Method Details
-
batteryCriticallyLowThreshold
public void batteryCriticallyLowThreshold(int threshold) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of setBatteryCriticallyLowThreshold method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- threshold is between 0 and 99.
- Specified by:
batteryCriticallyLowThresholdin interfacePOSPowerInterface- Parameters:
threshold- Critical battery low power level in percent.- Throws:
jpos.JposException- If an error occurs.
-
batteryLowThreshold
public void batteryLowThreshold(int threshold) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of setBatteryLowThreshold method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- threshold is between 0 and 99.
- Specified by:
batteryLowThresholdin interfacePOSPowerInterface- Parameters:
threshold- Battery low power level in percent.- Throws:
jpos.JposException- If an error occurs.
-
setBatteryCriticallyLowThresholdInSeconds
public void setBatteryCriticallyLowThresholdInSeconds(int seconds) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of setBatteryCriticallyLowThresholdInSeconds method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- CapVariableBatteryCriticallyLowThresholdInSeconds is true,
- seconds is a positive value.
- Specified by:
setBatteryCriticallyLowThresholdInSecondsin interfacePOSPowerInterface- Parameters:
seconds- Critical battery low power level in seconds.- Throws:
jpos.JposException- If an error occurs.
-
setBatteryLowThresholdInSeconds
public void setBatteryLowThresholdInSeconds(int seconds) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of setBatteryLowThresholdInSeconds method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- CapVariableBatteryLowThresholdInSeconds is true,
- seconds is a positive value.
- Specified by:
setBatteryLowThresholdInSecondsin interfacePOSPowerInterface- Parameters:
seconds- Battery low power level in seconds.- Throws:
jpos.JposException- If an error occurs.
-
enforcedShutdownDelayTime
public void enforcedShutdownDelayTime(int delay) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of setEnforcedShutdownDelayTime method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has been opened,
- delay is ≥ 0.
- Specified by:
enforcedShutdownDelayTimein interfacePOSPowerInterface- Parameters:
delay- Time delay for shutdown.- Throws:
jpos.JposException- If an error occurs.
-
restartPOS
public void restartPOS() throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of restartPOS method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Device has not been claimed by another instance of this device.
- CapRestartPOS is true.
- Specified by:
restartPOSin interfacePOSPowerInterface- Throws:
jpos.JposException- If an error occurs.
-
shutdownPOS
public void shutdownPOS() throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of shutdownPOS method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Device has not been claimed by another instance of this device.
- CapShutdownPOS is true.
- Specified by:
shutdownPOSin interfacePOSPowerInterface- Throws:
jpos.JposException- If an error occurs.
-
standbyPOS
public void standbyPOS(int reason) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of standbyPOS method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Device has not been claimed by another instance of this device,
- reason is one of REASON_REQUEST, REASON_ALLOW or REASON_DENY,
- CapStandbyPOS is true or reason ≠ REASON_REQUEST.
- Specified by:
standbyPOSin interfacePOSPowerInterface- Parameters:
reason- Reason for the call. See UPOS specification.- Throws:
jpos.JposException- If an error occurs.
-
suspendPOS
public void suspendPOS(int reason) throws jpos.JposExceptionDescription copied from interface:POSPowerInterfaceFinal part of suspendPOS method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled.
- Device has not been claimed by another instance of this device,
- reason is one of REASON_REQUEST, REASON_ALLOW or REASON_DENY,
- CapSuspendPOS is true or reason ≠ REASON_REQUEST.
- Specified by:
suspendPOSin interfacePOSPowerInterface- Parameters:
reason- Reason for the call. See UPOS specification.- Throws:
jpos.JposException- If an error occurs.
-