Question
Hi, I need help to create this fisrt part of the Workstation Class in C++: TheWorkstationmodule consists of three double-ended queues ofCustomerOrderand theWorkstationclass. The queues
Hi, I need help to create this fisrt part of the Workstation Class in C++:
TheWorkstationmodule consists of three double-ended queues ofCustomerOrderand theWorkstationclass. The queues (global variables) hold the orders at either end of the assembly line:
- pendingholds the orders to be placed onto the assembly line at the first station.
- completedholds the orders that have been removed from the last station and have been completely filled.
- incompleteholds the orders that have been removed from the last station and could not be filled completely.
Each queue is accessible outside this module's translation unit.
TheWorkstationclass defines the structure of an active station on the assembly line and contains all the functionality for filling customer orders with station items. EachWorkstationis-a-kind-ofStation. AWorkstationobject manages order processing for a singleItemon the assembly line. Since aWorkstationobject represents a single location on the assembly line for filling customer orders with items, the object cannot be copied or moved. Make sure that this capability is deleted in your definition of theWorkstationclass.
TheWorkstationclass includes the following additional information:
Instance Variables
- m_orders- is a double ended queue withCustomerOrdersentering the back and exiting the front. These are orders that have been placed on this station to receive service (or already received service).
- m_pNextStation- a pointer to the nextWorkstationon the assembly line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started