Components

The component diagram below shows the architecture of generated and created Railway Controller.

components.png

SCCharts Contoroller

Unknown macro: noformat. Click on this message for details.

This component is the compiled Controller-SCChart.

The interface offers an the sequential synchronous tick function and additionally access to some internal variables to determine the internal state of the SCChart during execution. Furthermore the component uses the provided hostcode-interface to control the railway.

Hostcode

Unknown macro: noformat. Click on this message for details.

This component provides an interface to affect the railway and request events.

The interface provides shorter and simpler access to most of the railway API. To prevent conflicts with existing function names all functions in our interface are prefixed with rail.

Most controls and requests are forwarded to the controller maintaining the synchronous environment of the tick-function. Some controls which do not require this maintenance are directly forwarded to the railway API.

The hostcode header contains the general documentation for any hostcode call used in the SCChart.

Controller

Unknown macro: noformat. Click on this message for details.

The core controller component sets up a connection to the railway, maintains an environment for the synchronous tick-function and invokes the tick-function in a loop.

Additionally some time tracking is performed to determine time consumption of the tick function and its environment.

To increase the robustness of the system the controller checks internal permissions of the SCChart-Controller against detected trains on the railway.

State Monitor

Unknown macro: noformat. Click on this message for details.

The state monitor component allows a thread-safe communication between connected GUIs and the running controller. This communication is also tick-safe and

GUI Server

Unknown macro: noformat. Click on this message for details.

Interaction

GUI

The controller allows multiple GUIs to connect and interact with the controller.

Interrupts

Quit, Pause and Cleanup

While running the console the following user inputs are provided by the controller:

  • CTRL+C (SIGINT) quits the controller
  • CTRL+\ (SIGQUIT) cleans up
  • CTRL+Z (SIGSTP) pauses and continues
Tags:
Created by Alexander Schulz-Rosengarten on 2014/08/20 10:43