Iteration 2 ‐ Safety - tj0vtj0v/KI-B-4-Software_Engineering GitHub Wiki

Sprint Retrospective 04.06.2025


1. Iteration Name

Security Features and Safety Circuits


2. Iteration Deliverable

Iteration 2 finished (v_0.2)


3. Duration

  • Start Date: 02.05.2025
  • End Date: 04.05.2025

4. Addressed Issues


5. Selected Requirements

Functional Requirements:

  • REQ-1.1.1
  • REQ-1.1.2
  • REQ-1.1.4
  • REQ-1.1.5
  • REQ-1.2.3
  • REQ-1.2.4
  • REQ-1.2.6
  • REQ-1.2.12

Non-functional Requirements:

  • REQ-2.1.1
  • REQ-2.1.2
  • REQ-2.2.1
  • REQ-2.2.2
  • REQ-2.2.3
  • REQ-2.2.4
  • REQ-2.2.5

6. Detailed Design Notes

Magnetron Modulator

  • Design pattern: Singleton
  • Diagram:
    Magnetron

Sensor Manager

  • Design pattern: Singleton
  • Diagram:
    SensorReader

Door Controller

  • Design pattern: Singleton
  • Diagram:
    DoorController

Alarm Controller

  • Design pattern: Singleton
  • Diagram:
    AlarmController

7. Definition of Done Checklist

  • Magnetron Modulator correctly calculates and sets target power
  • Sensor Reader aggregates and provides sensor values from all sources
  • Sensor Reader follows the Singleton design correctly
  • Unexpected door opening causes entry into emergency state
  • Alarm Controller correctly activates and deactivates alarms
  • Magnetron Modulator follows the Singleton design pattern
  • Door Controller follows the Singleton design pattern
  • Alarm Controller follows the Singleton design pattern
  • Diagrams for each module are present and accurately reflect implementation
  • All relevant unit tests achieve minimum 90% coverage
  • Integration tests confirm interaction between SensorReader and consumers
  • Static code analysis reveals no critical issues
  • Documentation is updated with patterns, diagrams, and module responsibilities
  • No high-severity bugs are open for implemented modules

8. Test Objective

Magnetron Modulator

  • Validate correct computation and setting of target power
  • System adjusts magnetron power within defined tolerance range
  • Correct modulation is ensured

Sensor Reader

  • Confirm singleton instance is used across components
  • All sensor values are updated and retrievable

Door Controller

  • Test locking/unlocking based on control logic
  • Door locks when system starts
  • Unexpected door opening triggers emergency state

Alarm Controller

  • Check alarm state control
  • Alarm activates when emergency is triggered
  • Alarm deactivates on system recovery

Integration Tests

  • Ensure module interaction correctness
  • SensorReader provides consistent data to all requesting modules
  • Unexpected door open engages Emergency Handler correctly
  • Emergency Handler activates AlarmController

9. Implementation Summary


10. Lessons Learned

Successes

  • Significant portion of functionality implemented successfully
  • Remaining components designed for seamless integration
  • Comprehensive test coverage achieved

Challenges

  • Initial misalignment in prioritizing safety features versus program control affected planning
  • Underestimation of effort and time required to complete the iteration

11. Improvement Plan

Prioritization Alignment

Cause:

  • Conflicting interpretations of requirement priorities between safety and program control

Prevention:

  • Clarify and document priority hierarchy at project outset
  • Base planning primarily on the Traceability Matrix priorities

Likelihood of Recurrence:

  • Moderate

Contingency:

  • Schedule priority review checkpoints with peers during iteration planning

Iteration Estimation

Cause:

  • Inaccurate estimation of workload and time needed for tasks

Prevention:

  • Implement more detailed task breakdowns and continuous time tracking
  • Plan shorter, more manageable iterations

Likelihood of Recurrence:

  • Moderate

Contingency:

  • Proactively reassess iteration scope and reduce it if necessary