18-649 Scenarios and Sequence Diagrams 
 
18649 Spring 2010
Group 7 - Justin Ray / justinr2
 
 Scenarios: 
 
Use Case 1: Customer inserts
a quarter
 Scenario 1A: Customer
inserts a coin when the cost of a soda has not been reached
Author:  Justin Ray/justinr2
 Pre-Conditions: 
  - The soda machine is not vending.
- No button is pressed.
- The system has received fewer coins than the cost of a soda since
the last vend cycle.
 
 Scenario: 
  - The customer inserts a coin.
 Post-Conditions: 
  - The soda machine has one additional coin for this vend cycle.
 
Sequence Diagram: 
 
SD Audit
  - Name of the person conducting the
audit? Justin Ray/justinr2
 
- Are the events in the sequence
diagram consistent with the steps in the scenario?  yes
 
- Are all arcs labeled with a valid
command in the sequence diagram? yes
 
- Are all arcs correctly colored
(blue for physical message, black for network messages)? yes
 
- Are all boxed items correct parts
of the elevator architecture? yes
 
- Does each message arc in the
sequence diagram originate from the correct object (according to the
interfaces defined in the Requirements I and II documents)? yes
 
 
 Scenario 1B: Customer
inserts a coin when the cost of a soda has been reached but no button
pressed
Author:  Justin Ray/justinr2
 Pre-Conditions: 
  - The soda machine is not vending.
- No button is pressed.
- The system has received the correct number of coins for the cost
of a
soda since the last vend cycle.
 
 Scenario: 
  - The customer inserts a coin.
- The coin is returned.
 
 Post-Conditions: 
  - The soda machine has the same number of coins.
 
 Sequence Diagram: 
 
SD Audit
  - Name of the person conducting the
audit?  Justin Ray/justinr2 
- Are the events in the sequence
diagram consistent with the steps in the scenario? yes
 
- Are all arcs labeled with a valid
command in the sequence diagram? yes
 
- Are all arcs correctly colored
(blue for physical message, black for network messages)? yes
 
- Are all boxed items correct parts
of the elevator architecture? yes
 
- Does each message arc in the
sequence diagram originate from the correct object (according to the
interfaces defined in the Requirements I and II documents)? yes
 
 Scenario 1C: Customer
inserts a coin while holding down a soda button
Author:  Justin Ray/justinr2
 Pre-Conditions: 
  - The soda machine is not vending.
- Soda button s is pressed.
- The system has received the one less than the correct number of
coins for the cost of a
soda since the last vend cycle.
- The VendCarriage is parked in front of chute r, r
> s.
 Scenario: 
  - The customer inserts a coin.
- The light on the soda button s
begins flashing.
- The VendPositionControl aligns with soda chute s.
- The soda is vended.
- The light on the soda button s
stops flashing.
 
 Post-Conditions: 
  - The system retains the cost of the soda and has one less soda of
type s.
 Sequence Diagram: 
  
 
SD Audit
  - Name of the person conducting the
audit?  Justin Ray/justinr2 
- Are the events in the sequence
diagram consistent with the steps in the scenario? yes
 
- Are all arcs labeled with a valid
command in the sequence diagram? yes
 
- Are all arcs correctly colored
(blue for physical message, black for network messages)? yes
 
- Are all boxed items correct parts
of the elevator architecture? yes
 
- Does each message arc in the
sequence diagram originate from the correct object (according to the
interfaces defined in the Requirements I and II documents)? yes
 
 
Use Case 2: Customer pushes a
soda button
 Scenario 2A: Customer
pushes a soda button when the correct amount has been paid
Author:  Justin Ray/justinr2
 Pre-Conditions: 
  - The soda machine is not vending.
- No button is pressed.
- The system has received the correct number of coins for the cost
of a
soda since the last vend cycle.
- The VendCarriage is parked in front of chute r, r
< s.
 
 Scenario: 
  - The Customer pushes soda button s.
- The light on the soda button s
begins flashing.
- The VendPositionControl aligns with soda chute s.
- The soda is vended.
- The light on the soda button s
stops flashing.
 
 Post-Conditions: 
  - The system retains the cost of the soda and has one less soda of
type s.
 
 Sequence Diagram: 
  
 
SD Audit
  - Name of the person conducting the
audit?  Justin Ray/justinr2 
- Are the events in the sequence
diagram consistent with the steps in the scenario? yes
 
- Are all arcs labeled with a valid
command in the sequence diagram? yes
- Are all arcs correctly colored
(blue for physical message, black for network messages)? yes 
- Are all boxed items correct parts
of the elevator architecture? yes
- Does each message arc in the
sequence diagram originate from the correct object (according to the
interfaces defined in the Requirements I and II documents)? yes