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 TypeFieldDescriptionint
UPOS property BatteryCapacityRemaining.int
UPOS property BatteryCapacityRemainingInSeconds.int
UPOS property BatteryCriticallyLowThreshold.int
UPOS property BatteryCriticallyLowThresholdInSeconds.int
UPOS property BatteryLowThreshold.int
UPOS property BatteryLowThresholdInSeconds.boolean
UPOS property CapBatteryCapacityRemaining.boolean
UPOS property CapBatteryCapacityRemainingInSeconds.boolean
UPOS property CapChargeTime.boolean
UPOS property CapFanAlarm.boolean
UPOS property CapHeatAlarm.boolean
UPOS property CapQuickCharge.boolean
UPOS property CapRestartPOS.boolean
UPOS property CapShutdownPOS.boolean
UPOS property CapStandbyPOS.boolean
UPOS property CapSuspendPOS.int
UPOS property CapUPSChargeState.boolean
UPOS property CapVariableBatteryCriticallyLowThreshold.boolean
UPOS property CapVariableBatteryCriticallyLowThresholdInSeconds.boolean
UPOS property CapVariableBatteryLowThreshold.boolean
UPOS property CapVariableBatteryLowThresholdInSeconds.int
UPOS property ChargeTime.int
UPOS property EnforcedShutdownDelayTime.int
UPOS property PowerFailDelayTime.int
UPOS property PowerSource.boolean
UPOS property QuickChargeMode.int
UPOS property QuickChargeTime.int
UPOS 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 TypeMethodDescriptionvoid
batteryCriticallyLowThreshold(int threshold)
Final part of setBatteryCriticallyLowThreshold method.void
batteryLowThreshold(int threshold)
Final part of setBatteryLowThreshold method.void
enforcedShutdownDelayTime(int delay)
Final part of setEnforcedShutdownDelayTime method.void
Final part of restartPOS method.void
setBatteryCriticallyLowThresholdInSeconds(int seconds)
Final part of setBatteryCriticallyLowThresholdInSeconds method.void
setBatteryLowThresholdInSeconds(int seconds)
Final part of setBatteryLowThresholdInSeconds method.void
Final part of shutdownPOS method.void
standbyPOS(int reason)
Final part of standbyPOS method.void
suspendPOS(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, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:POSPowerInterface
Final 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:
batteryCriticallyLowThreshold
in 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:POSPowerInterface
Final 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:
batteryLowThreshold
in 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:POSPowerInterface
Final 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:
setBatteryCriticallyLowThresholdInSeconds
in 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:POSPowerInterface
Final 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:
setBatteryLowThresholdInSeconds
in 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:POSPowerInterface
Final 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:
enforcedShutdownDelayTime
in interfacePOSPowerInterface
- Parameters:
delay
- Time delay for shutdown.- Throws:
jpos.JposException
- If an error occurs.
-
restartPOS
public void restartPOS() throws jpos.JposExceptionDescription copied from interface:POSPowerInterface
Final 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:
restartPOS
in interfacePOSPowerInterface
- Throws:
jpos.JposException
- If an error occurs.
-
shutdownPOS
public void shutdownPOS() throws jpos.JposExceptionDescription copied from interface:POSPowerInterface
Final 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:
shutdownPOS
in interfacePOSPowerInterface
- Throws:
jpos.JposException
- If an error occurs.
-
standbyPOS
public void standbyPOS(int reason) throws jpos.JposExceptionDescription copied from interface:POSPowerInterface
Final 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:
standbyPOS
in 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:POSPowerInterface
Final 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:
suspendPOS
in interfacePOSPowerInterface
- Parameters:
reason
- Reason for the call. See UPOS specification.- Throws:
jpos.JposException
- If an error occurs.
-