Chapter 24
Chapter 24
Architecture and
Design
24
Real-Time Software
Architecture
Case Study
SWD391
PROBLEM
DESCRIPTION
• An AGV System has the following characteristics:
• A computer-based AGV can move along a track in the factory in a clockwise
direction, and start and stop at factory stations. The AGV has the following
characteristics:
1. A motor, which is commanded to Start Moving and Stop Moving. The
motor
sends Started and Stopped responses.
2. An arrival sensor to detect when the AGV has arrived at a station, e.g.,
arrived at station x. If this is the destination station, the AGV should stop. if
it is not the destination station, the AGV should continue moving past the
station.
3. A robot arm for loading and unloading a part onto and off of the AGV.
• The AGV system receives Move commands from an external Supervisory
System. It sends vehicle Acknowledgements (Acks) to the Supervisory
System
• indicating that is has started moving, passed a station, or stopped at a
station. The AGV system also sends vehicle status to an external Display
System every 30 seconds.
• It is given that the arrival sensor is an event-driven input device and that the
motor and arm are passive I/O devices. It is also given that the AGV system
communicates with the Supervisory System and Display System by means of
messages.
USE CASE MODELING
• The use case model for the AGV System is depicted in
Figure 24.1. From the problem description, it can be
determined that there are two use cases, one dealing with
the vehicle moving to a station and the second dealing with
sending vehicle status to the display system.
• There are four actors: Supervisory System, Display System,
Arrival Sensor, and Clock.
• From the perspective of the AGV System, the Supervisory
System and Display System are external system actors.
• The Arrival Sensor is an input device actor, whereas the
Clock is a timer actor. The use case descriptions are given
next.
2.1 Move to Station Use Case
• Alternative sequences:
• Step 6: If the vehicle arrives at a different station from the
destination station, the vehicle passes the station without
stopping and sends a “Passed factory station (#) without
stopping” message to the Supervisory System.
• Steps 8, 9: If the Supervisory System requests the AGV to
move to a factory station and unload a part, the AGV will
unload the part after it arrives at the destination station.
• Postcondition: AGV has completed its mission and is at the
destination station
2.2 Send Status Use Case
• Main sequence:
1. Clock notifies AGV System that the timer has expired.
2. AGV System reads the status information about AGV
location and idle/busy status.
3. AGV System sends the AGV status information to the
Display System.
• Postcondition: AGV system has sent status information
STATIC MODELING
• This section describes the static model, which consists of the
system context model and the entity class model.
3.1 Conceptual Static Modeling