Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OVERVIEW: A critical step of the project is to design a modeling and simulation infrastructure to experiment and validate the proposed solutions. Simulated company is an example that shows the documents produced when undertaking the analysis and design of an application that simulates a small manufacturing company. This application is called simco: Simulated Company. The project if focused on the user to take lend, purchase a machine and over a series of monthly and yearly production runs follows the concept of the company. The company has to see all the takings and the losses. They have to see all dealings of the company and see the additional features of the machine for better development. The company accounts are updated for a given month. The accounts take into the gross profits from the sales. General expenses such as salary and rent are taken into account to calculate the net profit for the company. In addition details such as inventory and sales are updated. As part of the case study, following analysis diagrams will be updated. o o o o o Usecase for the system Class diagram for initially identified classes. Activity diagram to show flow for each use case. Sequence and collaboration diagrams. Statechart diagram shows states before and after each action.
Conceptualization: Assumptions: The company has to take the loan and repay the loan. It has to purchase machinery and start the production. The sales person has to sell the foods and update the details in the record. The sales has to submit the record and stock details required. The performance department has to prepare record statistics as given by marketing department. The performance department has to get collected details from all the departments and submit to the company.
_ _ _ _
The amount of time required for sanctioning the loan. The amount of time needed for the production. The probability for estimating the machinery cost and raw materials. The probability of estimating profit and loss.
Outputs: _ _ _ _ _ Total time required in completing a project. The number of goods manufactured in a simulated time. Number of sales done in a project. Getting profit and loss for every month. Case study of the project.
Key Terms: Pay loan/repay loan Purchase machinery and start production. Sell the products and updated the records. The performance department has to update the statistics and to the company.
Modeling steps for Use case Diagram 1. Draw the lines around the system and actors lie outside the system. 2. Identify the actors which are interacting with the system. 3. Separate the generalized and specialized actors. 4. Identify the functionality the way of interacting actors with system and specify the behavior of actor. 5. Functionality or behavior of actors is considered as use cases. 6. Specify the generalized and specialized use cases. 7. Se the relationship among the use cases and in between actor and use cases. 8. Adorn with constraints and notes. 9. If necessary, use collaborations to realize use cases.
Modeling steps for Sequence Diagrams UNIFIED MODELING LANGUAGE Page no:
1. Set the context for the interactions, system, subsystem, classes, object or use cases. 2. Set the stages for the interactions by identifying objects which are placed as actions in interaction diagrams. 3. Lay them out along the X-axis by placing the important object at the left side and others in the next subsequent. 4. Set the lifelines for each and every object by sending create and destroy messages. 5. Start the message which is initiating interactions and place all other messages in the increasing order of items. 6. Specify the time and space constraints. Set the pre and post conditioned. Modeling steps for Collaboration Diagrams 1. Set the context for interaction, whether it is system, subsystem, operation or class or one scenario of use case or collaboration. 2. Identify the objects that play a role in the interaction. Lay them as vertices in graph, placing important objects in centre and neighboring objects to outside. 3. Set the initial properties of each of these objects. If the attributes or tagged values of an object changes in significant ways over the interaction, place a duplicate object, update with these new values and connect them by a message stereotyped as become or copy. 4. Specify the links among these objects. Lay the association links first represent structural connection. Lay out other links and adorn with stereotypes. 5. Starting with the message that initiates this interaction, attach each subsequent message to appropriate link, setting sequence number as appropriate. 6. Adorn each message with time and space constraints if needed 7. Attach pre & post conditions to specify flow of control formally.
1. Select the object that has high level responsibilities. 2. These objects may be real or abstract. In either case, create a swim lane for each important object. 3. Identify the precondition of initial state and post conditions of final state. 4. Beginning at initial state, specify the activities and actions and render them as activity states or action states. 5. For complicated actions, or for a set of actions that appear multiple times, collapse these states and provide separate activity diagram. 6. Render the transitions that connect these activities and action states. 7. Start with sequential flows, consider branching, fork and joining. 8. Adorn with notes tagged values and so on.
Page no:
Page no:
Class Diagram:
Page no:
Page no:
Sequence Diagram:
Page no:
Component Diagram
<<Application>>
Simulated company
RESULT: Thus various UML Diagrams were generated for SIMULATED COMPANY and the corresponding code was generated using Visual Basic.
Page no: