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 TypeFieldDescriptionbooleanUPOS property AutoStopBackward.intUPOS property AutoStopBackwardDelayTime.intUPOS property AutoStopBackwardItemCount.booleanUPOS property AutoStopForward.intUPOS property AutoStopForwardDelayTime.intUPOS property AutoStopBackwardItemCount.booleanUPOS property CapAutoStopBackward.booleanUPOS property CapAutoStopBackwardItemCount.booleanUPOS property CapAutoStopForward.booleanUPOS property CapAutoStopForwardItemCount.booleanUPOS property CapLightBarrierBackward.booleanUPOS property CapLightBarrierForward.booleanUPOS property CapMoveBackward.booleanUPOS property CapSecurityFlapBackward.booleanUPOS property CapSecurityFlapForward.intUPOS property CapSpeedStepsBackward.intUPOS property CapSpeedStepsForward.booleanUPOS property LightBarrierBackwardInterrupted.booleanUPOS property LightBarrierForwardInterrupted.intUPOS property MotionStatus.booleanUPOS property SecurityFlapBackwardOpened.booleanUPOS 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 TypeMethodDescriptionvoidadjustItemCount(int direction, int count)The default implementation increments the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, by the specified count.voidautoStopBackward(boolean flag)Final part of setting AutoStopBackward.voidautoStopBackwardDelayTime(int delay)Final part of setting AutoStopBackwardDelayTime.voidautoStopForward(boolean flag)Final part of setting AutoStopForward.voidautoStopForwardDelayTime(int delay)Final part of setting AutoStopForwardDelayTime.voidmoveBackward(int speed)Final part of MoveBackward method.voidmoveForward(int speed)Final part of MoveForward method.voidFinal part of ResetBelt method.voidresetItemCount(int direction)The default implementation sets the corresponding property, AutoStopBackwardItemCount or AutoStopForwardItemCount, to 0.voidstopBelt()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, 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
-
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:BeltInterfaceFinal 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:
autoStopBackwardin interfaceBeltInterface- Parameters:
flag- New value for AutoStopBackward property.
-
autoStopBackwardDelayTime
public void autoStopBackwardDelayTime(int delay) throws jpos.JposExceptionDescription copied from interface:BeltInterfaceFinal 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:
autoStopBackwardDelayTimein 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:BeltInterfaceFinal 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:
autoStopForwardin 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:BeltInterfaceFinal 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:
autoStopForwardDelayTimein 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:
adjustItemCountin 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:BeltInterfaceFinal 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:
moveBackwardin 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:BeltInterfaceFinal 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:
moveForwardin interfaceBeltInterface- Parameters:
speed- New belt speed.- Throws:
jpos.JposException- If an error occurs.
-
resetBelt
public void resetBelt() throws jpos.JposExceptionDescription copied from interface:BeltInterfaceFinal 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:
resetBeltin 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:
resetItemCountin 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:BeltInterfaceFinal 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:
stopBeltin interfaceBeltInterface- Throws:
jpos.JposException- If an error occurs.
-