SlideShare a Scribd company logo
1 of 28
RMK COLLEGE OF ENGINEERING AND
TECHNOLOGY
DEPARTMENT OF ELECTRONICS AND
COMMUNICATION ENGINEERING
EC8791
EMBEDDED AND REAL TIME SYSTEMS
S. Rajalakshmi
AP/ECE
UML (Unified Modeling Language)
Visual language used to capture the design tasks.
Encourages design by successive rather than re-thinking the design at each new
level of abstraction.
UML is an object-oriented modeling language. Used to model the outside world
that interacts with the system (Objects- People/Machines)
(i) Structural Description
Specify the overall structure of the design
(ii) Behavioral Description
Used to specify the behavior of the system. One way to specify the behavior of
an operation is a state machine.
The UML description of the Display class - An object describing a display (such as a CRT
screen)
UML DIAGRAM
1. Edraw Max
2. Moqups
3. Microsoft Visio
4. Concept Draw
5. Star UML
6. Umbrello
7. UML Designer Tool
8. Altova
UML tools
3. DESIGN EXAMPLE: MODEL TRAIN CONTROLLER
Model train
setup
Model train controller – WORKING PRINCIPLE
The user sends messages to the train with a control box attached to the
tracks. The control box consists of a console, throttle, emergency stop
button, and so on.
Since the train receives its electrical power from the two rails of the track, the
control box
can send signals to the train over the tracks by modulating the power supply
voltage.
The control panel sends packets over the tracks to the receiver on the train.
This is a one-way communication system—the model train cannot send
commands back to
the user.
Requirements
Consolecontrols up to 8 trains on 1 track.
Throttle hasat least 63 levels.
Inertia control adjustsresponsiveness with at least 8 levels.
Emergency stop button.
Error detection scheme on messages.
Ignore erroneous messages
Requirements form
name
purpose
inputs
outputs
functions
performance
model train controller
control speed of <= 8 model trains throttle,
inertia, emergency stop, train #
train control signals
set engine speed w. inertia;
emergency stop
can update train speed at least 10
times/sec
manufacturing cost $50
power
physical
size/weight
wall powered
console comfortable for 2 hands; < 2 lbs.
Requirements form
name
purpose
inputs
outputs
functions
performance
model train controller
control speed of <= 8 model trains throttle,
inertia, emergency stop, train #
train control signals
set engine speed w. inertia;
emergency stop
can update train speed at least 10
times/sec
manufacturing cost $50
power
physical
size/weight
wall powered
console comfortable for 2 hands; < 2 lbs.
8
The DCC standard is given in two documents:
■Standard S-9.1, the DCC Electrical Standard, defines how bits are
encoded on the rails for transmission.
■Standard S-9.2, the DCC Communication Standard, defines the
packets that carry information.
.
DCC electrical standard
1 is 58 s, 0 is at least 100
s.
time
logic 1 logic 0
58 s >= 100 s
10
DCC packet types
• Baseline packet: minimum packet that must be
accepted by all DCC implementations.
– Address data byte gives receiver address.
– Instruction data byte gives basic instruction.
– 0110 1 0 10
– Error correction data byte gives ECC.
11
DCC communication standard
• Basic packet format: PSA(sD)+E.
• P: preamble = 1111111111.
• S: packet start bit = 0.
• A: address data byte.
• s: data byte start bit.
• D: data byte (info in CU bit format )
• E: packet end bit = 1.
12
Functions
Console:
read state of front panel;
format messages;
Transmit messages.
Train:
receive message;
interpret message;
control the train.
(i)Conceptual specification
13
Console system classes
1
1
1
1
console
1
1
formatter
panel
1
1
receiver*
transmitter
1
1
sender*
15
Train system classes
1
1 motor
interface
1
1
pulser*
train set
1
1..t
train
1 1
controller
1
1
receiver
1
1
detector*
16
Train speed control
• Motor controlled by pulse width modulation:
+
V
-
17
(ii)Console physical object classes
knobs*
train-knob: integer speed-knob:
integer inertia-knob: unsigned-
integer
emergency-stop: boolean
Set-knobs()
pulser*
pulse-width: unsigned-
integer
direction: boolean
sender*
send-bit()
detector*
read-bit() : integer
Panel and motor interface classes
panel
train-number() : integer speed()
: integer inertia() : integer
estop() : boolean
new-settings()
motor-interface
speed: integer
Transmitter and receiver classes
transmitter
send-speed(adrs: integer,
speed: integer)
send-inertia(adrs: integer, val:
integer)
set-estop(adrs: integer)
receiver
current: command new:
boolean
read-cmd()
new-cmd() : boolean rcv-
type(msg-type:
command) rcv-
speed(val: integer) rcv-
inertia(val:integer)
Formatter class
formatter
current-train: integer
current-speed[ntrains]: integer
current-inertia[ntrains]:
unsigned-integer
current-estop[ntrains]: boolean
send-command()
panel-active() : boolean
operate()
Formatter class holds state for each
train, setting for current train.
The operate() operation performs
the basic formatting task.
Sequence Diagram for transmitting a control input.
Sequence diagram for set-speed command received by the train
EC8791 UML-model train controller

