Chapter1 Train UML Example

Chapter1 Train UML Example - Example Model Train Controller...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Purposes of example: Follow a design through several levels of abstraction. Gain experience with UML. Example: Model Train Controller
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Model train setup console power supply rcvr motor ECC address header command
Background image of page 2
Requirements Console can control 8 trains on 1 track. Throttle has at least 63 levels. Inertia control adjusts responsiveness with at least 8 levels. Emergency stop button. Error detection scheme on messages.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Requirements form name model train controller purpose control speed of <= 8 model trains inputs throttle, inertia, emergency stop, train # outputs train control signals functions set engine speed w. inertia; emergency stop performance can update train speed at least 10 times/sec manufacturing cost $50 power wall powered physical size/weight console comfortable for 2 hands; < 2 lbs.
Background image of page 4
Conceptual specification Before we create a detailed specification, we will make an initial, simplified specification. Gives us practice in specification and UML. Good idea in general to identify potential problems before investing too much effort in detail.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Basic system commands command name parameters set-speed speed (positive/negative) set-inertia inertia-value (non-negative) estop none
Background image of page 6
Typical control sequence : console : train_rcvr set-inertia set-speed set-speed set-speed estop Time
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Message classes command set-inertia value: unsigned- integer set-speed value: integer estop
Background image of page 8
Roles of message classes Implemented message classes derived from message class. Attributes and operations will be filled in for detailed
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 35

Chapter1 Train UML Example - Example Model Train Controller...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online