| | |
| | | #include "CArmTray.h" |
| | | #include "CCLinkIEControl.h" |
| | | #include "CRobotTask.h" |
| | | |
| | | #include "ProcessJob.h" |
| | | |
| | | |
| | | #define CTStep_Unknow 0 |
| | |
| | | ONCTROUNDEND onCTRoundEnd; |
| | | } MasterListener; |
| | | |
| | | class CMaster |
| | | class CMaster : public IResourceView |
| | | { |
| | | public: |
| | | CMaster(); |
| | |
| | | void onTimer(UINT nTimerid); |
| | | std::list<CEquipment*>& getEquipmentList(); |
| | | CEquipment* getEquipment(int id); |
| | | CEquipment* getEquipment(int id) const; |
| | | void setCacheFilepath(const char* pszFilepath); |
| | | int abortCurrentTask(); |
| | | int restoreCurrentTask(); |
| | |
| | | int carrierRelease(unsigned int port); |
| | | int getContinuousTransferCount(); |
| | | void setContinuousTransferCount(int round); |
| | | int setProcessJobs(std::vector<SERVO::CProcessJob*>& pjs); |
| | | CLoadPort* getPortWithCarrierId(const std::string& carrierId) const; |
| | | |
| | | private: |
| | | inline void lock() { EnterCriticalSection(&m_criticalSection); } |
| | |
| | | CRobotTask* createTransferTask_restore(CEquipment* pEqSrc, CLoadPort** pPorts); |
| | | CRobotTask* createTransferTask_continuous_transfer(CEquipment* pSrcEq, int nSrcSlot, |
| | | CEquipment* pTarEq, int nTarSlot, int armNo = 1); |
| | | |
| | | public: |
| | | // —— IResourceView 覆写 ——(注意 const) |
| | | bool isProcessJobsEmpty() const override; |
| | | bool recipeExists(const std::string& ppid) const override; |
| | | bool carrierPresent(const std::string& carrierId) const override; |
| | | bool slotUsable(const std::string& carrierId, uint16_t slot) const override; |
| | | bool ceidDefined(uint32_t ceid) const override; |
| | | |
| | | private: |
| | | CRITICAL_SECTION m_criticalSection; |
| | |
| | | private: |
| | | bool m_bEnableEventReport; |
| | | bool m_bEnableAlarmReport; |
| | | std::vector<SERVO::CProcessJob*> m_processJobs; |
| | | }; |
| | | } |
| | | |