More Related Content

What's hot

What's hot (20)

register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
Stick Diagram and Lambda Based Design Rules
Stick Diagram and Lambda Based Design RulesStick Diagram and Lambda Based Design Rules
Stick Diagram and Lambda Based Design Rules
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
Ec8791 arm 9 processor
Ec8791 arm 9 processorEc8791 arm 9 processor
Ec8791 arm 9 processor
 
Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...
Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...
Embedded Systems (18EC62) - ARM Cortex-M3 Instruction Set and Programming (Mo...
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
Satellite link design
Satellite link designSatellite link design
Satellite link design
 
VLSI subsystem design processes and illustration
VLSI subsystem design processes and illustrationVLSI subsystem design processes and illustration
VLSI subsystem design processes and illustration
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and Programming
 
Earth Station Subsystem
Earth Station SubsystemEarth Station Subsystem
Earth Station Subsystem
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Digital communication systems unit 1
Digital communication systems unit 1Digital communication systems unit 1
Digital communication systems unit 1
 
EC8791 designing with computing platform
EC8791 designing with computing platformEC8791 designing with computing platform
EC8791 designing with computing platform
 
TMS320C6X Architecture
TMS320C6X ArchitectureTMS320C6X Architecture
TMS320C6X Architecture
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
EC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysisEC8791 consumer electronics-platform level performance analysis
EC8791 consumer electronics-platform level performance analysis
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 

Similar to EC8791 UML-model train controller

Metrofile111111111 150706071159-lva1-app6892
Metrofile111111111 150706071159-lva1-app6892Metrofile111111111 150706071159-lva1-app6892
Metrofile111111111 150706071159-lva1-app6892
yogeshingle4
 

Similar to EC8791 UML-model train controller (20)

Unit 1a train
Unit 1a trainUnit 1a train
Unit 1a train
 
Unit 1a train
Unit 1a trainUnit 1a train
Unit 1a train
 
MODEL TRAIN CONTROLLER.pptx
MODEL TRAIN CONTROLLER.pptxMODEL TRAIN CONTROLLER.pptx
MODEL TRAIN CONTROLLER.pptx
 
Introduction to embedded computing and arm processors
Introduction to embedded computing and arm processorsIntroduction to embedded computing and arm processors
Introduction to embedded computing and arm processors
 
Black Box for a Car
Black Box for a CarBlack Box for a Car
Black Box for a Car
 
profibus theory solution
profibus theory solutionprofibus theory solution
profibus theory solution
 
tutorial_pscad.pptx
tutorial_pscad.pptxtutorial_pscad.pptx
tutorial_pscad.pptx
 
CE150--Hongyi Huang
CE150--Hongyi HuangCE150--Hongyi Huang
CE150--Hongyi Huang
 
DiamondH1_EN
DiamondH1_ENDiamondH1_EN
DiamondH1_EN
 
Cp1l p081 e1-2_1_csm1004101-ok
Cp1l p081 e1-2_1_csm1004101-okCp1l p081 e1-2_1_csm1004101-ok
Cp1l p081 e1-2_1_csm1004101-ok
 
Ch12
Ch12Ch12
Ch12
 
Combitronic: Multi-axis Control with Animatics SmartMotors
Combitronic: Multi-axis Control with Animatics SmartMotorsCombitronic: Multi-axis Control with Animatics SmartMotors
Combitronic: Multi-axis Control with Animatics SmartMotors
 
final_of_can_bus_ (1).ppt
final_of_can_bus_ (1).pptfinal_of_can_bus_ (1).ppt
final_of_can_bus_ (1).ppt
 
Metro Train Automation & display System
Metro Train Automation & display SystemMetro Train Automation & display System
Metro Train Automation & display System
 
Metrofile111111111 150706071159-lva1-app6892
Metrofile111111111 150706071159-lva1-app6892Metrofile111111111 150706071159-lva1-app6892
Metrofile111111111 150706071159-lva1-app6892
 
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
IEEE Paper A SystemC AMS Model  of an I2C Bus ControllerIEEE Paper A SystemC AMS Model  of an I2C Bus Controller
IEEE Paper A SystemC AMS Model of an I2C Bus Controller
 
intelligent braking system report
intelligent braking system reportintelligent braking system report
intelligent braking system report
 
Himanth_Resume
Himanth_ResumeHimanth_Resume
Himanth_Resume
 
Autonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS HardwareAutonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS Hardware
 
Project Report
Project ReportProject Report
Project Report
 

More from RajalakshmiSermadurai

More from RajalakshmiSermadurai (14)

Ec8791 lpc2148 pwm
Ec8791 lpc2148 pwmEc8791 lpc2148 pwm
Ec8791 lpc2148 pwm
 
Ec8791 lpc2148 uart
Ec8791 lpc2148 uartEc8791 lpc2148 uart
Ec8791 lpc2148 uart
 
Ec8791 lpc2148
Ec8791 lpc2148Ec8791 lpc2148
Ec8791 lpc2148
 
Ec8791 lpc2148 timer unit
Ec8791 lpc2148 timer unitEc8791 lpc2148 timer unit
Ec8791 lpc2148 timer unit
 
EC8791 Design Methodologies
EC8791 Design MethodologiesEC8791 Design Methodologies
EC8791 Design Methodologies
 
EC8791 Requirement-Specifications-Quality assurance techniques
EC8791 Requirement-Specifications-Quality assurance techniquesEC8791 Requirement-Specifications-Quality assurance techniques
EC8791 Requirement-Specifications-Quality assurance techniques
 
Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systems
 
Task assignment and scheduling
Task assignment and schedulingTask assignment and scheduling
Task assignment and scheduling
 
Fault tolerance techniques
Fault tolerance techniquesFault tolerance techniques
Fault tolerance techniques
 
Estimating program run time
Estimating program run timeEstimating program run time
Estimating program run time
 
Introduction and structure of a real time system
Introduction and structure of a real time systemIntroduction and structure of a real time system
Introduction and structure of a real time system
 
Embedded system design process
Embedded system design processEmbedded system design process
Embedded system design process
 
Embedded system introduction
Embedded system introductionEmbedded system introduction
Embedded system introduction
 
EC6703 unit-4
EC6703 unit-4EC6703 unit-4
EC6703 unit-4
 

Recently uploaded

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 

Recently uploaded (20)

scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 

EC8791 UML-model train controller

  • 1. RMK COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC8791 EMBEDDED AND REAL TIME SYSTEMS S. Rajalakshmi AP/ECE
  • 2. UML (Unified Modeling Language) Visual language used to capture the design tasks. Encourages design by successive rather than re-thinking the design at each new level of abstraction. UML is an object-oriented modeling language. Used to model the outside world that interacts with the system (Objects- People/Machines) (i) Structural Description Specify the overall structure of the design (ii) Behavioral Description Used to specify the behavior of the system. One way to specify the behavior of an operation is a state machine.
  • 3. The UML description of the Display class - An object describing a display (such as a CRT screen)
  • 4.
  • 6. 1. Edraw Max 2. Moqups 3. Microsoft Visio 4. Concept Draw 5. Star UML 6. Umbrello 7. UML Designer Tool 8. Altova UML tools
  • 7. 3. DESIGN EXAMPLE: MODEL TRAIN CONTROLLER
  • 9. Model train controller – WORKING PRINCIPLE The user sends messages to the train with a control box attached to the tracks. The control box consists of a console, throttle, emergency stop button, and so on. Since the train receives its electrical power from the two rails of the track, the control box can send signals to the train over the tracks by modulating the power supply voltage. The control panel sends packets over the tracks to the receiver on the train. This is a one-way communication system—the model train cannot send commands back to the user.
  • 10. Requirements Consolecontrols up to 8 trains on 1 track. Throttle hasat least 63 levels. Inertia control adjustsresponsiveness with at least 8 levels. Emergency stop button. Error detection scheme on messages. Ignore erroneous messages
  • 11. Requirements form name purpose inputs outputs functions performance model train controller control speed of <= 8 model trains throttle, inertia, emergency stop, train # train control signals set engine speed w. inertia; emergency stop can update train speed at least 10 times/sec manufacturing cost $50 power physical size/weight wall powered console comfortable for 2 hands; < 2 lbs.
  • 12. Requirements form name purpose inputs outputs functions performance model train controller control speed of <= 8 model trains throttle, inertia, emergency stop, train # train control signals set engine speed w. inertia; emergency stop can update train speed at least 10 times/sec manufacturing cost $50 power physical size/weight wall powered console comfortable for 2 hands; < 2 lbs. 8
  • 13. The DCC standard is given in two documents: ■Standard S-9.1, the DCC Electrical Standard, defines how bits are encoded on the rails for transmission. ■Standard S-9.2, the DCC Communication Standard, defines the packets that carry information. .
  • 14. DCC electrical standard 1 is 58 s, 0 is at least 100 s. time logic 1 logic 0 58 s >= 100 s 10
  • 15. DCC packet types • Baseline packet: minimum packet that must be accepted by all DCC implementations. – Address data byte gives receiver address. – Instruction data byte gives basic instruction. – 0110 1 0 10 – Error correction data byte gives ECC. 11
  • 16. DCC communication standard • Basic packet format: PSA(sD)+E. • P: preamble = 1111111111. • S: packet start bit = 0. • A: address data byte. • s: data byte start bit. • D: data byte (info in CU bit format ) • E: packet end bit = 1. 12
  • 17. Functions Console: read state of front panel; format messages; Transmit messages. Train: receive message; interpret message; control the train.
  • 20. Train system classes 1 1 motor interface 1 1 pulser* train set 1 1..t train 1 1 controller 1 1 receiver 1 1 detector* 16
  • 21. Train speed control • Motor controlled by pulse width modulation: + V - 17
  • 22. (ii)Console physical object classes knobs* train-knob: integer speed-knob: integer inertia-knob: unsigned- integer emergency-stop: boolean Set-knobs() pulser* pulse-width: unsigned- integer direction: boolean sender* send-bit() detector* read-bit() : integer
  • 23. Panel and motor interface classes panel train-number() : integer speed() : integer inertia() : integer estop() : boolean new-settings() motor-interface speed: integer
  • 24. Transmitter and receiver classes transmitter send-speed(adrs: integer, speed: integer) send-inertia(adrs: integer, val: integer) set-estop(adrs: integer) receiver current: command new: boolean read-cmd() new-cmd() : boolean rcv- type(msg-type: command) rcv- speed(val: integer) rcv- inertia(val:integer)
  • 25. Formatter class formatter current-train: integer current-speed[ntrains]: integer current-inertia[ntrains]: unsigned-integer current-estop[ntrains]: boolean send-command() panel-active() : boolean operate() Formatter class holds state for each train, setting for current train. The operate() operation performs the basic formatting task.
  • 26. Sequence Diagram for transmitting a control input.
  • 27. Sequence diagram for set-speed command received by the train