9 #include <QVariantList>
10 #include <QVariantMap>
146 bool lock(
int aTimeout,
volatile bool* aCancelFlag =
nullptr);
255 virtual void syncStock(
volatile bool* aCancelFlag =
nullptr);
267 virtual void control(
int aOp,
const QVariantMap& aInput, QVariantMap& aOutput,
volatile bool* aCancelFlag =
nullptr);
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
BPS datastore class.
Definition: bpsdatastore.h:61
BPS order utilities.
Definition: bpsorderutils.h:19
Pick robot interface.
Definition: bpsrobot.h:19
void updateProgressValue(int aValue)
Emitted when progress reaches next value to update the progress indicator.
void unlock()
Unlock the zone, in case it was locked by the current actor.
void updateProgressLabel(const QString &aLabel)
Emitted to update the progress label text.
virtual QString subjobItemCondition(const QString &aPrefix=QString())
Get the orderitem selecting condition for subjobs created by this robot.
virtual bool hasFeature(Feature aFeature)
Query information about available features.
void robotEvent(int aEvt, const QVariantMap &aData)
Emitted when a spontaneous robot specific event happens.
OrderType
Type of the key/keys to process.
Definition: bpsrobot.h:60
OrderSyncMode
Order items synchronize modes.
Definition: bpsrobot.h:50
virtual void revokeOrders(OrderType aOrderType, const QVariantList &aKeys, volatile bool *aCancelFlag=nullptr)
Revoke orders from the robot.
bool isLocked()
Check if robot is locked.
BpsDatastore * datastore() const
bool lock(int aTimeout, volatile bool *aCancelFlag=nullptr)
Lock the zone for exclusive robot access.
virtual void control(int aOp, const QVariantMap &aInput, QVariantMap &aOutput, volatile bool *aCancelFlag=nullptr)
Execute robot specific operations.
virtual void loadOrdertrip(const QVariant &aOrdertripKey, volatile bool *aCancelFlag=nullptr)
Load order trip into robot.
Feature
Feature identifiers.
Definition: bpsrobot.h:27
@ CanRevokeTrips
Supports revoking order trips with syncOrders().
Definition: bpsrobot.h:34
@ CanRevokeRows
Supports revoking order rows with syncOrders().
Definition: bpsrobot.h:35
@ CanRevokeCols
Supports revoking order cols with syncOrders().
Definition: bpsrobot.h:36
@ CanSyncRows
Supports syncing order rows with syncOrders().
Definition: bpsrobot.h:30
@ CanSyncCols
Supports syncing order cols with syncOrders().
Definition: bpsrobot.h:31
@ CanRevokeItems
Supports revoking order items with syncOrders().
Definition: bpsrobot.h:37
@ CanFinishItems
Supports finishing order items with syncOrders().
Definition: bpsrobot.h:41
@ CanFinishCols
Supports finishing order cols with syncOrders().
Definition: bpsrobot.h:40
@ CanFinishTrips
Supports finishing order trips with syncOrders().
Definition: bpsrobot.h:38
@ CanSyncItems
Supports syncing order items with syncOrders().
Definition: bpsrobot.h:32
@ CanSyncChanged
Supports syncing of changed items.
Definition: bpsrobot.h:33
@ CanFinishRows
Supports finishing order rows with syncOrders().
Definition: bpsrobot.h:39
@ CanSyncTrips
Supports syncing order trips with syncOrders().
Definition: bpsrobot.h:29
@ CanHandleSubjobs
The robot may send create subjobs for manual picking and receive back the finalized lu's.
Definition: bpsrobot.h:42
@ CanLoadTrip
Supports loading an order trip with loadOrdertrip().
Definition: bpsrobot.h:28
void hideProgress()
Emitted after the operation is completed (or failed or was aborted).
void showProgressMessage(const QString &aMessage)
Emit signals to show a progress message with undefined running length.
void itemRejected(const QVariant &aKey)
Emitted when a item was rejected by robot or because of data constraints.
virtual void sendSubjobLu(const QVariant &aOrdertrip, const QVariant &aLuid, volatile bool *aCancelFlag=nullptr)
Send back a subjob after a LU got finalized.
virtual void finishOrders(OrderType aOrderType, const QVariantList &aKeys, volatile bool *aCancelFlag=nullptr)
Finish order processing.
virtual void syncStock(volatile bool *aCancelFlag=nullptr)
Import all robot stocks into the BPS stock.
virtual ~BpsRobot()
Virtual default destructor.
QVariantMap getOrdertripRobot(const QVariant &aOrdertrip) const
Get the robot status record for order trip.
void updateProgressMaximum(int aMaximum)
Emitted to change the highest tick value.
void showProgress(int aMaximum, const QString &aLabel)
Emitted at start of operation to begin showing the progress indicator.
void itemSynced(const QVariant &aKey)
Emitted when a item was successfully synced, e.g.
QString pickMode() const
Get the picking mode of this robots zone (robot.mifa, robot.geko, robot.tako, robot....
virtual void syncOrders(OrderType aOrderType, const QVariantList &aKeys, OrderSyncMode aSyncMode, volatile bool *aCancelFlag=nullptr)
Synchronize orders to the robot.
BpsRobot(BpsDatastore *aDatastore, const QVariant &aZone, QObject *aParent=0)