You are on page 1of 11

Assignment 1 ddy

Springs Bottled
Water Company
Description
You have been retained as a Software Engineering
consultant to the Muddy Springs Bottled Water
Company. The company runs a water bottling plant
which is currently undergoing dramatic improvements
in equipment and capacity. As part of these
improvements an Automated Monitoring and Control
System (AMAC) is being developed as specified below.
Your job is to oversee development of the real-time
software required for the AMAC.
Assignment 1 ddy Springs Bottled Water 201
Company 5

Question 1:

The following diagram represents all the entities that are involved in the Muddy Springs water
Company plant. This also includes details about the cardinality and modularity between them.
The Following are the entities that are involved:
 Reservoirs
 Pumping Station
 Pumps
 Header Tank
 Valves
 Washing
 Filling
 Store Room
 Bottles
The diagram above demonstrates all the required communication between the entities. The
1(one) and M (many) is used to denote modularity.

1|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5

QUESTION 2: DATA FLOW DIAGRAM

Continued on the Next Page

2|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5

The complete flow of data and controls needed for the operation of the plant has been shown in
the above diagram.
Question 3: Process Specification - Pseudo Code
PROCESS 1:
First Process is responsible for monitoring water level in tank and filling when required
Start
FOR infinitely
Read water level
Store in DB
IF water level less than 2.2
Start pump1
Store in DB
3|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5
END IF
WHILE water level greater than 1.5 or water level less than 3 (Only 1 pump is on)
Read water level
Store in DB
Continue
END WHILE
IF water level greater than 3
Stop pump1
Store in DB
JUMP to start of process
ELSE IF water level less than 1.5 (Both Pumps are on)
Start pump2
Store in DB
END IF
WHILE water level less than 3
IF water level less than 0.25
Raise Alarm
Display Msg on user console
END IF
Read water level
Store in DB
Continue
END WHILE
IF water level equals to greater than 3
Stop pump1
Stop Pump 2
Store in DB

4|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5
JUMP to start of process
End IF
END FOR
Process 1 ends
PROCESS 2:
Second Process is responsible for collection of bottles and washing them
WHILE batch of bottle is not available
Be ideal
END WHILE
IF bottles have arrived
Collect Bottles
Verify count
Deliver to washing area
END IF
Open ValveB
Open ValveC
Open ValveE
Open ValveF
Close ValveD
WHILE all bottles not washed
Continue;
END WHILE
Close Valve C
Process 2 ends
PROCESS 3:
Third process is responsible for transfer of the washed bottles to the store room
WHILE all bottles not washed

5|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5
Continue
END WHILE
Set bottles on C1
 JUMP POINT1

IF store room not full


Start transfer via C1
END IF
WHILE store room not full or transfer not completed
Continue
END WHILE
IF transfer completed
Notify on operator console
JUMP to start of process
ELSE
WHILE store room is full
Continue
END WHILE
JUMP to POINT1
END IF
Process 3 ends
PROCESS 4:
Fourth process is responsible for collection of bottles from store room and fills water in them
WHILE batch not ready to be filled
Continue
END WHILE
IF batch ready

6|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5
IF conveyor C2 is not running
Raise Alarm
Wait for manual start
JUMP to start of process
END IF
IF valveA is closed
Raise Alarm
Wait for manual open of ValveA
Jump to Start of process
END IF
END IF
Start filling
WHILE filling not completed
IF water level greater than 3 or water level less than 0.25 or under maintenance or manual
stop
Raise Alarm
Plant Hault
Wait for manual Start
Jump to Start of process
END IF
END WHILE
Send bottle for packing
Process 4 ends

7|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5

8|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5

Question 4: State Machine Diagram (SMD)

9|Page
Assignment 1 ddy Springs Bottled Water 201
Company 5
The chart above is a state outline which demonstrates every conceivable state and the activity
that can trigger the change of state starting with one then onto the next. The begin point is plainly
checked. As the stream advances, move from every state can happen to different states. This
relies on upon different conditions that have been caught.

Question 5:
Data Dictionary:
The following are the abbreviations that have been used throughout the document:
Data Dictionary
ERD Entity Relationship
Diagram
SMD State Machine Diagram
DFD Data Flow Diagram
1 One
M Many
Msg Message

10 | P a g e

You might also like