Door Service Example#

Attention

Purpose: Vehicle Abstraction, Vehicle Function is independent from the vehicle, independent from the number of doors of the vehicle.

Note

Example can be found in <output-folder>/examples/bin:
door_demo_example
door_external_app

Hint

The function should automatically lock the doors a few seconds after all doors have been closed:

  • one or more signals, depending on the number of doors, are input signals. The signals represents the status of a single door (opened or closed).

  • The same number of signals are output signals. These signals will lock the doors.

  • The function (complex service) must work independently from the number of doors.

  • After all doors are closed, a ‘timer’ should be started so that after some seconds the doors are locked. If no door is reopened of course.

  • Doors can be reopened at any time and will unlock the doors if they have been locked.

Attention

For safety reasons, the concept is as follows: First, the system is in configuration mode, and services like the timer service can be created. After all components are configured, the system must switch to running mode. In this mode, the timer service does not allow the creation of additional timers. That’s why we do not use the timer service in this example.

../../../_images/door_service_example.png