Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Project Management

The general project meeting takes place in the Railwayroom, Tuesday at 16:00.


Development Environment

KIELER

Use the KIELER Nightly Build. Keep your version up-to-date.
You can update to a new version from within your running installation via Help > Check for updates. Thus it is not necessary to download the KIELER archive every time.

Use UTF-8 as codepage (especially when using Windows):

  • General > Workspace
    • Text file encoding: UTF-8

It may be helpful to configure the following settings to avoid Resource is out of sync warnings in Eclipse:

  • General > Workspace
    • Refresh using native hooks or polling: Check
    • Refresh on access
    • Save automatically before build

Code Style

General

Use an indentation of 2 Spaces:

  • General > Text Editors
    • Insert Spaces for Tabs: Check
    • Displayed Tab Width: 2

SCT Style

Use the following style when modeling an SCChart:

  • General order
    • inputs first
    • outputs second
    • internal variables third
    • regions and states afterwards
  • Name all regions if you have at least two (no implicit region, unless there is only one)
  • Naming
    • For semantically relevant names, use lower case with underscores (e.g. state some_long_state_name)
    • For labels and stuff that is intended to increase readability, use more natural english (e.g. state some_long_state_name "Wait for orders")
SCT Code Style
scchart {

  input bool trigger;
  output bool action0, action1;
  int fun;

  region first_region "Have fun":
  // State example
  initial state example_state
  --> example_state "Having fun"
    with trigger
    / action0 = true
    ; action1 = false
    ; fun++
  ;

  // Region
  region second_region "Do nothing concurrently":

  initial state init;
}


Use the following convention when naming states, transitions and other stuff:

Git

Use git.

Pull before you start coding.

Add a commit message.

In case of non-trivial conflicts: ask.


  • No labels