Class BeltProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.belt.BeltProperties
- All Implemented Interfaces:
BeltInterface
,JposBaseInterface
Class containing the belt specific properties, their default values and default implementations of
BeltInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Belt.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
UPOS property AutoStopBackward.int
UPOS property AutoStopBackwardDelayTime.int
UPOS property AutoStopBackwardItemCount.boolean
UPOS property AutoStopForward.int
UPOS property AutoStopForwardDelayTime.int
UPOS property AutoStopBackwardItemCount.boolean
UPOS property CapAutoStopBackward.boolean
UPOS property CapAutoStopBackwardItemCount.boolean
UPOS property CapAutoStopForward.boolean
UPOS property CapAutoStopForwardItemCount.boolean
UPOS property CapLightBarrierBackward.boolean
UPOS property CapLightBarrierForward.boolean
UPOS property CapMoveBackward.boolean
UPOS property CapSecurityFlapBackward.boolean
UPOS property CapSecurityFlapForward.int
UPOS property CapSpeedStepsBackward.int
UPOS property CapSpeedStepsForward.boolean
UPOS property LightBarrierBackwardInterrupted.boolean
UPOS property LightBarrierForwardInterrupted.int
UPOS property MotionStatus.boolean
UPOS property SecurityFlapBackwardOpened.boolean
UPOS property SecurityFlapForwardOpened.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
adjustItemCount(int direction, int count)
The default implementation increments the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, by the specified count.void
autoStopBackward(boolean flag)
Final part of setting AutoStopBackward.void
autoStopBackwardDelayTime(int delay)
Final part of setting AutoStopBackwardDelayTime.void
autoStopForward(boolean flag)
Final part of setting AutoStopForward.void
autoStopForwardDelayTime(int delay)
Final part of setting AutoStopForwardDelayTime.void
moveBackward(int speed)
Final part of MoveBackward method.void
moveForward(int speed)
Final part of MoveForward method.void
Final part of ResetBelt method.void
resetItemCount(int direction)
The default implementation sets the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, to 0.void
stopBelt()
Final part of StopBelt 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
-
AutoStopBackward
public boolean AutoStopBackwardUPOS property AutoStopBackward. Default: false. -
AutoStopBackwardDelayTime
public int AutoStopBackwardDelayTimeUPOS property AutoStopBackwardDelayTime. Default: 0. -
AutoStopBackwardItemCount
public int AutoStopBackwardItemCountUPOS property AutoStopBackwardItemCount. Default: 0. -
AutoStopForward
public boolean AutoStopForwardUPOS property AutoStopForward. Default: false. -
AutoStopForwardDelayTime
public int AutoStopForwardDelayTimeUPOS property AutoStopForwardDelayTime. Default: 0. -
AutoStopForwardItemCount
public int AutoStopForwardItemCountUPOS property AutoStopBackwardItemCount. Default: 0. -
CapAutoStopBackward
public boolean CapAutoStopBackwardUPOS property CapAutoStopBackward. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAutoStopBackwardItemCount
public boolean CapAutoStopBackwardItemCountUPOS property CapAutoStopBackwardItemCount. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAutoStopForward
public boolean CapAutoStopForwardUPOS property CapAutoStopForward. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapAutoStopForwardItemCount
public boolean CapAutoStopForwardItemCountUPOS property CapAutoStopForwardItemCount. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapLightBarrierBackward
public boolean CapLightBarrierBackwardUPOS property CapLightBarrierBackward. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapLightBarrierForward
public boolean CapLightBarrierForwardUPOS property CapLightBarrierForward. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMoveBackward
public boolean CapMoveBackwardUPOS property CapMoveBackward. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSecurityFlapBackward
public boolean CapSecurityFlapBackwardUPOS property CapSecurityFlapBackward. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSecurityFlapForward
public boolean CapSecurityFlapForwardUPOS property CapSecurityFlapForward. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSpeedStepsBackward
public int CapSpeedStepsBackwardUPOS property CapSpeedStepsBackward. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSpeedStepsForward
public int CapSpeedStepsForwardUPOS property CapSpeedStepsForward. Default: 1. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
LightBarrierBackwardInterrupted
public boolean LightBarrierBackwardInterruptedUPOS property LightBarrierBackwardInterrupted. Default: false. Must be initialized and kept current while device is enabled. -
LightBarrierForwardInterrupted
public boolean LightBarrierForwardInterruptedUPOS property LightBarrierForwardInterrupted. Default: false. Must be initialized and kept current while device is enabled. -
MotionStatus
public int MotionStatusUPOS property MotionStatus. Default: MT_STOPPED. Must be initialized and kept current while device is enabled. -
SecurityFlapBackwardOpened
public boolean SecurityFlapBackwardOpenedUPOS property SecurityFlapBackwardOpened. Default: false. Must be initialized and kept current while device is enabled. -
SecurityFlapForwardOpened
public boolean SecurityFlapForwardOpenedUPOS property SecurityFlapForwardOpened. Default: false. Must be initialized and kept current while device is enabled.
-
-
Constructor Details
-
BeltProperties
protected BeltProperties(int dev)Constructor.- Parameters:
dev
- Device index
-
-
Method Details
-
autoStopBackward
public void autoStopBackward(boolean flag)Description copied from interface:BeltInterface
Final part of setting AutoStopBackward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAutoStopBackward is true or flag is false,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopBackward.
- Specified by:
autoStopBackward
in interfaceBeltInterface
- Parameters:
flag
- New value for AutoStopBackward property.
-
autoStopBackwardDelayTime
public void autoStopBackwardDelayTime(int delay) throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of setting AutoStopBackwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAutoStopBackward is true,
- delay is FOREVER or positive,
- internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopBackwardDelayTime.
- Specified by:
autoStopBackwardDelayTime
in interfaceBeltInterface
- Parameters:
delay
- Time delay in milliseconds for automatic stop in backward direction.- Throws:
jpos.JposException
- If an error occurs.
-
autoStopForward
public void autoStopForward(boolean flag) throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of setting AutoStopForward. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAutoStopForward is true or flag is false,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of AutoStopForward.
- Specified by:
autoStopForward
in interfaceBeltInterface
- Parameters:
flag
- New value for AutoStopForward property.- Throws:
jpos.JposException
- If an error occurs.
-
autoStopForwardDelayTime
public void autoStopForwardDelayTime(int delay) throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of setting AutoStopForwardDelayTime. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAutoStopForward is true,
- delay is FOREVER or positive,
- internal property AllowAlwaysSetProperties is true or delay equals the previous value of AutoStopForwardDelayTime.
- Specified by:
autoStopForwardDelayTime
in interfaceBeltInterface
- Parameters:
delay
- Time delay in milliseconds for automatic stop in forward direction.- Throws:
jpos.JposException
- If an error occurs.
-
adjustItemCount
public void adjustItemCount(int direction, int count) throws jpos.JposExceptionThe default implementation increments the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, by the specified count.- Specified by:
adjustItemCount
in interfaceBeltInterface
- Parameters:
direction
- Affected direction, one of RIC_BACKWARD and RIC_FORWARD.count
- Item count to be added to the specified auto-stop property.- Throws:
jpos.JposException
- If an error occurs.
-
moveBackward
public void moveBackward(int speed) throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of MoveBackward 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,
- CapMoveBackward is true,
- Specified speed is between 1 and CapSpeedStepsBackward.
- Specified by:
moveBackward
in interfaceBeltInterface
- Parameters:
speed
- New belt speed.- Throws:
jpos.JposException
- If an error occurs.
-
moveForward
public void moveForward(int speed) throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of MoveForward 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,
- Specified speed is between 1 and CapSpeedStepsForward.
- Specified by:
moveForward
in interfaceBeltInterface
- Parameters:
speed
- New belt speed.- Throws:
jpos.JposException
- If an error occurs.
-
resetBelt
public void resetBelt() throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of ResetBelt 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.
- Specified by:
resetBelt
in interfaceBeltInterface
- Throws:
jpos.JposException
- If an error occurs.
-
resetItemCount
public void resetItemCount(int direction) throws jpos.JposExceptionThe default implementation sets the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, to 0.- Specified by:
resetItemCount
in interfaceBeltInterface
- Parameters:
direction
- Affected direction, one of RIC_BACKWARD and RIC_FORWARD.- Throws:
jpos.JposException
- If an error occurs.
-
stopBelt
public void stopBelt() throws jpos.JposExceptionDescription copied from interface:BeltInterface
Final part of StopBelt 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.
- Specified by:
stopBelt
in interfaceBeltInterface
- Throws:
jpos.JposException
- If an error occurs.
-