Sfoglia il codice sorgente

Moved examples to archive folder

Andreas Muelder 10 anni fa
parent
commit
ec07409ee2
79 ha cambiato i file con 7602 aggiunte e 7417 eliminazioni
  1. 274 274
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.cproject
  2. 2 0
      archive/org.yakindu.sct.examples.c.arduinoTrafficLight/.gitignore
  3. 40 0
      archive/org.yakindu.sct.examples.c.arduinoTrafficLight/.project
  4. 49 49
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/de.innot.avreclipse.core.prefs
  5. 67 67
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.cdt.codan.core.prefs
  6. 2 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.core.resources.prefs
  7. 2 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.ltk.core.refactoring.prefs
  8. 1 1
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/README
  9. 551 551
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/model/TrafficLight.sct
  10. 9 9
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/model/TrafficLight.sgen
  11. 22 22
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/CycleRunner.cpp
  12. 171 171
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/Main.cpp
  13. 19 19
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/TimeEvent.cpp
  14. 99 99
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/Timer.cpp
  15. 25 25
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/CycleRunner.h
  16. 46 46
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/TimeEvent.h
  17. 42 42
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/Timer.h
  18. 252 252
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.cproject
  19. 2 0
      archive/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.gitignore
  20. 41 0
      archive/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.project
  21. 49 49
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/de.innot.avreclipse.core.prefs
  22. 67 67
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.cdt.codan.core.prefs
  23. 2 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.core.resources.prefs
  24. 2 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.ltk.core.refactoring.prefs
  25. 551 551
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/model/TrafficLight.sct
  26. 9 9
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/model/TrafficLight.sgen
  27. 32 32
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/arduino.h
  28. 4 4
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/license
  29. 169 169
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/main.c
  30. 129 129
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/statetimer.c
  31. 26 26
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/statetimer.h
  32. 42 42
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/uart.cpp
  33. 20 20
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/uart.h
  34. 75 75
      examples/org.yakindu.sct.examples.c.trafficlight/.cproject
  35. 2 0
      archive/org.yakindu.sct.examples.c.trafficlight/.gitignore
  36. 104 0
      archive/org.yakindu.sct.examples.c.trafficlight/.project
  37. 2 2
      examples/org.yakindu.sct.examples.c.trafficlight/.settings/org.eclipse.core.resources.prefs
  38. 2 2
      examples/org.yakindu.sct.examples.c.trafficlight/.settings/org.eclipse.core.runtime.prefs
  39. 149 149
      examples/org.yakindu.sct.examples.c.trafficlight/Makefile
  40. 295 295
      examples/org.yakindu.sct.examples.c.trafficlight/Makefile.Debug
  41. 294 294
      examples/org.yakindu.sct.examples.c.trafficlight/Makefile.Release
  42. 94 94
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_PedestrianLightWidget.cpp
  43. 105 105
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TimeEvent.cpp
  44. 93 93
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TimerService.cpp
  45. 111 111
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightRunner.cpp
  46. 94 94
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightTimer.cpp
  47. 94 94
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightWidget.cpp
  48. 94 94
      examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_org_yakindu_sct_examples_c_trafficlight.cpp
  49. 43 43
      examples/org.yakindu.sct.examples.c.trafficlight/main.cpp
  50. 22 22
      examples/org.yakindu.sct.examples.c.trafficlight/model/GenModelJava.sgen
  51. 0 0
      archive/org.yakindu.sct.examples.c.trafficlight/model/TrafficLightWaiting.sct
  52. 0 0
      examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight
  53. 39 39
      examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.cpp
  54. 30 30
      examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.h
  55. 26 26
      examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.pro
  56. 31 31
      examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.ui
  57. 2098 2098
      examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaiting.c
  58. 137 137
      examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaiting.h
  59. 56 56
      examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaitingRequired.h
  60. 27 27
      examples/org.yakindu.sct.examples.c.trafficlight/src-gen/sc_types.h
  61. 31 31
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TimeEvent.cpp
  62. 38 38
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TimeEvent.h
  63. 38 38
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightRunner.cpp
  64. 39 39
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightRunner.h
  65. 43 43
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightTimer.cpp
  66. 44 44
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightTimer.h
  67. 32 32
      examples/org.yakindu.sct.examples.c.trafficlight/statemachine/stdbool.h
  68. 66 66
      examples/org.yakindu.sct.examples.c.trafficlight/ui_org_yakindu_sct_examples_c_trafficlight.h
  69. 38 38
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/CrossingWidget.cpp
  70. 35 35
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/CrossingWidget.h
  71. 51 51
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/PedestrianLightWidget.cpp
  72. 39 39
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/PedestrianLightWidget.h
  73. 53 53
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/TrafficLightWidget.cpp
  74. 39 39
      examples/org.yakindu.sct.examples.c.trafficlight/widgets/TrafficLightWidget.h
  75. 0 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.gitignore
  76. 40 40
      examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.project
  77. 0 2
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.gitignore
  78. 41 41
      examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.project
  79. 0 2
      examples/org.yakindu.sct.examples.c.trafficlight/.gitignore

File diff suppressed because it is too large
+ 274 - 274
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.cproject


+ 2 - 0
archive/org.yakindu.sct.examples.c.arduinoTrafficLight/.gitignore

@@ -0,0 +1,2 @@
+/bin/
+/target/

+ 40 - 0
archive/org.yakindu.sct.examples.c.arduinoTrafficLight/.project

@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.examples.c.arduinoTrafficLight</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.yakindu.sct.builder.SCTBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.core.ccnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+		<nature>de.innot.avreclipse.core.avrnature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+		<nature>org.yakindu.sct.builder.SCTNature</nature>
+	</natures>
+</projectDescription>

+ 49 - 49
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/de.innot.avreclipse.core.prefs

@@ -1,49 +1,49 @@
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ClockFrequency=16000000
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtRAMSize=0
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtendedRAM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/MCUType=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseExtendedRAMforHeap=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/BitBangDelay=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/Bitclock=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFile=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFile=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoChipErase=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoSigCheck=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoVerify=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoWrite=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/OtherOptions=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/ProgrammerID=programmerconfig.1
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/UseCounter=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteFlash=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ClockFrequency=16000000
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtRAMSize=0
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtendedRAM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/MCUType=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseExtendedRAMforHeap=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/BitBangDelay=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Bitclock=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFile=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFile=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/ByteValues=255\:222\:5
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/FileName=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/MCUid=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/UseFile=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/Write=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoChipErase=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoSigCheck=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoVerify=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoWrite=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/OtherOptions=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/ProgrammerID=programmerconfig.4
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/UseCounter=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteFlash=true
-avrtarget/perConfig=true
-eclipse.preferences.version=1
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ClockFrequency=16000000
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtRAMSize=0
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtendedRAM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/MCUType=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseExtendedRAMforHeap=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/BitBangDelay=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/Bitclock=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFile=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFile=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoChipErase=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoSigCheck=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoVerify=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoWrite=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/OtherOptions=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/ProgrammerID=programmerconfig.1
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/UseCounter=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteFlash=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ClockFrequency=16000000
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtRAMSize=0
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtendedRAM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/MCUType=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseExtendedRAMforHeap=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/BitBangDelay=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Bitclock=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFile=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFile=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/ByteValues=255\:222\:5
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/FileName=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/MCUid=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/UseFile=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/Write=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoChipErase=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoSigCheck=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoVerify=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoWrite=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/OtherOptions=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/ProgrammerID=programmerconfig.4
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/UseCounter=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteFlash=true
+avrtarget/perConfig=true
+eclipse.preferences.version=1

+ 67 - 67
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.cdt.codan.core.prefs

@@ -1,67 +1,67 @@
-eclipse.preferences.version=1
-org.eclipse.cdt.codan.checkers.errnoreturn=Warning
-org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
-org.eclipse.cdt.codan.checkers.errreturnvalue=Error
-org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.checkers.noreturn=Error
-org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
-org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
-org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
-org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+eclipse.preferences.version=1
+org.eclipse.cdt.codan.checkers.errnoreturn=Warning
+org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.checkers.errreturnvalue=Error
+org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.checkers.noreturn=Error
+org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
+org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
+org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}

+ 2 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.core.resources.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-encoding//model/TrafficLight.sct=UTF-8
+eclipse.preferences.version=1
+encoding//model/TrafficLight.sct=UTF-8

+ 2 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.ltk.core.refactoring.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false

+ 1 - 1
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/README

@@ -1,2 +1,2 @@
-For detailed information about setting the environment and running this example, please visit: 
+For detailed information about setting the environment and running this example, please visit: 
 http://scholtyssek.blogspot.de/2013/10/yakindu-statechart-tools-arduino.html

File diff suppressed because it is too large
+ 551 - 551
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/model/TrafficLight.sct


+ 9 - 9
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/model/TrafficLight.sgen

@@ -1,10 +1,10 @@
-GeneratorModel for yakindu::c {
-
-	statechart Trafficlight {
-
-		feature Outlet {
-			targetProject = "org.yakindu.sct.examples.c.arduinoTrafficLight"
-			targetFolder = "src-gen"
-		}
-	}
+GeneratorModel for yakindu::c {
+
+	statechart Trafficlight {
+
+		feature Outlet {
+			targetProject = "org.yakindu.sct.examples.c.arduinoTrafficLight"
+			targetFolder = "src-gen"
+		}
+	}
 }

+ 22 - 22
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/CycleRunner.cpp

@@ -1,22 +1,22 @@
-#include "include/CycleRunner.h"
-
-CycleRunner::CycleRunner(Trafficlight *sc_handle){
-	this->handle = sc_handle;
-}
-
-/**
- * The cycleRunner uses timer0 for his cycle-time-calculation (every second)
- */
-void CycleRunner::start(void){
-	TCCR0B |= (1<<CS02) | (1<<CS00);	// prescaler 1024
-	TCNT0 = 0;	// Startvalue ->1s to overflow
-	TIMSK0 |= (1<<TOIE0);
-}
-
-void CycleRunner::stop(void){
-	TCCR0B = 0;
-}
-
-void CycleRunner::runCycle(void){
-	trafficlight_runCycle(handle);
-}
+#include "include/CycleRunner.h"
+
+CycleRunner::CycleRunner(Trafficlight *sc_handle){
+	this->handle = sc_handle;
+}
+
+/**
+ * The cycleRunner uses timer0 for his cycle-time-calculation (every second)
+ */
+void CycleRunner::start(void){
+	TCCR0B |= (1<<CS02) | (1<<CS00);	// prescaler 1024
+	TCNT0 = 0;	// Startvalue ->1s to overflow
+	TIMSK0 |= (1<<TOIE0);
+}
+
+void CycleRunner::stop(void){
+	TCCR0B = 0;
+}
+
+void CycleRunner::runCycle(void){
+	trafficlight_runCycle(handle);
+}

+ 171 - 171
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/Main.cpp

@@ -1,171 +1,171 @@
-/*
- * Main.cpp
- *
- *  Created on: 20.06.2013
- *      Author: scholtyssek
- */
-
-#include "TrafficlightRequired.h"
-#include "Trafficlight.h"
-#include "include/Timer.h"
-#include "include/CycleRunner.h"
-#include <avr/io.h>
-#include <avr/interrupt.h>
-#include <util/delay.h>
-#include <stdio.h>
-//#include "Arduino.h"
-
-const uint8_t ledPinTrafficRed = DDB5;      	// the number of the red LED pin
-const uint8_t ledPinTrafficYellow = DDB4;		// the number of the yellow LED pin
-const uint8_t ledPinTrafficGreen = DDB3;		// the number of the green LED pin
-
-const uint8_t ledPinPedestrianRed = DDB1;		// the number of the red LED pin
-const uint8_t ledPinPedestrianGreen = DDB0;		// the number of the green LED pin
-const uint8_t ledPinPedestrianWaitLight = DDB2;
-Timer *timer;
-CycleRunner *cycleRunner;
-volatile uint8_t raiseOnOffEventFlag = 0;
-volatile uint8_t raisePedestrianRequestFlag = 0;
-
-uint8_t counter = 0;
-uint8_t runCycleFlag = 0;
-uint8_t timerRaiseEventFlag = 0;
-Trafficlight handle;
-
-void trafficlight_setTimer(const sc_eventid evid, sc_integer time_ms,
-		const sc_boolean periodic) {
-	timer->trafficlight_setTimer(evid, time_ms, periodic);
-}
-
-void trafficlight_unsetTimer(const sc_eventid evid) {
-	timer->trafficlight_unsetTimer(evid);
-}
-
-void setLight(uint8_t port, uint8_t pin, sc_boolean value) {
-	if (value) {
-		PORTB |= (1 << pin);
-	} else {
-		PORTB &= ~(1 << pin);
-	}
-}
-
-void setTrafficLights() {
-	/*
-	 * pedestrian waiting light
-	 */
-	setLight(PORTB, ledPinPedestrianWaitLight,
-			trafficlightIfacePedestrianLight_get_wait(&handle));
-
-	/**
-	 * Pedestrian light
-	 */
-	setLight(PORTB, ledPinPedestrianGreen,
-			trafficlightIfacePedestrianLight_get_green(&handle));
-	setLight(PORTB, ledPinPedestrianRed,
-			trafficlightIfacePedestrianLight_get_red(&handle));
-
-	/*
-	 *  traffic light
-	 */
-	setLight(PORTB, ledPinTrafficRed,
-			trafficlightIfaceTrafficLight_get_red(&handle));
-	setLight(PORTB, ledPinTrafficYellow,
-			trafficlightIfaceTrafficLight_get_yellow(&handle));
-	setLight(PORTB, ledPinTrafficGreen,
-			trafficlightIfaceTrafficLight_get_green(&handle));
-}
-
-void initializePorts() {
-	/* set output for pin 13, 12, 11 */
-	DDRB |= (1 << ledPinTrafficRed) | (1 << ledPinTrafficYellow)
-			| (1 << ledPinTrafficGreen);
-	DDRB |= (1 << ledPinPedestrianRed) | (1 << ledPinPedestrianGreen);
-	DDRB |= (1 << ledPinPedestrianWaitLight);
-	PORTB = 0x00;
-}
-
-void initializeInterrupts() {
-	// onOff request
-	EICRA |= (1 << ISC01);
-	EIMSK |= (1 << INT0);
-	DDRD &= ~(1 << DDD2);
-	PORTD |= (1 << DDD2);
-
-	// pedestrian request
-	EICRA |= (1 << ISC11);
-	EIMSK |= (1 << INT1);
-	DDRD &= ~(1 << DDD3);
-	PORTD |= (1 << DDD3);
-	sei();
-}
-
-void initialize() {
-	initializePorts();
-	initializeInterrupts();
-}
-
-int main(void) {
-	initialize();
-
-	timer = new Timer(&handle);
-	trafficlight_init(&handle);
-	trafficlight_enter(&handle);
-	cycleRunner = new CycleRunner(&handle);
-	cycleRunner->start();	// the cyclerunner checks for state transitions
-
-	while (1) {
-		setTrafficLights();
-
-		if (runCycleFlag) {
-			runCycleFlag = 0;
-			cycleRunner->runCycle();
-		}
-
-		if (timerRaiseEventFlag) {
-			timerRaiseEventFlag = 0;
-			timer->raiseTimeEvent();
-		}
-
-		if (raiseOnOffEventFlag) {
-			raiseOnOffEventFlag = 0;
-			trafficlightIface_raise_onOff(&handle);
-		}
-
-		if (raisePedestrianRequestFlag) {
-			raisePedestrianRequestFlag = 0;
-			trafficlightIface_raise_pedestrianRequest(&handle);
-		}
-	}
-	return 0;
-}
-
-/*
- * the cycleRunner is triggered by this timerinterrupt
- */ISR(TIMER0_OVF_vect) {
-	runCycleFlag = 1;
-}
-
-// Timer ISR that triggers checking for expired time events
-ISR(TIMER1_OVF_vect) {
-//	TCNT1 = 59286;	// startvalue for 100ms
-	TCNT1 = 64911;	// startvalue for 10ms
-
-	if ((counter++) >= timer->getTimerOverflowCount()) {
-		counter = 0;
-		timerRaiseEventFlag = 1;
-	}
-}
-
-/**
- * OnOff switch for the trafficLight
- */
-ISR(INT0_vect) {
-	raiseOnOffEventFlag = 1;
-}
-
-/**
- * pedestrian request triggers INT1 interrupt
- */
-ISR(INT1_vect) {
-	raisePedestrianRequestFlag = 1;
-}
+/*
+ * Main.cpp
+ *
+ *  Created on: 20.06.2013
+ *      Author: scholtyssek
+ */
+
+#include "TrafficlightRequired.h"
+#include "Trafficlight.h"
+#include "include/Timer.h"
+#include "include/CycleRunner.h"
+#include <avr/io.h>
+#include <avr/interrupt.h>
+#include <util/delay.h>
+#include <stdio.h>
+//#include "Arduino.h"
+
+const uint8_t ledPinTrafficRed = DDB5;      	// the number of the red LED pin
+const uint8_t ledPinTrafficYellow = DDB4;		// the number of the yellow LED pin
+const uint8_t ledPinTrafficGreen = DDB3;		// the number of the green LED pin
+
+const uint8_t ledPinPedestrianRed = DDB1;		// the number of the red LED pin
+const uint8_t ledPinPedestrianGreen = DDB0;		// the number of the green LED pin
+const uint8_t ledPinPedestrianWaitLight = DDB2;
+Timer *timer;
+CycleRunner *cycleRunner;
+volatile uint8_t raiseOnOffEventFlag = 0;
+volatile uint8_t raisePedestrianRequestFlag = 0;
+
+uint8_t counter = 0;
+uint8_t runCycleFlag = 0;
+uint8_t timerRaiseEventFlag = 0;
+Trafficlight handle;
+
+void trafficlight_setTimer(const sc_eventid evid, sc_integer time_ms,
+		const sc_boolean periodic) {
+	timer->trafficlight_setTimer(evid, time_ms, periodic);
+}
+
+void trafficlight_unsetTimer(const sc_eventid evid) {
+	timer->trafficlight_unsetTimer(evid);
+}
+
+void setLight(uint8_t port, uint8_t pin, sc_boolean value) {
+	if (value) {
+		PORTB |= (1 << pin);
+	} else {
+		PORTB &= ~(1 << pin);
+	}
+}
+
+void setTrafficLights() {
+	/*
+	 * pedestrian waiting light
+	 */
+	setLight(PORTB, ledPinPedestrianWaitLight,
+			trafficlightIfacePedestrianLight_get_wait(&handle));
+
+	/**
+	 * Pedestrian light
+	 */
+	setLight(PORTB, ledPinPedestrianGreen,
+			trafficlightIfacePedestrianLight_get_green(&handle));
+	setLight(PORTB, ledPinPedestrianRed,
+			trafficlightIfacePedestrianLight_get_red(&handle));
+
+	/*
+	 *  traffic light
+	 */
+	setLight(PORTB, ledPinTrafficRed,
+			trafficlightIfaceTrafficLight_get_red(&handle));
+	setLight(PORTB, ledPinTrafficYellow,
+			trafficlightIfaceTrafficLight_get_yellow(&handle));
+	setLight(PORTB, ledPinTrafficGreen,
+			trafficlightIfaceTrafficLight_get_green(&handle));
+}
+
+void initializePorts() {
+	/* set output for pin 13, 12, 11 */
+	DDRB |= (1 << ledPinTrafficRed) | (1 << ledPinTrafficYellow)
+			| (1 << ledPinTrafficGreen);
+	DDRB |= (1 << ledPinPedestrianRed) | (1 << ledPinPedestrianGreen);
+	DDRB |= (1 << ledPinPedestrianWaitLight);
+	PORTB = 0x00;
+}
+
+void initializeInterrupts() {
+	// onOff request
+	EICRA |= (1 << ISC01);
+	EIMSK |= (1 << INT0);
+	DDRD &= ~(1 << DDD2);
+	PORTD |= (1 << DDD2);
+
+	// pedestrian request
+	EICRA |= (1 << ISC11);
+	EIMSK |= (1 << INT1);
+	DDRD &= ~(1 << DDD3);
+	PORTD |= (1 << DDD3);
+	sei();
+}
+
+void initialize() {
+	initializePorts();
+	initializeInterrupts();
+}
+
+int main(void) {
+	initialize();
+
+	timer = new Timer(&handle);
+	trafficlight_init(&handle);
+	trafficlight_enter(&handle);
+	cycleRunner = new CycleRunner(&handle);
+	cycleRunner->start();	// the cyclerunner checks for state transitions
+
+	while (1) {
+		setTrafficLights();
+
+		if (runCycleFlag) {
+			runCycleFlag = 0;
+			cycleRunner->runCycle();
+		}
+
+		if (timerRaiseEventFlag) {
+			timerRaiseEventFlag = 0;
+			timer->raiseTimeEvent();
+		}
+
+		if (raiseOnOffEventFlag) {
+			raiseOnOffEventFlag = 0;
+			trafficlightIface_raise_onOff(&handle);
+		}
+
+		if (raisePedestrianRequestFlag) {
+			raisePedestrianRequestFlag = 0;
+			trafficlightIface_raise_pedestrianRequest(&handle);
+		}
+	}
+	return 0;
+}
+
+/*
+ * the cycleRunner is triggered by this timerinterrupt
+ */ISR(TIMER0_OVF_vect) {
+	runCycleFlag = 1;
+}
+
+// Timer ISR that triggers checking for expired time events
+ISR(TIMER1_OVF_vect) {
+//	TCNT1 = 59286;	// startvalue for 100ms
+	TCNT1 = 64911;	// startvalue for 10ms
+
+	if ((counter++) >= timer->getTimerOverflowCount()) {
+		counter = 0;
+		timerRaiseEventFlag = 1;
+	}
+}
+
+/**
+ * OnOff switch for the trafficLight
+ */
+ISR(INT0_vect) {
+	raiseOnOffEventFlag = 1;
+}
+
+/**
+ * pedestrian request triggers INT1 interrupt
+ */
+ISR(INT1_vect) {
+	raisePedestrianRequestFlag = 1;
+}

+ 19 - 19
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/TimeEvent.cpp

@@ -1,19 +1,19 @@
-/*
- * TimeEvent.cpp
- *
- *  Created on: 10.07.2013
- *      Author: scholtyssek
- */
-#include "include/TimeEvent.h"
-
-	TimeEvent::TimeEvent(){
-
-	}
-	TimeEvent::TimeEvent(sc_eventid eventId, sc_integer timeMs, sc_boolean periodic){
-		this->eventId = eventId;
-		this->timeMs = timeMs;
-		this->periodic = periodic;
-		this->timerOverflowCount = 0;
-	}
-
-
+/*
+ * TimeEvent.cpp
+ *
+ *  Created on: 10.07.2013
+ *      Author: scholtyssek
+ */
+#include "include/TimeEvent.h"
+
+	TimeEvent::TimeEvent(){
+
+	}
+	TimeEvent::TimeEvent(sc_eventid eventId, sc_integer timeMs, sc_boolean periodic){
+		this->eventId = eventId;
+		this->timeMs = timeMs;
+		this->periodic = periodic;
+		this->timerOverflowCount = 0;
+	}
+
+

+ 99 - 99
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/Timer.cpp

@@ -1,99 +1,99 @@
-/*
- * Timer.c
- *
- *  Created on: 20.06.2013
- *      Author: scholtyssek
- */
-
-#include "include/Timer.h"
-#include <stdio.h>
-
-Timer::Timer(Trafficlight *sc_handle) {
-	this->lastEventId = NULL;
-	this->timeMs = 0;
-	this->eventId = NULL;
-	this->periodic = bool_false;
-	this->sc_handle = sc_handle;
-	for(int i=0;i<TIMER_COUNT;i++){
-		events[i] = NULL;
-	}
-	initTimer();
-}
-
-void Timer::trafficlight_setTimer(const sc_eventid evid,
-		const sc_integer time_ms, const sc_boolean periodic) {
-	this->eventId = evid;
-	this->timeMs = time_ms;
-	this->periodic = periodic;
-
-
-	TimeEvent *event = new TimeEvent(evid, time_ms, periodic);
-
-	for(int i=0;i<TIMER_COUNT;i++){
-		if(events[i] == NULL){
-			events[i] = event;
-			break;
-		}
-	}
-}
-
-/**
- * Timer1 will be used for the events
- */
-void Timer::initTimer() {
-	//	TCCR1B = (1 << CS12) | (1 << CS10); // Prescaler 1024
-	//  TCNT1 = 2^16 - ((timeMs / 1000) * 16 * 10000000 /1024)
-	//	TCNT1 = 65536 - ((timeMs / 1000) * F_CPU / 1024 );
-
-
-	// 49911 corresponds to 1s
-	//TCNT1 = 49911;	// Startvalue for the 16-Bit Timer with CTC.
-					//	comparevalue = 2^16 - (triggerTime * quartzfrequency / Prescaler)
-					//	comparevalue = 2^16 - (1s * 16*10^6 Hz / 1024) ) = 49911
-
-	TCCR1B |= (1<<CS12); // Prescaler 256
-//	TCNT1 = 59286; 	// 	comparevalue = 2^16 - (0.1s * 16*10^6 Hz / 256) ) = 59286
-//					// corresponds 99,9999ms, but here is an error because the calculated counter startvalue has to be integer
-//	this->overflowCount = (timeMs / 100);
-	TCNT1 = 64911; // comparevalue for 10ms
-	this->overflowCount = (timeMs / 10);
-
-	TIMSK1 |= (1 << TOIE1);	// overflow interrupt
-}
-
-/**
- * Returns the counted overflows for this counter. An overflow is released every 100ms.
- */
-sc_integer Timer::getTimerOverflowCount(){
-	return this->overflowCount;
-}
-
-void Timer::trafficlight_unsetTimer(const sc_eventid evid) {
-//	TCCR1B = 0; // turn off the timer
-	for(int i=0;i<TIMER_COUNT;i++){
-		if(events[i]->getEventId() == evid){
-			delete events[i];
-			events[i] = NULL;
-			break;
-		}
-	}
-}
-
-
-void Timer::raiseTimeEvent() {
-	for(int i=0;i<TIMER_COUNT;i++){
-		if(events[i] == NULL)
-			continue;
-
-		if((events[i]->getTimeMs()/10) <= events[i]->getTimerOverflowCount()){
-			trafficlight_raiseTimeEvent(sc_handle, events[i]->getEventId());
-			events[i]->setTimerOverflowCount(0);
-		}
-
-		events[i]->setTimerOverflowCount(events[i]->getTimerOverflowCount() + 1);
-	}
-}
-
-Timer::~Timer() {
-
-}
+/*
+ * Timer.c
+ *
+ *  Created on: 20.06.2013
+ *      Author: scholtyssek
+ */
+
+#include "include/Timer.h"
+#include <stdio.h>
+
+Timer::Timer(Trafficlight *sc_handle) {
+	this->lastEventId = NULL;
+	this->timeMs = 0;
+	this->eventId = NULL;
+	this->periodic = bool_false;
+	this->sc_handle = sc_handle;
+	for(int i=0;i<TIMER_COUNT;i++){
+		events[i] = NULL;
+	}
+	initTimer();
+}
+
+void Timer::trafficlight_setTimer(const sc_eventid evid,
+		const sc_integer time_ms, const sc_boolean periodic) {
+	this->eventId = evid;
+	this->timeMs = time_ms;
+	this->periodic = periodic;
+
+
+	TimeEvent *event = new TimeEvent(evid, time_ms, periodic);
+
+	for(int i=0;i<TIMER_COUNT;i++){
+		if(events[i] == NULL){
+			events[i] = event;
+			break;
+		}
+	}
+}
+
+/**
+ * Timer1 will be used for the events
+ */
+void Timer::initTimer() {
+	//	TCCR1B = (1 << CS12) | (1 << CS10); // Prescaler 1024
+	//  TCNT1 = 2^16 - ((timeMs / 1000) * 16 * 10000000 /1024)
+	//	TCNT1 = 65536 - ((timeMs / 1000) * F_CPU / 1024 );
+
+
+	// 49911 corresponds to 1s
+	//TCNT1 = 49911;	// Startvalue for the 16-Bit Timer with CTC.
+					//	comparevalue = 2^16 - (triggerTime * quartzfrequency / Prescaler)
+					//	comparevalue = 2^16 - (1s * 16*10^6 Hz / 1024) ) = 49911
+
+	TCCR1B |= (1<<CS12); // Prescaler 256
+//	TCNT1 = 59286; 	// 	comparevalue = 2^16 - (0.1s * 16*10^6 Hz / 256) ) = 59286
+//					// corresponds 99,9999ms, but here is an error because the calculated counter startvalue has to be integer
+//	this->overflowCount = (timeMs / 100);
+	TCNT1 = 64911; // comparevalue for 10ms
+	this->overflowCount = (timeMs / 10);
+
+	TIMSK1 |= (1 << TOIE1);	// overflow interrupt
+}
+
+/**
+ * Returns the counted overflows for this counter. An overflow is released every 100ms.
+ */
+sc_integer Timer::getTimerOverflowCount(){
+	return this->overflowCount;
+}
+
+void Timer::trafficlight_unsetTimer(const sc_eventid evid) {
+//	TCCR1B = 0; // turn off the timer
+	for(int i=0;i<TIMER_COUNT;i++){
+		if(events[i]->getEventId() == evid){
+			delete events[i];
+			events[i] = NULL;
+			break;
+		}
+	}
+}
+
+
+void Timer::raiseTimeEvent() {
+	for(int i=0;i<TIMER_COUNT;i++){
+		if(events[i] == NULL)
+			continue;
+
+		if((events[i]->getTimeMs()/10) <= events[i]->getTimerOverflowCount()){
+			trafficlight_raiseTimeEvent(sc_handle, events[i]->getEventId());
+			events[i]->setTimerOverflowCount(0);
+		}
+
+		events[i]->setTimerOverflowCount(events[i]->getTimerOverflowCount() + 1);
+	}
+}
+
+Timer::~Timer() {
+
+}

+ 25 - 25
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/CycleRunner.h

@@ -1,25 +1,25 @@
-/*
- * CycleRunner.h
- *
- *  Created on: 25.06.2013
- *      Author: scholtyssek
- */
-
-#ifndef CYCLERUNNER_H_
-#define CYCLERUNNER_H_
-
-#include "sc_types.h"
-#include <avr/interrupt.h>
-#include "../src-gen/Trafficlight.h"
-
-class CycleRunner{
-	public:
-		CycleRunner(Trafficlight *sc_handle);
-		void start(void);
-		void stop(void);
-		void runCycle(void);
-
-	private:
-		Trafficlight *handle;
-};
-#endif /* CYCLERUNNER_H_ */
+/*
+ * CycleRunner.h
+ *
+ *  Created on: 25.06.2013
+ *      Author: scholtyssek
+ */
+
+#ifndef CYCLERUNNER_H_
+#define CYCLERUNNER_H_
+
+#include "sc_types.h"
+#include <avr/interrupt.h>
+#include "../src-gen/Trafficlight.h"
+
+class CycleRunner{
+	public:
+		CycleRunner(Trafficlight *sc_handle);
+		void start(void);
+		void stop(void);
+		void runCycle(void);
+
+	private:
+		Trafficlight *handle;
+};
+#endif /* CYCLERUNNER_H_ */

+ 46 - 46
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/TimeEvent.h

@@ -1,46 +1,46 @@
-/*
- * TimeEvent.h
- *
- *  Created on: 10.07.2013
- *      Author: scholtyssek
- */
-
-#ifndef TIMEEVENT_H_
-#define TIMEEVENT_H_
-
-#include "sc_types.h"
-
-class TimeEvent{
-	public:
-		TimeEvent();
-		TimeEvent(sc_eventid eventId, sc_integer timeMs, sc_boolean periodic);
-
-		sc_eventid getEventId() const {
-			return eventId;
-		}
-
-		bool isPeriodic() const {
-			return periodic;
-		}
-
-		sc_integer getTimeMs() const {
-			return timeMs;
-		}
-
-		sc_integer getTimerOverflowCount() const {
-			return timerOverflowCount;
-		}
-
-		void setTimerOverflowCount(sc_integer timerOverflowCount) {
-			this->timerOverflowCount = timerOverflowCount;
-		}
-
-	private:
-		sc_eventid eventId;
-		sc_integer timeMs;
-		sc_integer timerOverflowCount;
-		sc_boolean periodic;
-	};
-
-
-#endif /* TIMEEVENT_H_ */
+/*
+ * TimeEvent.h
+ *
+ *  Created on: 10.07.2013
+ *      Author: scholtyssek
+ */
+
+#ifndef TIMEEVENT_H_
+#define TIMEEVENT_H_
+
+#include "sc_types.h"
+
+class TimeEvent{
+	public:
+		TimeEvent();
+		TimeEvent(sc_eventid eventId, sc_integer timeMs, sc_boolean periodic);
+
+		sc_eventid getEventId() const {
+			return eventId;
+		}
+
+		bool isPeriodic() const {
+			return periodic;
+		}
+
+		sc_integer getTimeMs() const {
+			return timeMs;
+		}
+
+		sc_integer getTimerOverflowCount() const {
+			return timerOverflowCount;
+		}
+
+		void setTimerOverflowCount(sc_integer timerOverflowCount) {
+			this->timerOverflowCount = timerOverflowCount;
+		}
+
+	private:
+		sc_eventid eventId;
+		sc_integer timeMs;
+		sc_integer timerOverflowCount;
+		sc_boolean periodic;
+	};
+
+
+#endif /* TIMEEVENT_H_ */

+ 42 - 42
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/src/include/Timer.h

@@ -1,42 +1,42 @@
-/*
- * T.h
- *
- *  Created on: 24.06.2013
- *      Author: scholtyssek
- */
-
-#ifndef T_H_
-#define T_H_
-
-#include "sc_types.h"
-#include "TimeEvent.h"
-#include "../src-gen/Trafficlight.h"
-#include "avr/interrupt.h"
-#include <stdlib.h>
-#include <stdio.h>
-
-
-class Timer{
-	public:
-		Timer();
-		Timer(Trafficlight *sc_handle);
-		void trafficlight_setTimer(const sc_eventid evid,
-				const sc_integer time_ms, const sc_boolean periodic);
-		void trafficlight_unsetTimer(const sc_eventid evid);
-		void initTimer();
-		void raiseTimeEvent();
-		sc_integer getTimerOverflowCount();
-		static const sc_integer TIMER_COUNT = 5;
-	private:
-		~Timer();
-		sc_eventid eventId;
-		sc_eventid lastEventId;
-		sc_integer timeMs;
-		sc_boolean periodic;
-		Trafficlight *sc_handle;
-		volatile uint16_t overflowCount;
-		TimeEvent* events[TIMER_COUNT]; // maximum 5 parallel TimeEvents
-	};
-
-
-#endif /* T_H_ */
+/*
+ * T.h
+ *
+ *  Created on: 24.06.2013
+ *      Author: scholtyssek
+ */
+
+#ifndef T_H_
+#define T_H_
+
+#include "sc_types.h"
+#include "TimeEvent.h"
+#include "../src-gen/Trafficlight.h"
+#include "avr/interrupt.h"
+#include <stdlib.h>
+#include <stdio.h>
+
+
+class Timer{
+	public:
+		Timer();
+		Timer(Trafficlight *sc_handle);
+		void trafficlight_setTimer(const sc_eventid evid,
+				const sc_integer time_ms, const sc_boolean periodic);
+		void trafficlight_unsetTimer(const sc_eventid evid);
+		void initTimer();
+		void raiseTimeEvent();
+		sc_integer getTimerOverflowCount();
+		static const sc_integer TIMER_COUNT = 5;
+	private:
+		~Timer();
+		sc_eventid eventId;
+		sc_eventid lastEventId;
+		sc_integer timeMs;
+		sc_boolean periodic;
+		Trafficlight *sc_handle;
+		volatile uint16_t overflowCount;
+		TimeEvent* events[TIMER_COUNT]; // maximum 5 parallel TimeEvents
+	};
+
+
+#endif /* T_H_ */

File diff suppressed because it is too large
+ 252 - 252
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.cproject


+ 2 - 0
archive/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.gitignore

@@ -0,0 +1,2 @@
+/bin/
+/target/

+ 41 - 0
archive/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.project

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.examples.c.arduinoTrafficLightLib</name>
+	<comment></comment>
+	<projects>
+		<project>ArduinoCore</project>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.yakindu.sct.builder.SCTBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.core.ccnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+		<nature>de.innot.avreclipse.core.avrnature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+		<nature>org.yakindu.sct.builder.SCTNature</nature>
+	</natures>
+</projectDescription>

+ 49 - 49
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/de.innot.avreclipse.core.prefs

@@ -1,49 +1,49 @@
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ClockFrequency=16000000
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtRAMSize=0
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtendedRAM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/MCUType=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseExtendedRAMforHeap=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/BitBangDelay=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/Bitclock=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFile=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFile=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoChipErase=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoSigCheck=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoVerify=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoWrite=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/OtherOptions=
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/ProgrammerID=programmerconfig.1
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/UseCounter=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteFlash=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ClockFrequency=16000000
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtRAMSize=0
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtendedRAM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/MCUType=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseExtendedRAMforHeap=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/BitBangDelay=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Bitclock=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFile=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFile=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFromConfig=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/ByteValues=255\:222\:5
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/FileName=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/MCUid=atmega328p
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/UseFile=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/Write=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoChipErase=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoSigCheck=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoVerify=true
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoWrite=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/OtherOptions=
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/ProgrammerID=programmerconfig.1
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/UseCounter=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteEEPROM=false
-avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteFlash=true
-avrtarget/perConfig=true
-eclipse.preferences.version=1
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ClockFrequency=16000000
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtRAMSize=0
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/ExtendedRAM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/MCUType=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/UseExtendedRAMforHeap=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/BitBangDelay=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/Bitclock=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFile=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/EEPROMFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFile=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/FlashFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoChipErase=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoSigCheck=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoVerify=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/NoWrite=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/OtherOptions=
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/ProgrammerID=programmerconfig.1
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/UseCounter=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.debug.1617337132/avrdude/WriteFlash=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ClockFrequency=16000000
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtRAMSize=0
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/ExtendedRAM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/MCUType=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/UseExtendedRAMforHeap=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/BitBangDelay=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Bitclock=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFile=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/EEPROMFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFile=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/FlashFromConfig=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/ByteValues=255\:222\:5
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/FileName=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/MCUid=atmega328p
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/UseFile=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/Fuses/Write=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoChipErase=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoSigCheck=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoVerify=true
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/NoWrite=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/OtherOptions=
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/ProgrammerID=programmerconfig.1
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/UseCounter=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteEEPROM=false
+avrtarget/de.innot.avreclipse.configuration.app.release.818758969/avrdude/WriteFlash=true
+avrtarget/perConfig=true
+eclipse.preferences.version=1

+ 67 - 67
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.settings/org.eclipse.cdt.codan.core.prefs

@@ -1,67 +1,67 @@
-eclipse.preferences.version=1
-org.eclipse.cdt.codan.checkers.errnoreturn=Warning
-org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
-org.eclipse.cdt.codan.checkers.errreturnvalue=Error
-org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.checkers.noreturn=Error
-org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
-org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
-org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
-org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
-org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
-org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
-org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
-org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
-org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
-org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
-org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
-org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
-org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
-org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+eclipse.preferences.version=1
+org.eclipse.cdt.codan.checkers.errnoreturn=Warning
+org.eclipse.cdt.codan.checkers.errnoreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.checkers.errreturnvalue=Error
+org.eclipse.cdt.codan.checkers.errreturnvalue.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.checkers.noreturn=Error
+org.eclipse.cdt.codan.checkers.noreturn.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},implicit\=>false}
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
+org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
+org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},no_break_comment\=>"no break",last_case_param\=>false,empty_case_param\=>false}
+org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
+org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},unknown\=>false,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
+org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization=Warning
+org.eclipse.cdt.codan.internal.checkers.ClassMembersInitialization.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},skip\=>true}
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
+org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
+org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
+org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
+org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>()}
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},paramNot\=>false}
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},else\=>false,afterelse\=>false}
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true}
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
+org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true},macro\=>true,exceptions\=>("@(\#)","$Id")}
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
+org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>true,RUN_ON_INC_BUILD\=>true,RUN_ON_FILE_OPEN\=>false,RUN_ON_FILE_SAVE\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}

+ 2 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.core.resources.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-encoding//model/TrafficLight.sct=UTF-8
+eclipse.preferences.version=1
+encoding//model/TrafficLight.sct=UTF-8

+ 2 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.settings/org.eclipse.ltk.core.refactoring.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false

File diff suppressed because it is too large
+ 551 - 551
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/model/TrafficLight.sct


+ 9 - 9
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/model/TrafficLight.sgen

@@ -1,10 +1,10 @@
-GeneratorModel for yakindu::c {
-
-	statechart Trafficlight {
-
-		feature Outlet {
-			targetProject = "arduinoAmpel"
-			targetFolder = "src-gen"
-		}
-	}
+GeneratorModel for yakindu::c {
+
+	statechart Trafficlight {
+
+		feature Outlet {
+			targetProject = "arduinoAmpel"
+			targetFolder = "src-gen"
+		}
+	}
 }

+ 32 - 32
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/arduino.h

@@ -1,32 +1,32 @@
-extern "C" void __cxa_pure_virtual()
-{
-  cli();
-  for (;;);
-}
-
-__extension__ typedef int __guard __attribute__((mode (__DI__)));
-
-void * operator new(size_t size)
-{
-  return malloc(size);
-}
-
-void operator delete(void * ptr)
-{
-  free(ptr);
-}
-
-void * operator new[](size_t size)
-{
-    return malloc(size);
-}
-
-void operator delete[](void * ptr)
-{
-	if (ptr)
-		free(ptr);
-}
-
-int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);}
-void __cxa_guard_release (__guard *g) {*(char *)g = 1;}
-void __cxa_guard_abort (__guard *) {}
+extern "C" void __cxa_pure_virtual()
+{
+  cli();
+  for (;;);
+}
+
+__extension__ typedef int __guard __attribute__((mode (__DI__)));
+
+void * operator new(size_t size)
+{
+  return malloc(size);
+}
+
+void operator delete(void * ptr)
+{
+  free(ptr);
+}
+
+void * operator new[](size_t size)
+{
+    return malloc(size);
+}
+
+void operator delete[](void * ptr)
+{
+	if (ptr)
+		free(ptr);
+}
+
+int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);}
+void __cxa_guard_release (__guard *g) {*(char *)g = 1;}
+void __cxa_guard_abort (__guard *) {}

+ 4 - 4
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/license

@@ -1,4 +1,4 @@
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Eclipse Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html

+ 169 - 169
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/main.c

@@ -1,169 +1,169 @@
-/*
- * TrafficLight example for YAKINDU SCT
- *
- * based on official example: org.yakindu.sct.examples.c.arduinoTrafficLight
- *
- * Changes:
- * - use the Arduino core library for pin and time handling
- * - enable debugging with printf() (see uart.c; it uses the Arduino HardwareSerial)
- * - new implementation for timers based on Arduinos millis() function -> no extra timer is used
- * - call runCylce in every iteration of the main loop
- *
- * Author:
- * Axel Utech <axel.utech@gmail.com>
- *
- * Notes:
- * Arduino Core library is from https://github.com/allgood38/Arduino-Blink-Eclipse-Project
- * notes about the original example:
- * 	http://scholtyssek.blogspot.de/2013/10/yakindu-statechart-tools-arduino.html
- */
-
-#include <stdio.h>
-#include <wiring.h>
-
-#include "statetimer.h"
-#include "uart.h"
-
-#include "sc_types.h"
-#include "TrafficlightRequired.h"
-#include "Trafficlight.h"
-
-const uint8_t ledPinTrafficRed = 13;      	// the number of the red LED pin
-const uint8_t ledPinTrafficYellow = 12;		// the number of the yellow LED pin
-const uint8_t ledPinTrafficGreen = 11;		// the number of the green LED pin
-
-const uint8_t ledPinPedestrianRed = 9;		// the number of the red LED pin
-const uint8_t ledPinPedestrianGreen = 8;	// the number of the green LED pin
-const uint8_t ledPinPedestrianWaitLight = 10;
-
-const uint8_t btnOnOff = 3;
-/*
- * Interrupt ID for the pin
- * see http://arduino.cc/en/Reference/AttachInterrupt
- */
-const uint8_t btnOnOffIsrID = 1;
-
-const uint8_t btnPedestrian = 2;
-const uint8_t btnPedestrianIsrId = 0;
-
-volatile uint8_t raiseOnOffEventFlag = 0;
-volatile uint8_t raisePedestrianRequestFlag = 0;
-
-Trafficlight handle;
-
-// helper to call setTimer()
-void trafficlight_setTimer(const sc_eventid evid, sc_integer time_ms,
-		const sc_boolean periodic) {
-	printf("set timer id: %p timeout: %i periodic: %i\n", evid, time_ms, periodic);
-
-	setTimer(&handle, evid, time_ms, periodic,
-			(raiseEventCallback_t)trafficlight_raiseTimeEvent);
-}
-
-void trafficlight_unsetTimer(const sc_eventid evid) {
-	printf("unset timer id: %p\n", evid);
-	unsetTimer(evid);
-}
-
-static void setTrafficLights() {
-	/*
-	 * pedestrian waiting light
-	 */
-	digitalWrite(ledPinPedestrianWaitLight,
-			trafficlightIfacePedestrianLight_get_wait(&handle));
-
-	/**
-	 * Pedestrian light
-	 */
-	digitalWrite(ledPinPedestrianGreen,
-			trafficlightIfacePedestrianLight_get_green(&handle));
-	digitalWrite(ledPinPedestrianRed,
-			trafficlightIfacePedestrianLight_get_red(&handle));
-
-	/*
-	 *  traffic light
-	 */
-	digitalWrite(ledPinTrafficRed,
-			trafficlightIfaceTrafficLight_get_red(&handle));
-	digitalWrite(ledPinTrafficYellow,
-			trafficlightIfaceTrafficLight_get_yellow(&handle));
-	digitalWrite(ledPinTrafficGreen,
-			trafficlightIfaceTrafficLight_get_green(&handle));
-}
-
-static void btnOnOffISR(void) {
-	raiseOnOffEventFlag = 1;
-}
-
-static void btnPedestrianISR(void) {
-	raisePedestrianRequestFlag = 1;
-}
-
-int main(void) {
-	init();
-
-	setup();
-
-	for (;;)
-		loop();
-
-	return 0;
-}
-
-
-void setup() {
-	uartInit(9600);
-	printf("Setup begin!\n");
-
-	pinMode(ledPinPedestrianWaitLight, OUTPUT);
-	pinMode(ledPinPedestrianGreen, OUTPUT);
-	pinMode(ledPinPedestrianRed, OUTPUT);
-	pinMode(ledPinTrafficRed, OUTPUT);
-	pinMode(ledPinTrafficYellow, OUTPUT);
-	pinMode(ledPinTrafficGreen, OUTPUT);
-
-	pinMode(btnOnOff, INPUT);
-	digitalWrite(btnOnOff, HIGH);
-	attachInterrupt(btnOnOffIsrID, btnOnOffISR, FALLING);
-
-	pinMode(btnPedestrian, INPUT);
-	digitalWrite(btnPedestrian, HIGH);
-	attachInterrupt(btnPedestrianIsrId, btnPedestrianISR, FALLING);
-
-	initTimers();
-
-	trafficlight_init(&handle);
-	trafficlight_enter(&handle);
-
-	printf("Setup ready!\n");
-}
-
-static void checkTimersWrapper(void){
-	static unsigned long lastCallTime = 0;
-	unsigned long now = millis();
-
-	int deltaT_ms = now - lastCallTime;
-	lastCallTime = now;
-
-	if(deltaT_ms)
-		checkTimers(deltaT_ms);
-}
-
-void loop() {
-	if(raiseOnOffEventFlag){
-		raiseOnOffEventFlag = 0;
-		printf("Raise onOff\n");
-		trafficlightIface_raise_onOff(&handle);
-	}
-	if(raisePedestrianRequestFlag){
-		raisePedestrianRequestFlag = 0;
-		printf("raise pedestrian request\n");
-		trafficlightIface_raise_pedestrianRequest(&handle);
-	}
-
-	checkTimersWrapper();
-
-	trafficlight_runCycle(&handle);
-	setTrafficLights();
-}
-
+/*
+ * TrafficLight example for YAKINDU SCT
+ *
+ * based on official example: org.yakindu.sct.examples.c.arduinoTrafficLight
+ *
+ * Changes:
+ * - use the Arduino core library for pin and time handling
+ * - enable debugging with printf() (see uart.c; it uses the Arduino HardwareSerial)
+ * - new implementation for timers based on Arduinos millis() function -> no extra timer is used
+ * - call runCylce in every iteration of the main loop
+ *
+ * Author:
+ * Axel Utech <axel.utech@gmail.com>
+ *
+ * Notes:
+ * Arduino Core library is from https://github.com/allgood38/Arduino-Blink-Eclipse-Project
+ * notes about the original example:
+ * 	http://scholtyssek.blogspot.de/2013/10/yakindu-statechart-tools-arduino.html
+ */
+
+#include <stdio.h>
+#include <wiring.h>
+
+#include "statetimer.h"
+#include "uart.h"
+
+#include "sc_types.h"
+#include "TrafficlightRequired.h"
+#include "Trafficlight.h"
+
+const uint8_t ledPinTrafficRed = 13;      	// the number of the red LED pin
+const uint8_t ledPinTrafficYellow = 12;		// the number of the yellow LED pin
+const uint8_t ledPinTrafficGreen = 11;		// the number of the green LED pin
+
+const uint8_t ledPinPedestrianRed = 9;		// the number of the red LED pin
+const uint8_t ledPinPedestrianGreen = 8;	// the number of the green LED pin
+const uint8_t ledPinPedestrianWaitLight = 10;
+
+const uint8_t btnOnOff = 3;
+/*
+ * Interrupt ID for the pin
+ * see http://arduino.cc/en/Reference/AttachInterrupt
+ */
+const uint8_t btnOnOffIsrID = 1;
+
+const uint8_t btnPedestrian = 2;
+const uint8_t btnPedestrianIsrId = 0;
+
+volatile uint8_t raiseOnOffEventFlag = 0;
+volatile uint8_t raisePedestrianRequestFlag = 0;
+
+Trafficlight handle;
+
+// helper to call setTimer()
+void trafficlight_setTimer(const sc_eventid evid, sc_integer time_ms,
+		const sc_boolean periodic) {
+	printf("set timer id: %p timeout: %i periodic: %i\n", evid, time_ms, periodic);
+
+	setTimer(&handle, evid, time_ms, periodic,
+			(raiseEventCallback_t)trafficlight_raiseTimeEvent);
+}
+
+void trafficlight_unsetTimer(const sc_eventid evid) {
+	printf("unset timer id: %p\n", evid);
+	unsetTimer(evid);
+}
+
+static void setTrafficLights() {
+	/*
+	 * pedestrian waiting light
+	 */
+	digitalWrite(ledPinPedestrianWaitLight,
+			trafficlightIfacePedestrianLight_get_wait(&handle));
+
+	/**
+	 * Pedestrian light
+	 */
+	digitalWrite(ledPinPedestrianGreen,
+			trafficlightIfacePedestrianLight_get_green(&handle));
+	digitalWrite(ledPinPedestrianRed,
+			trafficlightIfacePedestrianLight_get_red(&handle));
+
+	/*
+	 *  traffic light
+	 */
+	digitalWrite(ledPinTrafficRed,
+			trafficlightIfaceTrafficLight_get_red(&handle));
+	digitalWrite(ledPinTrafficYellow,
+			trafficlightIfaceTrafficLight_get_yellow(&handle));
+	digitalWrite(ledPinTrafficGreen,
+			trafficlightIfaceTrafficLight_get_green(&handle));
+}
+
+static void btnOnOffISR(void) {
+	raiseOnOffEventFlag = 1;
+}
+
+static void btnPedestrianISR(void) {
+	raisePedestrianRequestFlag = 1;
+}
+
+int main(void) {
+	init();
+
+	setup();
+
+	for (;;)
+		loop();
+
+	return 0;
+}
+
+
+void setup() {
+	uartInit(9600);
+	printf("Setup begin!\n");
+
+	pinMode(ledPinPedestrianWaitLight, OUTPUT);
+	pinMode(ledPinPedestrianGreen, OUTPUT);
+	pinMode(ledPinPedestrianRed, OUTPUT);
+	pinMode(ledPinTrafficRed, OUTPUT);
+	pinMode(ledPinTrafficYellow, OUTPUT);
+	pinMode(ledPinTrafficGreen, OUTPUT);
+
+	pinMode(btnOnOff, INPUT);
+	digitalWrite(btnOnOff, HIGH);
+	attachInterrupt(btnOnOffIsrID, btnOnOffISR, FALLING);
+
+	pinMode(btnPedestrian, INPUT);
+	digitalWrite(btnPedestrian, HIGH);
+	attachInterrupt(btnPedestrianIsrId, btnPedestrianISR, FALLING);
+
+	initTimers();
+
+	trafficlight_init(&handle);
+	trafficlight_enter(&handle);
+
+	printf("Setup ready!\n");
+}
+
+static void checkTimersWrapper(void){
+	static unsigned long lastCallTime = 0;
+	unsigned long now = millis();
+
+	int deltaT_ms = now - lastCallTime;
+	lastCallTime = now;
+
+	if(deltaT_ms)
+		checkTimers(deltaT_ms);
+}
+
+void loop() {
+	if(raiseOnOffEventFlag){
+		raiseOnOffEventFlag = 0;
+		printf("Raise onOff\n");
+		trafficlightIface_raise_onOff(&handle);
+	}
+	if(raisePedestrianRequestFlag){
+		raisePedestrianRequestFlag = 0;
+		printf("raise pedestrian request\n");
+		trafficlightIface_raise_pedestrianRequest(&handle);
+	}
+
+	checkTimersWrapper();
+
+	trafficlight_runCycle(&handle);
+	setTrafficLights();
+}
+

+ 129 - 129
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/statetimer.c

@@ -1,129 +1,129 @@
-/*
- * Timer API for YAKINDU SCT
- *
- *
- * Usage:
- * The state machine calls *_setTimer() which must be provided by the main code.
- * The code calls setTimer() to put the timer into the queue.
- *
- * The mainloop calls checkTimers() regularly and provides the time in milliseconds since
- * the last call. If a timer has a timeout a callback function is raised. This callback can
- * be a function of the state machine (*_raiseTimeEvent()).
- *
- * Author:
- * Axel Utech <axel.utech@gmail.com>
- *
- */
-
-#include "sc_types.h"
-#include "statetimer.h"
-
-// internal representation for one timer
-struct timer {
-	// data from statemachines
-	void* statemachineHandle;
-	sc_eventid evid;
-	sc_integer time_ms;
-	sc_boolean periodic;
-	// pointer to callback function for raising the event
-	raiseEventCallback_t callback_fun;
-
-	// internal values
-	// current timeout time for the event
-	sc_integer timeout_ms;
-	// 1 if this timer is currently in use
-	uint8_t in_use;
-};
-
-#define NUM_MAX_TIMERS 10
-static struct timer timers[NUM_MAX_TIMERS];
-
-// must be called before all other timer functions
-void initTimers(void) {
-	uint8_t i;
-	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
-		timers[i].in_use = 0;
-	}
-}
-
-// calculate new timeout for a timer
-static void setTimeout(struct timer *tim) {
-	tim->timeout_ms = tim->time_ms;
-	tim->in_use = 1;
-}
-
-/**
- * Queue a timer event
- *
- * \param handle	Statemachine handle for the callback
- * \param evid 		Event-ID for the timer
- * \param time_ms 	timout time for the timer
- * \param periodic	true if the timer should be repeated
- * \param callback	Pointer to a callback functions with is called after each timeout
- *
- */
-void setTimer(void* handle, const sc_eventid evid, const sc_integer time_ms,
-		const sc_boolean periodic, raiseEventCallback_t callback) {
-	uint8_t i;
-	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
-		if (timers[i].in_use)
-			continue;
-
-		timers[i].statemachineHandle = handle;
-		timers[i].evid = evid;
-		timers[i].time_ms = time_ms;
-		timers[i].periodic = periodic;
-		timers[i].callback_fun = callback;
-		setTimeout(&timers[i]);
-		return;
-	}
-	//error: no free timer
-}
-
-/**
- * Dequeue a timer
- *
- * \param evid 		Event-ID for the timer
- */
-void unsetTimer(const sc_eventid evid) {
-	int8_t i;
-	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
-		if (timers[i].evid != evid || !(timers[i].in_use))
-			continue;
-		timers[i].in_use = 0;
-	}
-}
-
-// helper: called if the timer timed out
-static void dispatchTimerEvent(struct timer *tim) {
-	if (tim->callback_fun)
-		tim->callback_fun(tim->statemachineHandle, tim->evid);
-
-	if (tim->periodic)
-		setTimeout(tim);
-	else
-		tim->in_use = 0;
-}
-
-/**
- * Checks if a timer has a timeout.
- *
- * \param deltaT_ms Time in milliseconds since the last call.
- */
-void checkTimers(sc_integer deltaT_ms) {
-	uint8_t i;
-
-	if(deltaT_ms <= 0)
-		return;
-
-	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
-		if (!timers[i].in_use)
-			continue;
-
-		timers[i].timeout_ms -= deltaT_ms;
-		if (timers[i].timeout_ms > 0)
-			continue;
-
-		dispatchTimerEvent(&timers[i]);
-	}
-}
+/*
+ * Timer API for YAKINDU SCT
+ *
+ *
+ * Usage:
+ * The state machine calls *_setTimer() which must be provided by the main code.
+ * The code calls setTimer() to put the timer into the queue.
+ *
+ * The mainloop calls checkTimers() regularly and provides the time in milliseconds since
+ * the last call. If a timer has a timeout a callback function is raised. This callback can
+ * be a function of the state machine (*_raiseTimeEvent()).
+ *
+ * Author:
+ * Axel Utech <axel.utech@gmail.com>
+ *
+ */
+
+#include "sc_types.h"
+#include "statetimer.h"
+
+// internal representation for one timer
+struct timer {
+	// data from statemachines
+	void* statemachineHandle;
+	sc_eventid evid;
+	sc_integer time_ms;
+	sc_boolean periodic;
+	// pointer to callback function for raising the event
+	raiseEventCallback_t callback_fun;
+
+	// internal values
+	// current timeout time for the event
+	sc_integer timeout_ms;
+	// 1 if this timer is currently in use
+	uint8_t in_use;
+};
+
+#define NUM_MAX_TIMERS 10
+static struct timer timers[NUM_MAX_TIMERS];
+
+// must be called before all other timer functions
+void initTimers(void) {
+	uint8_t i;
+	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
+		timers[i].in_use = 0;
+	}
+}
+
+// calculate new timeout for a timer
+static void setTimeout(struct timer *tim) {
+	tim->timeout_ms = tim->time_ms;
+	tim->in_use = 1;
+}
+
+/**
+ * Queue a timer event
+ *
+ * \param handle	Statemachine handle for the callback
+ * \param evid 		Event-ID for the timer
+ * \param time_ms 	timout time for the timer
+ * \param periodic	true if the timer should be repeated
+ * \param callback	Pointer to a callback functions with is called after each timeout
+ *
+ */
+void setTimer(void* handle, const sc_eventid evid, const sc_integer time_ms,
+		const sc_boolean periodic, raiseEventCallback_t callback) {
+	uint8_t i;
+	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
+		if (timers[i].in_use)
+			continue;
+
+		timers[i].statemachineHandle = handle;
+		timers[i].evid = evid;
+		timers[i].time_ms = time_ms;
+		timers[i].periodic = periodic;
+		timers[i].callback_fun = callback;
+		setTimeout(&timers[i]);
+		return;
+	}
+	//error: no free timer
+}
+
+/**
+ * Dequeue a timer
+ *
+ * \param evid 		Event-ID for the timer
+ */
+void unsetTimer(const sc_eventid evid) {
+	int8_t i;
+	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
+		if (timers[i].evid != evid || !(timers[i].in_use))
+			continue;
+		timers[i].in_use = 0;
+	}
+}
+
+// helper: called if the timer timed out
+static void dispatchTimerEvent(struct timer *tim) {
+	if (tim->callback_fun)
+		tim->callback_fun(tim->statemachineHandle, tim->evid);
+
+	if (tim->periodic)
+		setTimeout(tim);
+	else
+		tim->in_use = 0;
+}
+
+/**
+ * Checks if a timer has a timeout.
+ *
+ * \param deltaT_ms Time in milliseconds since the last call.
+ */
+void checkTimers(sc_integer deltaT_ms) {
+	uint8_t i;
+
+	if(deltaT_ms <= 0)
+		return;
+
+	for (i = 0; i < NUM_MAX_TIMERS; ++i) {
+		if (!timers[i].in_use)
+			continue;
+
+		timers[i].timeout_ms -= deltaT_ms;
+		if (timers[i].timeout_ms > 0)
+			continue;
+
+		dispatchTimerEvent(&timers[i]);
+	}
+}

+ 26 - 26
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/statetimer.h

@@ -1,26 +1,26 @@
-
-#ifndef STATETIMER_H_
-#define STATETIMER_H_
-
-#include "sc_types.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void (*raiseEventCallback_t)(void* handle, sc_eventid evid);
-
-void setTimer(void* handle, const sc_eventid evid, const sc_integer time_ms,
-		const sc_boolean periodic, raiseEventCallback_t callback);
-
-void unsetTimer(const sc_eventid evid);
-
-void checkTimers(sc_integer deltaT_ms);
-void initTimers(void);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* STATETIMER_H_ */
+
+#ifndef STATETIMER_H_
+#define STATETIMER_H_
+
+#include "sc_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void (*raiseEventCallback_t)(void* handle, sc_eventid evid);
+
+void setTimer(void* handle, const sc_eventid evid, const sc_integer time_ms,
+		const sc_boolean periodic, raiseEventCallback_t callback);
+
+void unsetTimer(const sc_eventid evid);
+
+void checkTimers(sc_integer deltaT_ms);
+void initTimers(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* STATETIMER_H_ */

+ 42 - 42
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/uart.cpp

@@ -1,42 +1,42 @@
-/*
- * Wrapper to make printf() usable with the Arduino Serial implementation
- *
- * Author:
- * Axel Utech <axel.utech@gmail.com>
- *
- */
-
-#include <stdio.h>
-//#include "arduino.h"
-#include <wiring.h>
-#include <HardwareSerial.h>
-
-static FILE uartout = {0};
-
-// create a output function
-// This works because Serial.write, although of
-// type virtual, already exists.
-static int uart_putchar(char c, FILE *stream) {
-	Serial.write(c);
-	return 0;
-}
-
-/**
- * sets up the necessary pointers
- *
- * \warning Must be called before all printf statements!
- *
- * \param baud Baudrate for the communication (see Serial.begin())
- */
-extern "C" void uartInit(long baud) {
-	// Start the UART
-	Serial.begin(baud);
-
-	// fill in the UART file descriptor with pointer to writer.
-	fdev_setup_stream(&uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE);
-//	fdev_setup_stream(&uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE);
-
-	// The uart is the standard output device STDOUT.
-	stdout = &uartout;
-}
-
+/*
+ * Wrapper to make printf() usable with the Arduino Serial implementation
+ *
+ * Author:
+ * Axel Utech <axel.utech@gmail.com>
+ *
+ */
+
+#include <stdio.h>
+//#include "arduino.h"
+#include <wiring.h>
+#include <HardwareSerial.h>
+
+static FILE uartout = {0};
+
+// create a output function
+// This works because Serial.write, although of
+// type virtual, already exists.
+static int uart_putchar(char c, FILE *stream) {
+	Serial.write(c);
+	return 0;
+}
+
+/**
+ * sets up the necessary pointers
+ *
+ * \warning Must be called before all printf statements!
+ *
+ * \param baud Baudrate for the communication (see Serial.begin())
+ */
+extern "C" void uartInit(long baud) {
+	// Start the UART
+	Serial.begin(baud);
+
+	// fill in the UART file descriptor with pointer to writer.
+	fdev_setup_stream(&uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE);
+//	fdev_setup_stream(&uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE);
+
+	// The uart is the standard output device STDOUT.
+	stdout = &uartout;
+}
+

+ 20 - 20
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/src/uart.h

@@ -1,20 +1,20 @@
-
-#ifndef UART_H_
-#define UART_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <avr/pgmspace.h>
-
-// Macro to send strings stored in program memory space
-#define printf(format, ...) printf_P(PSTR(format), ## __VA_ARGS__)
-
-void uartInit(long baud);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* UART_H_ */
+
+#ifndef UART_H_
+#define UART_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <avr/pgmspace.h>
+
+// Macro to send strings stored in program memory space
+#define printf(format, ...) printf_P(PSTR(format), ## __VA_ARGS__)
+
+void uartInit(long baud);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* UART_H_ */

+ 75 - 75
examples/org.yakindu.sct.examples.c.trafficlight/.cproject

@@ -1,75 +1,75 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
-	<storageModule moduleId="org.eclipse.cdt.core.settings">
-		<cconfiguration id="org.eclipse.cdt.core.default.config.96041897">
-			<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="org.eclipse.cdt.core.default.config.96041897" moduleId="org.eclipse.cdt.core.settings" name="Configuration">
-				<externalSettings/>
-				<extensions>
-					<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
-				</extensions>
-			</storageModule>
-			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
-		</cconfiguration>
-	</storageModule>
-	<storageModule moduleId="scannerConfiguration">
-		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
-	</storageModule>
-	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
-	<storageModule moduleId="refreshScope"/>
-	<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
-	<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
-		<buildTargets>
-			<target name="Qt Release Build" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
-				<buildCommand>make</buildCommand>
-				<buildTarget>release</buildTarget>
-				<stopOnError>false</stopOnError>
-				<useDefaultCommand>false</useDefaultCommand>
-				<runAllBuilders>true</runAllBuilders>
-			</target>
-			<target name="Qt Debug Build" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
-				<buildCommand>make</buildCommand>
-				<buildTarget>debug</buildTarget>
-				<stopOnError>false</stopOnError>
-				<useDefaultCommand>false</useDefaultCommand>
-				<runAllBuilders>true</runAllBuilders>
-			</target>
-			<target name="debug" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
-				<buildCommand>make</buildCommand>
-				<buildArguments/>
-				<buildTarget>debug</buildTarget>
-				<stopOnError>false</stopOnError>
-				<useDefaultCommand>true</useDefaultCommand>
-				<runAllBuilders>true</runAllBuilders>
-			</target>
-		</buildTargets>
-	</storageModule>
-	<storageModule moduleId="org.eclipse.cdt.core.pathentry">
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtCore" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="phonon" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="Qt3Support" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtScriptTools" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtSvg" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDeclarative" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtTest" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtXmlPatterns" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDesigner" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtXml" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtNetwork" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtSql" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtUiTools" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDBus" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtHelp" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtScript" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="Qt" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtGui" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtMultimedia" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtWebKit" kind="inc" path="" system="true"/>
-		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtOpenGL" kind="inc" path="" system="true"/>
-		<pathentry excluding="statemachine|widgets|src-gen/" kind="src" path=""/>
-		<pathentry kind="src" path="src-gen"/>
-		<pathentry kind="src" path="statemachine"/>
-		<pathentry kind="src" path="widgets"/>
-		<pathentry kind="out" path=""/>
-	</storageModule>
-</cproject>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+	<storageModule moduleId="org.eclipse.cdt.core.settings">
+		<cconfiguration id="org.eclipse.cdt.core.default.config.96041897">
+			<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="org.eclipse.cdt.core.default.config.96041897" moduleId="org.eclipse.cdt.core.settings" name="Configuration">
+				<externalSettings/>
+				<extensions>
+					<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+				</extensions>
+			</storageModule>
+			<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+		</cconfiguration>
+	</storageModule>
+	<storageModule moduleId="scannerConfiguration">
+		<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
+	</storageModule>
+	<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
+	<storageModule moduleId="refreshScope"/>
+	<storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/>
+	<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
+		<buildTargets>
+			<target name="Qt Release Build" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
+				<buildCommand>make</buildCommand>
+				<buildTarget>release</buildTarget>
+				<stopOnError>false</stopOnError>
+				<useDefaultCommand>false</useDefaultCommand>
+				<runAllBuilders>true</runAllBuilders>
+			</target>
+			<target name="Qt Debug Build" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
+				<buildCommand>make</buildCommand>
+				<buildTarget>debug</buildTarget>
+				<stopOnError>false</stopOnError>
+				<useDefaultCommand>false</useDefaultCommand>
+				<runAllBuilders>true</runAllBuilders>
+			</target>
+			<target name="debug" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
+				<buildCommand>make</buildCommand>
+				<buildArguments/>
+				<buildTarget>debug</buildTarget>
+				<stopOnError>false</stopOnError>
+				<useDefaultCommand>true</useDefaultCommand>
+				<runAllBuilders>true</runAllBuilders>
+			</target>
+		</buildTargets>
+	</storageModule>
+	<storageModule moduleId="org.eclipse.cdt.core.pathentry">
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtCore" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="phonon" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="Qt3Support" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtScriptTools" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtSvg" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDeclarative" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtTest" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtXmlPatterns" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDesigner" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtXml" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtNetwork" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtSql" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtUiTools" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtDBus" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtHelp" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtScript" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="Qt" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtGui" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtMultimedia" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtWebKit" kind="inc" path="" system="true"/>
+		<pathentry base-path="/opt/QtSDK/Desktop/Qt/4.8.1/gcc/include" include="QtOpenGL" kind="inc" path="" system="true"/>
+		<pathentry excluding="statemachine|widgets|src-gen/" kind="src" path=""/>
+		<pathentry kind="src" path="src-gen"/>
+		<pathentry kind="src" path="statemachine"/>
+		<pathentry kind="src" path="widgets"/>
+		<pathentry kind="out" path=""/>
+	</storageModule>
+</cproject>

+ 2 - 0
archive/org.yakindu.sct.examples.c.trafficlight/.gitignore

@@ -0,0 +1,2 @@
+/bin/
+/target/

+ 104 - 0
archive/org.yakindu.sct.examples.c.trafficlight/.project

@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.examples.c.trafficlight</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.trolltech.qtcppproject.QtMakefileGenerator</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.make.core.makeBuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+				<dictionary>
+					<key>org.eclipse.cdt.core.errorOutputParser</key>
+					<value>org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GmakeErrorParser;org.eclipse.cdt.core.VCErrorParser;org.eclipse.cdt.core.CWDLocator;org.eclipse.cdt.core.MakeErrorParser;</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.append_environment</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.arguments</key>
+					<value></value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.command</key>
+					<value>make</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.location</key>
+					<value></value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.target.auto</key>
+					<value>debug</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.target.clean</key>
+					<value>clean</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.build.target.inc</key>
+					<value>debug</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+					<value>false</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableFullBuild</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.environment</key>
+					<value>PATH=/opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin:${env_var:PATH}|</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.stopOnError</key>
+					<value>false</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+					<value>false</value>
+				</dictionary>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.make.core.ScannerConfigBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.yakindu.sct.builder.SCTBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.core.ccnature</nature>
+		<nature>org.eclipse.cdt.make.core.makeNature</nature>
+		<nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>
+		<nature>com.trolltech.qtcppproject.QtNature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+		<nature>org.yakindu.sct.builder.SCTNature</nature>
+	</natures>
+</projectDescription>

+ 2 - 2
examples/org.yakindu.sct.examples.c.trafficlight/.settings/org.eclipse.core.resources.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-encoding/<project>=UTF-8
+eclipse.preferences.version=1
+encoding/<project>=UTF-8

+ 2 - 2
examples/org.yakindu.sct.examples.c.trafficlight/.settings/org.eclipse.core.runtime.prefs

@@ -1,2 +1,2 @@
-eclipse.preferences.version=1
-line.separator=\n
+eclipse.preferences.version=1
+line.separator=\n

+ 149 - 149
examples/org.yakindu.sct.examples.c.trafficlight/Makefile

@@ -1,149 +1,149 @@
-#############################################################################
-# Makefile for building: org_yakindu_sct_examples_c_trafficlight
-# Generated by qmake (2.01a) (Qt 4.8.1) on: Fri Oct 19 14:54:14 2012
-# Project:  org_yakindu_sct_examples_c_trafficlight.pro
-# Template: app
-# Command: /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
-#############################################################################
-
-first: release
-install: release-install
-uninstall: release-uninstall
-MAKEFILE      = Makefile
-QMAKE         = /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake
-DEL_FILE      = rm -f
-CHK_DIR_EXISTS= test -d
-MKDIR         = mkdir -p
-COPY          = cp -f
-COPY_FILE     = $(COPY)
-COPY_DIR      = $(COPY) -r
-INSTALL_FILE  = install -m 644 -p
-INSTALL_PROGRAM = install -m 755 -p
-INSTALL_DIR   = $(COPY_DIR)
-DEL_FILE      = rm -f
-SYMLINK       = ln -f -s
-DEL_DIR       = rmdir
-MOVE          = mv -f
-CHK_DIR_EXISTS= test -d
-MKDIR         = mkdir -p
-SUBTARGETS    =  \
-		release \
-		debug
-
-release: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release
-release-make_default: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release 
-release-make_first: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release first
-release-all: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release all
-release-clean: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release clean
-release-distclean: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release distclean
-release-install: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release install
-release-uninstall: $(MAKEFILE).Release FORCE
-	$(MAKE) -f $(MAKEFILE).Release uninstall
-debug: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug
-debug-make_default: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug 
-debug-make_first: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug first
-debug-all: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug all
-debug-clean: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug clean
-debug-distclean: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug distclean
-debug-install: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug install
-debug-uninstall: $(MAKEFILE).Debug FORCE
-	$(MAKE) -f $(MAKEFILE).Debug uninstall
-
-Makefile: org_yakindu_sct_examples_c_trafficlight.pro  /opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/default/qmake.conf /opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/unix.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/linux.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base-unix.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-base.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-unix.conf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/qconfig.pri \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/modules/qt_webkit_version.pri \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_functions.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_config.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/exclusive_builds.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_pre.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/release.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/debug_and_release.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_post.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/gdb_dwarf_index.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/warn_on.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/thread.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/moc.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/resources.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/uic.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/yacc.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/lex.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/include_source_dir.prf \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtGui.prl \
-		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtCore.prl
-	$(QMAKE) CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/unix.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/linux.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base-unix.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-base.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-unix.conf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/qconfig.pri:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/modules/qt_webkit_version.pri:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_functions.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_config.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/exclusive_builds.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_pre.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/release.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/debug_and_release.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_post.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/gdb_dwarf_index.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/warn_on.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/thread.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/moc.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/resources.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/uic.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/yacc.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/lex.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/include_source_dir.prf:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtGui.prl:
-/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtCore.prl:
-qmake: qmake_all FORCE
-	@$(QMAKE) CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
-
-qmake_all: FORCE
-
-make_default: release-make_default debug-make_default FORCE
-make_first: release-make_first debug-make_first FORCE
-all: release-all debug-all FORCE
-clean: release-clean debug-clean FORCE
-distclean: release-distclean debug-distclean FORCE
-	-$(DEL_FILE) Makefile
-
-check: first
-
-release-mocclean: $(MAKEFILE).Release
-	$(MAKE) -f $(MAKEFILE).Release mocclean
-debug-mocclean: $(MAKEFILE).Debug
-	$(MAKE) -f $(MAKEFILE).Debug mocclean
-mocclean: release-mocclean debug-mocclean
-
-release-mocables: $(MAKEFILE).Release
-	$(MAKE) -f $(MAKEFILE).Release mocables
-debug-mocables: $(MAKEFILE).Debug
-	$(MAKE) -f $(MAKEFILE).Debug mocables
-mocables: release-mocables debug-mocables
-FORCE:
-
-$(MAKEFILE).Release: Makefile
-$(MAKEFILE).Debug: Makefile
+#############################################################################
+# Makefile for building: org_yakindu_sct_examples_c_trafficlight
+# Generated by qmake (2.01a) (Qt 4.8.1) on: Fri Oct 19 14:54:14 2012
+# Project:  org_yakindu_sct_examples_c_trafficlight.pro
+# Template: app
+# Command: /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
+#############################################################################
+
+first: release
+install: release-install
+uninstall: release-uninstall
+MAKEFILE      = Makefile
+QMAKE         = /opt/QtSDK/Desktop/Qt/4.8.1/gcc/bin/qmake
+DEL_FILE      = rm -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+COPY          = cp -f
+COPY_FILE     = $(COPY)
+COPY_DIR      = $(COPY) -r
+INSTALL_FILE  = install -m 644 -p
+INSTALL_PROGRAM = install -m 755 -p
+INSTALL_DIR   = $(COPY_DIR)
+DEL_FILE      = rm -f
+SYMLINK       = ln -f -s
+DEL_DIR       = rmdir
+MOVE          = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+SUBTARGETS    =  \
+		release \
+		debug
+
+release: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release
+release-make_default: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release 
+release-make_first: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release first
+release-all: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release all
+release-clean: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release clean
+release-distclean: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release distclean
+release-install: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release install
+release-uninstall: $(MAKEFILE).Release FORCE
+	$(MAKE) -f $(MAKEFILE).Release uninstall
+debug: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug
+debug-make_default: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug 
+debug-make_first: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug first
+debug-all: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug all
+debug-clean: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug clean
+debug-distclean: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug distclean
+debug-install: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug install
+debug-uninstall: $(MAKEFILE).Debug FORCE
+	$(MAKE) -f $(MAKEFILE).Debug uninstall
+
+Makefile: org_yakindu_sct_examples_c_trafficlight.pro  /opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/default/qmake.conf /opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/unix.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/linux.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base-unix.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-base.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-unix.conf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/qconfig.pri \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/modules/qt_webkit_version.pri \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_functions.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_config.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/exclusive_builds.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_pre.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/release.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/debug_and_release.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_post.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/gdb_dwarf_index.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/warn_on.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/thread.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/moc.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/resources.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/uic.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/yacc.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/lex.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/include_source_dir.prf \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtGui.prl \
+		/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtCore.prl
+	$(QMAKE) CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/unix.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/linux.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/gcc-base-unix.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-base.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/common/g++-unix.conf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/qconfig.pri:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/modules/qt_webkit_version.pri:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_functions.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt_config.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/exclusive_builds.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_pre.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/release.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/debug_and_release.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/default_post.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/gdb_dwarf_index.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/warn_on.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/qt.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/unix/thread.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/moc.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/resources.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/uic.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/yacc.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/lex.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/mkspecs/features/include_source_dir.prf:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtGui.prl:
+/opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib/libQtCore.prl:
+qmake: qmake_all FORCE
+	@$(QMAKE) CONFIG+=debug_and_release -o Makefile org_yakindu_sct_examples_c_trafficlight.pro
+
+qmake_all: FORCE
+
+make_default: release-make_default debug-make_default FORCE
+make_first: release-make_first debug-make_first FORCE
+all: release-all debug-all FORCE
+clean: release-clean debug-clean FORCE
+distclean: release-distclean debug-distclean FORCE
+	-$(DEL_FILE) Makefile
+
+check: first
+
+release-mocclean: $(MAKEFILE).Release
+	$(MAKE) -f $(MAKEFILE).Release mocclean
+debug-mocclean: $(MAKEFILE).Debug
+	$(MAKE) -f $(MAKEFILE).Debug mocclean
+mocclean: release-mocclean debug-mocclean
+
+release-mocables: $(MAKEFILE).Release
+	$(MAKE) -f $(MAKEFILE).Release mocables
+debug-mocables: $(MAKEFILE).Debug
+	$(MAKE) -f $(MAKEFILE).Debug mocables
+mocables: release-mocables debug-mocables
+FORCE:
+
+$(MAKEFILE).Release: Makefile
+$(MAKEFILE).Debug: Makefile

File diff suppressed because it is too large
+ 295 - 295
examples/org.yakindu.sct.examples.c.trafficlight/Makefile.Debug


File diff suppressed because it is too large
+ 294 - 294
examples/org.yakindu.sct.examples.c.trafficlight/Makefile.Release


+ 94 - 94
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_PedestrianLightWidget.cpp

@@ -1,94 +1,94 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'PedestrianLightWidget.h'
-**
-** Created: Fri Oct 19 15:33:20 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../widgets/PedestrianLightWidget.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'PedestrianLightWidget.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_PedestrianLightWidget[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       1,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      39,   23,   22,   22, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_PedestrianLightWidget[] = {
-    "PedestrianLightWidget\0\0white,red,green\0"
-    "setSignals(bool,bool,bool)\0"
-};
-
-void PedestrianLightWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        PedestrianLightWidget *_t = static_cast<PedestrianLightWidget *>(_o);
-        switch (_id) {
-        case 0: _t->setSignals((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData PedestrianLightWidget::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject PedestrianLightWidget::staticMetaObject = {
-    { &QWidget::staticMetaObject, qt_meta_stringdata_PedestrianLightWidget,
-      qt_meta_data_PedestrianLightWidget, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &PedestrianLightWidget::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *PedestrianLightWidget::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *PedestrianLightWidget::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_PedestrianLightWidget))
-        return static_cast<void*>(const_cast< PedestrianLightWidget*>(this));
-    return QWidget::qt_metacast(_clname);
-}
-
-int PedestrianLightWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QWidget::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 1)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 1;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'PedestrianLightWidget.h'
+**
+** Created: Fri Oct 19 15:33:20 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../widgets/PedestrianLightWidget.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'PedestrianLightWidget.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_PedestrianLightWidget[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       1,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       0,       // signalCount
+
+ // slots: signature, parameters, type, tag, flags
+      39,   23,   22,   22, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_PedestrianLightWidget[] = {
+    "PedestrianLightWidget\0\0white,red,green\0"
+    "setSignals(bool,bool,bool)\0"
+};
+
+void PedestrianLightWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        PedestrianLightWidget *_t = static_cast<PedestrianLightWidget *>(_o);
+        switch (_id) {
+        case 0: _t->setSignals((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData PedestrianLightWidget::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject PedestrianLightWidget::staticMetaObject = {
+    { &QWidget::staticMetaObject, qt_meta_stringdata_PedestrianLightWidget,
+      qt_meta_data_PedestrianLightWidget, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &PedestrianLightWidget::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *PedestrianLightWidget::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *PedestrianLightWidget::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_PedestrianLightWidget))
+        return static_cast<void*>(const_cast< PedestrianLightWidget*>(this));
+    return QWidget::qt_metacast(_clname);
+}
+
+int PedestrianLightWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QWidget::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 1)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 1;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE

+ 105 - 105
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TimeEvent.cpp

@@ -1,105 +1,105 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'TimeEvent.h'
-**
-** Created: Fri Oct 19 15:33:19 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../statemachine/TimeEvent.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'TimeEvent.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_TimeEvent[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       2,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       1,       // signalCount
-
- // signals: signature, parameters, type, tag, flags
-      16,   11,   10,   10, 0x05,
-
- // slots: signature, parameters, type, tag, flags
-      36,   10,   10,   10, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_TimeEvent[] = {
-    "TimeEvent\0\0evid\0timeout(sc_eventid)\0"
-    "timeout()\0"
-};
-
-void TimeEvent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        TimeEvent *_t = static_cast<TimeEvent *>(_o);
-        switch (_id) {
-        case 0: _t->timeout((*reinterpret_cast< const sc_eventid(*)>(_a[1]))); break;
-        case 1: _t->timeout(); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData TimeEvent::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject TimeEvent::staticMetaObject = {
-    { &QObject::staticMetaObject, qt_meta_stringdata_TimeEvent,
-      qt_meta_data_TimeEvent, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &TimeEvent::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *TimeEvent::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *TimeEvent::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_TimeEvent))
-        return static_cast<void*>(const_cast< TimeEvent*>(this));
-    return QObject::qt_metacast(_clname);
-}
-
-int TimeEvent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QObject::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 2)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 2;
-    }
-    return _id;
-}
-
-// SIGNAL 0
-void TimeEvent::timeout(const sc_eventid _t1)
-{
-    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
-    QMetaObject::activate(this, &staticMetaObject, 0, _a);
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'TimeEvent.h'
+**
+** Created: Fri Oct 19 15:33:19 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../statemachine/TimeEvent.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'TimeEvent.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_TimeEvent[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       2,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       1,       // signalCount
+
+ // signals: signature, parameters, type, tag, flags
+      16,   11,   10,   10, 0x05,
+
+ // slots: signature, parameters, type, tag, flags
+      36,   10,   10,   10, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_TimeEvent[] = {
+    "TimeEvent\0\0evid\0timeout(sc_eventid)\0"
+    "timeout()\0"
+};
+
+void TimeEvent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        TimeEvent *_t = static_cast<TimeEvent *>(_o);
+        switch (_id) {
+        case 0: _t->timeout((*reinterpret_cast< const sc_eventid(*)>(_a[1]))); break;
+        case 1: _t->timeout(); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData TimeEvent::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject TimeEvent::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_TimeEvent,
+      qt_meta_data_TimeEvent, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &TimeEvent::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *TimeEvent::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *TimeEvent::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_TimeEvent))
+        return static_cast<void*>(const_cast< TimeEvent*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int TimeEvent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 2)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 2;
+    }
+    return _id;
+}
+
+// SIGNAL 0
+void TimeEvent::timeout(const sc_eventid _t1)
+{
+    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+    QMetaObject::activate(this, &staticMetaObject, 0, _a);
+}
+QT_END_MOC_NAMESPACE

+ 93 - 93
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TimerService.cpp

@@ -1,93 +1,93 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'TimerService.h'
-**
-** Created: Thu Oct 18 14:15:49 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../statechart/TimerService.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'TimerService.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_TimerService[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       1,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      19,   14,   13,   13, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_TimerService[] = {
-    "TimerService\0\0evid\0raiseTimeEvent(sc_eventid)\0"
-};
-
-void TimerService::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        TimerService *_t = static_cast<TimerService *>(_o);
-        switch (_id) {
-        case 0: _t->raiseTimeEvent((*reinterpret_cast< sc_eventid(*)>(_a[1]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData TimerService::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject TimerService::staticMetaObject = {
-    { &QObject::staticMetaObject, qt_meta_stringdata_TimerService,
-      qt_meta_data_TimerService, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &TimerService::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *TimerService::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *TimerService::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_TimerService))
-        return static_cast<void*>(const_cast< TimerService*>(this));
-    return QObject::qt_metacast(_clname);
-}
-
-int TimerService::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QObject::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 1)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 1;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'TimerService.h'
+**
+** Created: Thu Oct 18 14:15:49 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../statechart/TimerService.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'TimerService.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_TimerService[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       1,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       0,       // signalCount
+
+ // slots: signature, parameters, type, tag, flags
+      19,   14,   13,   13, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_TimerService[] = {
+    "TimerService\0\0evid\0raiseTimeEvent(sc_eventid)\0"
+};
+
+void TimerService::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        TimerService *_t = static_cast<TimerService *>(_o);
+        switch (_id) {
+        case 0: _t->raiseTimeEvent((*reinterpret_cast< sc_eventid(*)>(_a[1]))); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData TimerService::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject TimerService::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_TimerService,
+      qt_meta_data_TimerService, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &TimerService::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *TimerService::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *TimerService::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_TimerService))
+        return static_cast<void*>(const_cast< TimerService*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int TimerService::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 1)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 1;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE

+ 111 - 111
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightRunner.cpp

@@ -1,111 +1,111 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'TrafficLightRunner.h'
-**
-** Created: Fri Oct 19 15:33:20 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../statemachine/TrafficLightRunner.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'TrafficLightRunner.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_TrafficLightRunner[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       4,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       1,       // signalCount
-
- // signals: signature, parameters, type, tag, flags
-      27,   20,   19,   19, 0x05,
-
- // slots: signature, parameters, type, tag, flags
-      59,   19,   19,   19, 0x0a,
-      70,   19,   19,   19, 0x0a,
-      95,   19,   19,   19, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_TrafficLightRunner[] = {
-    "TrafficLightRunner\0\0handle\0"
-    "cycleDone(TrafficLightWaiting*)\0"
-    "runCycle()\0raisePedestrianRequest()\0"
-    "raiseOnOff()\0"
-};
-
-void TrafficLightRunner::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        TrafficLightRunner *_t = static_cast<TrafficLightRunner *>(_o);
-        switch (_id) {
-        case 0: _t->cycleDone((*reinterpret_cast< TrafficLightWaiting*(*)>(_a[1]))); break;
-        case 1: _t->runCycle(); break;
-        case 2: _t->raisePedestrianRequest(); break;
-        case 3: _t->raiseOnOff(); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData TrafficLightRunner::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject TrafficLightRunner::staticMetaObject = {
-    { &QObject::staticMetaObject, qt_meta_stringdata_TrafficLightRunner,
-      qt_meta_data_TrafficLightRunner, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &TrafficLightRunner::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *TrafficLightRunner::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *TrafficLightRunner::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightRunner))
-        return static_cast<void*>(const_cast< TrafficLightRunner*>(this));
-    return QObject::qt_metacast(_clname);
-}
-
-int TrafficLightRunner::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QObject::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 4)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 4;
-    }
-    return _id;
-}
-
-// SIGNAL 0
-void TrafficLightRunner::cycleDone(TrafficLightWaiting * _t1)
-{
-    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
-    QMetaObject::activate(this, &staticMetaObject, 0, _a);
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'TrafficLightRunner.h'
+**
+** Created: Fri Oct 19 15:33:20 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../statemachine/TrafficLightRunner.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'TrafficLightRunner.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_TrafficLightRunner[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       4,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       1,       // signalCount
+
+ // signals: signature, parameters, type, tag, flags
+      27,   20,   19,   19, 0x05,
+
+ // slots: signature, parameters, type, tag, flags
+      59,   19,   19,   19, 0x0a,
+      70,   19,   19,   19, 0x0a,
+      95,   19,   19,   19, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_TrafficLightRunner[] = {
+    "TrafficLightRunner\0\0handle\0"
+    "cycleDone(TrafficLightWaiting*)\0"
+    "runCycle()\0raisePedestrianRequest()\0"
+    "raiseOnOff()\0"
+};
+
+void TrafficLightRunner::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        TrafficLightRunner *_t = static_cast<TrafficLightRunner *>(_o);
+        switch (_id) {
+        case 0: _t->cycleDone((*reinterpret_cast< TrafficLightWaiting*(*)>(_a[1]))); break;
+        case 1: _t->runCycle(); break;
+        case 2: _t->raisePedestrianRequest(); break;
+        case 3: _t->raiseOnOff(); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData TrafficLightRunner::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject TrafficLightRunner::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_TrafficLightRunner,
+      qt_meta_data_TrafficLightRunner, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &TrafficLightRunner::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *TrafficLightRunner::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *TrafficLightRunner::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightRunner))
+        return static_cast<void*>(const_cast< TrafficLightRunner*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int TrafficLightRunner::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 4)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 4;
+    }
+    return _id;
+}
+
+// SIGNAL 0
+void TrafficLightRunner::cycleDone(TrafficLightWaiting * _t1)
+{
+    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
+    QMetaObject::activate(this, &staticMetaObject, 0, _a);
+}
+QT_END_MOC_NAMESPACE

+ 94 - 94
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightTimer.cpp

@@ -1,94 +1,94 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'TrafficLightTimer.h'
-**
-** Created: Fri Oct 19 15:33:19 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../statemachine/TrafficLightTimer.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'TrafficLightTimer.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_TrafficLightTimer[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       1,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      24,   19,   18,   18, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_TrafficLightTimer[] = {
-    "TrafficLightTimer\0\0evid\0"
-    "raiseTimeEvent(sc_eventid)\0"
-};
-
-void TrafficLightTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        TrafficLightTimer *_t = static_cast<TrafficLightTimer *>(_o);
-        switch (_id) {
-        case 0: _t->raiseTimeEvent((*reinterpret_cast< sc_eventid(*)>(_a[1]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData TrafficLightTimer::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject TrafficLightTimer::staticMetaObject = {
-    { &QObject::staticMetaObject, qt_meta_stringdata_TrafficLightTimer,
-      qt_meta_data_TrafficLightTimer, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &TrafficLightTimer::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *TrafficLightTimer::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *TrafficLightTimer::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightTimer))
-        return static_cast<void*>(const_cast< TrafficLightTimer*>(this));
-    return QObject::qt_metacast(_clname);
-}
-
-int TrafficLightTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QObject::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 1)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 1;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'TrafficLightTimer.h'
+**
+** Created: Fri Oct 19 15:33:19 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../statemachine/TrafficLightTimer.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'TrafficLightTimer.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_TrafficLightTimer[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       1,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       0,       // signalCount
+
+ // slots: signature, parameters, type, tag, flags
+      24,   19,   18,   18, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_TrafficLightTimer[] = {
+    "TrafficLightTimer\0\0evid\0"
+    "raiseTimeEvent(sc_eventid)\0"
+};
+
+void TrafficLightTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        TrafficLightTimer *_t = static_cast<TrafficLightTimer *>(_o);
+        switch (_id) {
+        case 0: _t->raiseTimeEvent((*reinterpret_cast< sc_eventid(*)>(_a[1]))); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData TrafficLightTimer::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject TrafficLightTimer::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_TrafficLightTimer,
+      qt_meta_data_TrafficLightTimer, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &TrafficLightTimer::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *TrafficLightTimer::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *TrafficLightTimer::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightTimer))
+        return static_cast<void*>(const_cast< TrafficLightTimer*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int TrafficLightTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 1)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 1;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE

+ 94 - 94
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_TrafficLightWidget.cpp

@@ -1,94 +1,94 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'TrafficLightWidget.h'
-**
-** Created: Fri Oct 19 15:33:21 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../widgets/TrafficLightWidget.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'TrafficLightWidget.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_TrafficLightWidget[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       1,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      37,   20,   19,   19, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_TrafficLightWidget[] = {
-    "TrafficLightWidget\0\0red,yellow,green\0"
-    "setSignals(bool,bool,bool)\0"
-};
-
-void TrafficLightWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        TrafficLightWidget *_t = static_cast<TrafficLightWidget *>(_o);
-        switch (_id) {
-        case 0: _t->setSignals((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData TrafficLightWidget::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject TrafficLightWidget::staticMetaObject = {
-    { &QWidget::staticMetaObject, qt_meta_stringdata_TrafficLightWidget,
-      qt_meta_data_TrafficLightWidget, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &TrafficLightWidget::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *TrafficLightWidget::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *TrafficLightWidget::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightWidget))
-        return static_cast<void*>(const_cast< TrafficLightWidget*>(this));
-    return QWidget::qt_metacast(_clname);
-}
-
-int TrafficLightWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QWidget::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 1)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 1;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'TrafficLightWidget.h'
+**
+** Created: Fri Oct 19 15:33:21 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../widgets/TrafficLightWidget.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'TrafficLightWidget.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_TrafficLightWidget[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       1,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       0,       // signalCount
+
+ // slots: signature, parameters, type, tag, flags
+      37,   20,   19,   19, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_TrafficLightWidget[] = {
+    "TrafficLightWidget\0\0red,yellow,green\0"
+    "setSignals(bool,bool,bool)\0"
+};
+
+void TrafficLightWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        TrafficLightWidget *_t = static_cast<TrafficLightWidget *>(_o);
+        switch (_id) {
+        case 0: _t->setSignals((*reinterpret_cast< bool(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData TrafficLightWidget::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject TrafficLightWidget::staticMetaObject = {
+    { &QWidget::staticMetaObject, qt_meta_stringdata_TrafficLightWidget,
+      qt_meta_data_TrafficLightWidget, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &TrafficLightWidget::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *TrafficLightWidget::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *TrafficLightWidget::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_TrafficLightWidget))
+        return static_cast<void*>(const_cast< TrafficLightWidget*>(this));
+    return QWidget::qt_metacast(_clname);
+}
+
+int TrafficLightWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QWidget::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 1)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 1;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE

+ 94 - 94
examples/org.yakindu.sct.examples.c.trafficlight/debug/moc_org_yakindu_sct_examples_c_trafficlight.cpp

@@ -1,94 +1,94 @@
-/****************************************************************************
-** Meta object code from reading C++ file 'org_yakindu_sct_examples_c_trafficlight.h'
-**
-** Created: Fri Oct 19 15:33:21 2012
-**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "../org_yakindu_sct_examples_c_trafficlight.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'org_yakindu_sct_examples_c_trafficlight.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 63
-#error "This file was generated using the moc from 4.8.1. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_org_yakindu_sct_examples_c_trafficlight[] = {
-
- // content:
-       6,       // revision
-       0,       // classname
-       0,    0, // classinfo
-       1,   14, // methods
-       0,    0, // properties
-       0,    0, // enums/sets
-       0,    0, // constructors
-       0,       // flags
-       0,       // signalCount
-
- // slots: signature, parameters, type, tag, flags
-      48,   41,   40,   40, 0x0a,
-
-       0        // eod
-};
-
-static const char qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight[] = {
-    "org_yakindu_sct_examples_c_trafficlight\0"
-    "\0handle\0update(TrafficLightWaiting*)\0"
-};
-
-void org_yakindu_sct_examples_c_trafficlight::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
-{
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        Q_ASSERT(staticMetaObject.cast(_o));
-        org_yakindu_sct_examples_c_trafficlight *_t = static_cast<org_yakindu_sct_examples_c_trafficlight *>(_o);
-        switch (_id) {
-        case 0: _t->update((*reinterpret_cast< TrafficLightWaiting*(*)>(_a[1]))); break;
-        default: ;
-        }
-    }
-}
-
-const QMetaObjectExtraData org_yakindu_sct_examples_c_trafficlight::staticMetaObjectExtraData = {
-    0,  qt_static_metacall 
-};
-
-const QMetaObject org_yakindu_sct_examples_c_trafficlight::staticMetaObject = {
-    { &QMainWindow::staticMetaObject, qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight,
-      qt_meta_data_org_yakindu_sct_examples_c_trafficlight, &staticMetaObjectExtraData }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &org_yakindu_sct_examples_c_trafficlight::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *org_yakindu_sct_examples_c_trafficlight::metaObject() const
-{
-    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *org_yakindu_sct_examples_c_trafficlight::qt_metacast(const char *_clname)
-{
-    if (!_clname) return 0;
-    if (!strcmp(_clname, qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight))
-        return static_cast<void*>(const_cast< org_yakindu_sct_examples_c_trafficlight*>(this));
-    return QMainWindow::qt_metacast(_clname);
-}
-
-int org_yakindu_sct_examples_c_trafficlight::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
-    _id = QMainWindow::qt_metacall(_c, _id, _a);
-    if (_id < 0)
-        return _id;
-    if (_c == QMetaObject::InvokeMetaMethod) {
-        if (_id < 1)
-            qt_static_metacall(this, _c, _id, _a);
-        _id -= 1;
-    }
-    return _id;
-}
-QT_END_MOC_NAMESPACE
+/****************************************************************************
+** Meta object code from reading C++ file 'org_yakindu_sct_examples_c_trafficlight.h'
+**
+** Created: Fri Oct 19 15:33:21 2012
+**      by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "../org_yakindu_sct_examples_c_trafficlight.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'org_yakindu_sct_examples_c_trafficlight.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 63
+#error "This file was generated using the moc from 4.8.1. It"
+#error "cannot be used with the include files from this version of Qt."
+#error "(The moc has changed too much.)"
+#endif
+
+QT_BEGIN_MOC_NAMESPACE
+static const uint qt_meta_data_org_yakindu_sct_examples_c_trafficlight[] = {
+
+ // content:
+       6,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       1,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       0,       // signalCount
+
+ // slots: signature, parameters, type, tag, flags
+      48,   41,   40,   40, 0x0a,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight[] = {
+    "org_yakindu_sct_examples_c_trafficlight\0"
+    "\0handle\0update(TrafficLightWaiting*)\0"
+};
+
+void org_yakindu_sct_examples_c_trafficlight::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
+{
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        Q_ASSERT(staticMetaObject.cast(_o));
+        org_yakindu_sct_examples_c_trafficlight *_t = static_cast<org_yakindu_sct_examples_c_trafficlight *>(_o);
+        switch (_id) {
+        case 0: _t->update((*reinterpret_cast< TrafficLightWaiting*(*)>(_a[1]))); break;
+        default: ;
+        }
+    }
+}
+
+const QMetaObjectExtraData org_yakindu_sct_examples_c_trafficlight::staticMetaObjectExtraData = {
+    0,  qt_static_metacall 
+};
+
+const QMetaObject org_yakindu_sct_examples_c_trafficlight::staticMetaObject = {
+    { &QMainWindow::staticMetaObject, qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight,
+      qt_meta_data_org_yakindu_sct_examples_c_trafficlight, &staticMetaObjectExtraData }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &org_yakindu_sct_examples_c_trafficlight::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *org_yakindu_sct_examples_c_trafficlight::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *org_yakindu_sct_examples_c_trafficlight::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_org_yakindu_sct_examples_c_trafficlight))
+        return static_cast<void*>(const_cast< org_yakindu_sct_examples_c_trafficlight*>(this));
+    return QMainWindow::qt_metacast(_clname);
+}
+
+int org_yakindu_sct_examples_c_trafficlight::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QMainWindow::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        if (_id < 1)
+            qt_static_metacall(this, _c, _id, _a);
+        _id -= 1;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE

+ 43 - 43
examples/org.yakindu.sct.examples.c.trafficlight/main.cpp

@@ -1,43 +1,43 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "org_yakindu_sct_examples_c_trafficlight.h"
-
-#include <QtGui>
-#include <QApplication>
-#include "src-gen/sc_types.h"
-#include "src-gen/TrafficLightWaiting.h"
-#include "statemachine/TrafficLightTimer.h"
-#include "statemachine/TrafficLightRunner.h"
-
-TrafficLightTimer *timer;
-
-int main(int argc, char *argv[]) {
-	TrafficLightWaiting handle;
-	trafficLightWaiting_init(&handle);
-	timer = new TrafficLightTimer(&handle);
-	trafficLightWaiting_enter(&handle);
-	QApplication a(argc, argv);
-	TrafficLightRunner *runner = new TrafficLightRunner(&handle, 100);
-	org_yakindu_sct_examples_c_trafficlight w(0, runner);
-	w.show();
-	int ret = a.exec();
-	return ret;
-}
-
-void trafficLightWaiting_setTimer(const sc_eventid evid,
-		const sc_integer time_ms, const sc_boolean periodic) {
-	timer->setTimer(evid, time_ms, periodic);
-}
-
-void trafficLightWaiting_unsetTimer(const sc_eventid evid) {
-	timer->unsetTimer(evid);
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "org_yakindu_sct_examples_c_trafficlight.h"
+
+#include <QtGui>
+#include <QApplication>
+#include "src-gen/sc_types.h"
+#include "src-gen/TrafficLightWaiting.h"
+#include "statemachine/TrafficLightTimer.h"
+#include "statemachine/TrafficLightRunner.h"
+
+TrafficLightTimer *timer;
+
+int main(int argc, char *argv[]) {
+	TrafficLightWaiting handle;
+	trafficLightWaiting_init(&handle);
+	timer = new TrafficLightTimer(&handle);
+	trafficLightWaiting_enter(&handle);
+	QApplication a(argc, argv);
+	TrafficLightRunner *runner = new TrafficLightRunner(&handle, 100);
+	org_yakindu_sct_examples_c_trafficlight w(0, runner);
+	w.show();
+	int ret = a.exec();
+	return ret;
+}
+
+void trafficLightWaiting_setTimer(const sc_eventid evid,
+		const sc_integer time_ms, const sc_boolean periodic) {
+	timer->setTimer(evid, time_ms, periodic);
+}
+
+void trafficLightWaiting_unsetTimer(const sc_eventid evid) {
+	timer->unsetTimer(evid);
+}

+ 22 - 22
examples/org.yakindu.sct.examples.c.trafficlight/model/GenModelJava.sgen

@@ -1,23 +1,23 @@
-GeneratorModel for yakindu::c {
-
-	statechart TrafficLightWaiting {
-	 	
-		feature Outlet {
-			targetProject = "org.yakindu.sct.examples.c.trafficlight"
-			targetFolder = "src-gen"
-		} 
-		
-		feature LicenseHeader {
-			licenseText = "
-Copyright (c) 2012 committers of YAKINDU and others.
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Eclipse Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
- 
-Contributors:
-    committers of YAKINDU - initial API and implementation
-�"
-		}
-	}
+GeneratorModel for yakindu::c {
+
+	statechart TrafficLightWaiting {
+	 	
+		feature Outlet {
+			targetProject = "org.yakindu.sct.examples.c.trafficlight"
+			targetFolder = "src-gen"
+		} 
+		
+		feature LicenseHeader {
+			licenseText = "
+Copyright (c) 2012 committers of YAKINDU and others.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+ 
+Contributors:
+    committers of YAKINDU - initial API and implementation
+�"
+		}
+	}
 }

examples/org.yakindu.sct.examples.c.trafficlight/model/TrafficLightWaiting.sct → archive/org.yakindu.sct.examples.c.trafficlight/model/TrafficLightWaiting.sct


+ 0 - 0
examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight


+ 39 - 39
examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.cpp

@@ -1,39 +1,39 @@
-#include "org_yakindu_sct_examples_c_trafficlight.h"
-
-org_yakindu_sct_examples_c_trafficlight::org_yakindu_sct_examples_c_trafficlight(
-		QWidget *parent, TrafficLightRunner *runner) :
-		QMainWindow(parent) {
-
-	ui.setupUi(this);
-	crossing = new CrossingWidget(this);
-
-	trafficLight = new TrafficLightWidget(crossing);
-	trafficLight->setGeometry(275, 75, 30, 90);
-
-	pedestrianLight = new PedestrianLightWidget(crossing);
-	pedestrianLight->setGeometry(50, 10, 70, 20);
-
-	connect(runner, SIGNAL(cycleDone(TrafficLightWaiting*)), this, SLOT(update(TrafficLightWaiting*)));
-
-	pedestrianReq = new QPushButton("pedestrian request", this);
-	pedestrianReq->setGeometry(1, 365, 150, 30);
-	connect(pedestrianReq, SIGNAL(released()), runner, SLOT(raisePedestrianRequest()));
-
-
-	off = new QPushButton("off / on", this);
-	off->setGeometry(249, 365, 150, 30);
-	connect(off, SIGNAL(released()), runner, SLOT(raiseOnOff()));
-}
-
-void org_yakindu_sct_examples_c_trafficlight::update(
-		TrafficLightWaiting *handle) {
-	trafficLight->setSignals(handle->ifaceTrafficLight.red,
-			handle->ifaceTrafficLight.yellow, handle->ifaceTrafficLight.green);
-	pedestrianLight->setSignals(handle->ifacePedestrian.request,
-			handle->ifacePedestrian.red, handle->ifacePedestrian.green);
-	QMainWindow::update();
-}
-
-org_yakindu_sct_examples_c_trafficlight::~org_yakindu_sct_examples_c_trafficlight() {
-
-}
+#include "org_yakindu_sct_examples_c_trafficlight.h"
+
+org_yakindu_sct_examples_c_trafficlight::org_yakindu_sct_examples_c_trafficlight(
+		QWidget *parent, TrafficLightRunner *runner) :
+		QMainWindow(parent) {
+
+	ui.setupUi(this);
+	crossing = new CrossingWidget(this);
+
+	trafficLight = new TrafficLightWidget(crossing);
+	trafficLight->setGeometry(275, 75, 30, 90);
+
+	pedestrianLight = new PedestrianLightWidget(crossing);
+	pedestrianLight->setGeometry(50, 10, 70, 20);
+
+	connect(runner, SIGNAL(cycleDone(TrafficLightWaiting*)), this, SLOT(update(TrafficLightWaiting*)));
+
+	pedestrianReq = new QPushButton("pedestrian request", this);
+	pedestrianReq->setGeometry(1, 365, 150, 30);
+	connect(pedestrianReq, SIGNAL(released()), runner, SLOT(raisePedestrianRequest()));
+
+
+	off = new QPushButton("off / on", this);
+	off->setGeometry(249, 365, 150, 30);
+	connect(off, SIGNAL(released()), runner, SLOT(raiseOnOff()));
+}
+
+void org_yakindu_sct_examples_c_trafficlight::update(
+		TrafficLightWaiting *handle) {
+	trafficLight->setSignals(handle->ifaceTrafficLight.red,
+			handle->ifaceTrafficLight.yellow, handle->ifaceTrafficLight.green);
+	pedestrianLight->setSignals(handle->ifacePedestrian.request,
+			handle->ifacePedestrian.red, handle->ifacePedestrian.green);
+	QMainWindow::update();
+}
+
+org_yakindu_sct_examples_c_trafficlight::~org_yakindu_sct_examples_c_trafficlight() {
+
+}

+ 30 - 30
examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.h

@@ -1,30 +1,30 @@
-#ifndef ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
-#define ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
-
-#include <QtGui/QMainWindow>
-#include "ui_org_yakindu_sct_examples_c_trafficlight.h"
-#include "widgets/CrossingWidget.h"
-#include "widgets/TrafficLightWidget.h"
-#include "widgets/PedestrianLightWidget.h"
-#include "statemachine/TrafficLightRunner.h"
-
-class org_yakindu_sct_examples_c_trafficlight: public QMainWindow {
-
-Q_OBJECT
-
-public:
-	org_yakindu_sct_examples_c_trafficlight(QWidget *parent = 0, TrafficLightRunner* runner = 0);
-	~org_yakindu_sct_examples_c_trafficlight();
-
-public slots:
-	void update(TrafficLightWaiting *handle);
-
-private:
-	Ui::org_yakindu_sct_examples_c_trafficlightClass ui;
-	CrossingWidget *crossing;
-	TrafficLightWidget *trafficLight;
-	PedestrianLightWidget *pedestrianLight;
-	QPushButton *pedestrianReq;
-	QPushButton *off;
-};
-#endif // ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+#ifndef ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+#define ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+
+#include <QtGui/QMainWindow>
+#include "ui_org_yakindu_sct_examples_c_trafficlight.h"
+#include "widgets/CrossingWidget.h"
+#include "widgets/TrafficLightWidget.h"
+#include "widgets/PedestrianLightWidget.h"
+#include "statemachine/TrafficLightRunner.h"
+
+class org_yakindu_sct_examples_c_trafficlight: public QMainWindow {
+
+Q_OBJECT
+
+public:
+	org_yakindu_sct_examples_c_trafficlight(QWidget *parent = 0, TrafficLightRunner* runner = 0);
+	~org_yakindu_sct_examples_c_trafficlight();
+
+public slots:
+	void update(TrafficLightWaiting *handle);
+
+private:
+	Ui::org_yakindu_sct_examples_c_trafficlightClass ui;
+	CrossingWidget *crossing;
+	TrafficLightWidget *trafficLight;
+	PedestrianLightWidget *pedestrianLight;
+	QPushButton *pedestrianReq;
+	QPushButton *off;
+};
+#endif // ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H

+ 26 - 26
examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.pro

@@ -1,26 +1,26 @@
-TEMPLATE = app
-TARGET = org_yakindu_sct_examples_c_trafficlight
-QT += core \
-    gui
-HEADERS += statemachine/TimeEvent.h \
-    statemachine/TrafficLightTimer.h \
-    statemachine/TrafficLightRunner.h \
-    statemachine/stdbool.h \
-    src-gen/TrafficLightWaitingRequired.h \
-    src-gen/TrafficLightWaiting.h \
-    src-gen/sc_types.h \
-    widgets/CrossingWidget.h \
-    widgets/PedestrianLightWidget.h \
-    widgets/TrafficLightWidget.h \
-    org_yakindu_sct_examples_c_trafficlight.h
-SOURCES += statemachine/TimeEvent.cpp \
-    statemachine/TrafficLightTimer.cpp \
-    statemachine/TrafficLightRunner.cpp \
-    src-gen/TrafficLightWaiting.c \
-    widgets/CrossingWidget.cpp \
-    widgets/PedestrianLightWidget.cpp \
-    widgets/TrafficLightWidget.cpp \
-    main.cpp \
-    org_yakindu_sct_examples_c_trafficlight.cpp
-FORMS += org_yakindu_sct_examples_c_trafficlight.ui
-RESOURCES += 
+TEMPLATE = app
+TARGET = org_yakindu_sct_examples_c_trafficlight
+QT += core \
+    gui
+HEADERS += statemachine/TimeEvent.h \
+    statemachine/TrafficLightTimer.h \
+    statemachine/TrafficLightRunner.h \
+    statemachine/stdbool.h \
+    src-gen/TrafficLightWaitingRequired.h \
+    src-gen/TrafficLightWaiting.h \
+    src-gen/sc_types.h \
+    widgets/CrossingWidget.h \
+    widgets/PedestrianLightWidget.h \
+    widgets/TrafficLightWidget.h \
+    org_yakindu_sct_examples_c_trafficlight.h
+SOURCES += statemachine/TimeEvent.cpp \
+    statemachine/TrafficLightTimer.cpp \
+    statemachine/TrafficLightRunner.cpp \
+    src-gen/TrafficLightWaiting.c \
+    widgets/CrossingWidget.cpp \
+    widgets/PedestrianLightWidget.cpp \
+    widgets/TrafficLightWidget.cpp \
+    main.cpp \
+    org_yakindu_sct_examples_c_trafficlight.cpp
+FORMS += org_yakindu_sct_examples_c_trafficlight.ui
+RESOURCES += 

+ 31 - 31
examples/org.yakindu.sct.examples.c.trafficlight/org_yakindu_sct_examples_c_trafficlight.ui

@@ -1,31 +1,31 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>org_yakindu_sct_examples_c_trafficlightClass</class>
- <widget class="QMainWindow" name="org_yakindu_sct_examples_c_trafficlightClass">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>300</width>
-    <height>300</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>MainWindow</string>
-  </property>
-  <widget class="QWidget" name="centralwidget"/>
-  <widget class="QMenuBar" name="menubar">
-   <property name="geometry">
-    <rect>
-     <x>0</x>
-     <y>0</y>
-     <width>300</width>
-     <height>25</height>
-    </rect>
-   </property>
-  </widget>
-  <widget class="QStatusBar" name="statusbar"/>
- </widget>
- <resources/>
- <connections/>
-</ui>
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>org_yakindu_sct_examples_c_trafficlightClass</class>
+ <widget class="QMainWindow" name="org_yakindu_sct_examples_c_trafficlightClass">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>300</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <widget class="QWidget" name="centralwidget"/>
+  <widget class="QMenuBar" name="menubar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>300</width>
+     <height>25</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QStatusBar" name="statusbar"/>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

File diff suppressed because it is too large
+ 2098 - 2098
examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaiting.c


+ 137 - 137
examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaiting.h

@@ -1,137 +1,137 @@
-#ifndef TRAFFICLIGHTWAITING_H_
-#define TRAFFICLIGHTWAITING_H_
-
-#include "sc_types.h"
-
-#ifdef __cplusplus
-extern "C" { 
-#endif 
-
-/*! \file Header of the state machine 'TrafficLightWaiting'.
-*/
-
-//! enumeration of all states 
-typedef enum {
-	TrafficLightWaiting_main_region_on ,
-	TrafficLightWaiting_main_region_on_r1_StreetGreen ,
-	TrafficLightWaiting_main_region_on_r1_PedWaiting ,
-	TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOn ,
-	TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOff ,
-	TrafficLightWaiting_main_region_on_r1_StreetAttention ,
-	TrafficLightWaiting_main_region_on_r1_StreetRed ,
-	TrafficLightWaiting_main_region_on_r1_PedestrianGreen ,
-	TrafficLightWaiting_main_region_on_r1_PedestrianRed ,
-	TrafficLightWaiting_main_region_on_r1_StreetPrepared ,
-	TrafficLightWaiting_main_region_off ,
-	TrafficLightWaiting_main_region_off_r1_YellowOn ,
-	TrafficLightWaiting_main_region_off_r1_YellowOff ,
-	TrafficLightWaiting_last_state
-} TrafficLightWaitingStates;
-
-//! Type definition of the data structure for the TrafficLightWaitingIfaceTrafficLight interface scope.
-typedef struct {
-	sc_boolean  red;
-	sc_boolean  yellow;
-	sc_boolean  green;
-} TrafficLightWaitingIfaceTrafficLight;
-
-//! Type definition of the data structure for the TrafficLightWaitingIfacePedestrian interface scope.
-typedef struct {
-	sc_boolean  request;
-	sc_boolean  red;
-	sc_boolean  green;
-} TrafficLightWaitingIfacePedestrian;
-
-//! Type definition of the data structure for the TrafficLightWaitingIface interface scope.
-typedef struct {
-	sc_boolean pedestrianRequest_raised;
-	sc_boolean onOff_raised;
-} TrafficLightWaitingIface;
-
-//! Type definition of the data structure for the TrafficLightWaitingTimeEvents interface scope.
-typedef struct {
-	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOn_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOff_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetAttention_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetRed_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_PedestrianGreen_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_PedestrianRed_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetPrepared_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_off_r1_YellowOn_time_event_0_raised;
-	sc_boolean TrafficLightWaiting_main_region_off_r1_YellowOff_time_event_0_raised;
-} TrafficLightWaitingTimeEvents;
-
-
-//! the maximum number of orthogonal states defines the dimension of the state configuration vector.
-#define TRAFFICLIGHTWAITING_MAX_ORTHOGONAL_STATES 1
-
-/*! Type definition of the data structure for the TrafficLightWaiting state machine.
-This data structure has to be allocated by the client code. */
-typedef struct {
-	TrafficLightWaitingStates stateConfVector[TRAFFICLIGHTWAITING_MAX_ORTHOGONAL_STATES];
-	sc_ushort stateConfVectorPosition; 
-	
-	TrafficLightWaitingIfaceTrafficLight ifaceTrafficLight;
-	TrafficLightWaitingIfacePedestrian ifacePedestrian;
-	TrafficLightWaitingIface iface;
-	TrafficLightWaitingTimeEvents timeEvents;
-} TrafficLightWaiting;
-
-/*! Initializes the TrafficLightWaiting state machine data structures. Must be called before first usage.*/
-extern void trafficLightWaiting_init(TrafficLightWaiting* handle);
-
-/*! Activates the state machine */
-extern void trafficLightWaiting_enter(TrafficLightWaiting* handle);
-
-/*! Deactivates the state machine */
-extern void trafficLightWaiting_exit(TrafficLightWaiting* handle);
-
-/*! Performs a 'run to completion' step. */
-extern void trafficLightWaiting_runCycle(TrafficLightWaiting* handle);
-
-/*! Raises a time event. */
-extern void trafficLightWaiting_raiseTimeEvent(TrafficLightWaiting* handle, sc_eventid evid);
-
-/*! Gets the value of the variable 'red' that is defined in the interface scope 'TrafficLight'. */ 
-extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_red(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'red' that is defined in the interface scope 'TrafficLight'. */ 
-extern void trafficLightWaitingIfaceTrafficLight_set_red(TrafficLightWaiting* handle, sc_boolean value);
-/*! Gets the value of the variable 'yellow' that is defined in the interface scope 'TrafficLight'. */ 
-extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_yellow(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'yellow' that is defined in the interface scope 'TrafficLight'. */ 
-extern void trafficLightWaitingIfaceTrafficLight_set_yellow(TrafficLightWaiting* handle, sc_boolean value);
-/*! Gets the value of the variable 'green' that is defined in the interface scope 'TrafficLight'. */ 
-extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_green(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'green' that is defined in the interface scope 'TrafficLight'. */ 
-extern void trafficLightWaitingIfaceTrafficLight_set_green(TrafficLightWaiting* handle, sc_boolean value);
-
-/*! Gets the value of the variable 'request' that is defined in the interface scope 'Pedestrian'. */ 
-extern sc_boolean trafficLightWaitingIfacePedestrian_get_request(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'request' that is defined in the interface scope 'Pedestrian'. */ 
-extern void trafficLightWaitingIfacePedestrian_set_request(TrafficLightWaiting* handle, sc_boolean value);
-/*! Gets the value of the variable 'red' that is defined in the interface scope 'Pedestrian'. */ 
-extern sc_boolean trafficLightWaitingIfacePedestrian_get_red(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'red' that is defined in the interface scope 'Pedestrian'. */ 
-extern void trafficLightWaitingIfacePedestrian_set_red(TrafficLightWaiting* handle, sc_boolean value);
-/*! Gets the value of the variable 'green' that is defined in the interface scope 'Pedestrian'. */ 
-extern sc_boolean trafficLightWaitingIfacePedestrian_get_green(TrafficLightWaiting* handle);
-/*! Sets the value of the variable 'green' that is defined in the interface scope 'Pedestrian'. */ 
-extern void trafficLightWaitingIfacePedestrian_set_green(TrafficLightWaiting* handle, sc_boolean value);
-
-/*! Raises the in event 'pedestrianRequest' that is defined in the default interface scope. */ 
-extern void trafficLightWaitingIface_raise_pedestrianRequest(TrafficLightWaiting* handle);
-
-/*! Raises the in event 'onOff' that is defined in the default interface scope. */ 
-extern void trafficLightWaitingIface_raise_onOff(TrafficLightWaiting* handle);
-
-
-
-/*! Checks if the specified state is active. */
-extern sc_boolean trafficLightWaiting_isActive(TrafficLightWaiting* handle, TrafficLightWaitingStates state);
-
-#ifdef __cplusplus
-}
-#endif 
-
-#endif /* TRAFFICLIGHTWAITING_H_ */
+#ifndef TRAFFICLIGHTWAITING_H_
+#define TRAFFICLIGHTWAITING_H_
+
+#include "sc_types.h"
+
+#ifdef __cplusplus
+extern "C" { 
+#endif 
+
+/*! \file Header of the state machine 'TrafficLightWaiting'.
+*/
+
+//! enumeration of all states 
+typedef enum {
+	TrafficLightWaiting_main_region_on ,
+	TrafficLightWaiting_main_region_on_r1_StreetGreen ,
+	TrafficLightWaiting_main_region_on_r1_PedWaiting ,
+	TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOn ,
+	TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOff ,
+	TrafficLightWaiting_main_region_on_r1_StreetAttention ,
+	TrafficLightWaiting_main_region_on_r1_StreetRed ,
+	TrafficLightWaiting_main_region_on_r1_PedestrianGreen ,
+	TrafficLightWaiting_main_region_on_r1_PedestrianRed ,
+	TrafficLightWaiting_main_region_on_r1_StreetPrepared ,
+	TrafficLightWaiting_main_region_off ,
+	TrafficLightWaiting_main_region_off_r1_YellowOn ,
+	TrafficLightWaiting_main_region_off_r1_YellowOff ,
+	TrafficLightWaiting_last_state
+} TrafficLightWaitingStates;
+
+//! Type definition of the data structure for the TrafficLightWaitingIfaceTrafficLight interface scope.
+typedef struct {
+	sc_boolean  red;
+	sc_boolean  yellow;
+	sc_boolean  green;
+} TrafficLightWaitingIfaceTrafficLight;
+
+//! Type definition of the data structure for the TrafficLightWaitingIfacePedestrian interface scope.
+typedef struct {
+	sc_boolean  request;
+	sc_boolean  red;
+	sc_boolean  green;
+} TrafficLightWaitingIfacePedestrian;
+
+//! Type definition of the data structure for the TrafficLightWaitingIface interface scope.
+typedef struct {
+	sc_boolean pedestrianRequest_raised;
+	sc_boolean onOff_raised;
+} TrafficLightWaitingIface;
+
+//! Type definition of the data structure for the TrafficLightWaitingTimeEvents interface scope.
+typedef struct {
+	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOn_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_PedWaiting_r1_waitOff_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetAttention_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetRed_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_PedestrianGreen_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_PedestrianRed_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_on_r1_StreetPrepared_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_off_r1_YellowOn_time_event_0_raised;
+	sc_boolean TrafficLightWaiting_main_region_off_r1_YellowOff_time_event_0_raised;
+} TrafficLightWaitingTimeEvents;
+
+
+//! the maximum number of orthogonal states defines the dimension of the state configuration vector.
+#define TRAFFICLIGHTWAITING_MAX_ORTHOGONAL_STATES 1
+
+/*! Type definition of the data structure for the TrafficLightWaiting state machine.
+This data structure has to be allocated by the client code. */
+typedef struct {
+	TrafficLightWaitingStates stateConfVector[TRAFFICLIGHTWAITING_MAX_ORTHOGONAL_STATES];
+	sc_ushort stateConfVectorPosition; 
+	
+	TrafficLightWaitingIfaceTrafficLight ifaceTrafficLight;
+	TrafficLightWaitingIfacePedestrian ifacePedestrian;
+	TrafficLightWaitingIface iface;
+	TrafficLightWaitingTimeEvents timeEvents;
+} TrafficLightWaiting;
+
+/*! Initializes the TrafficLightWaiting state machine data structures. Must be called before first usage.*/
+extern void trafficLightWaiting_init(TrafficLightWaiting* handle);
+
+/*! Activates the state machine */
+extern void trafficLightWaiting_enter(TrafficLightWaiting* handle);
+
+/*! Deactivates the state machine */
+extern void trafficLightWaiting_exit(TrafficLightWaiting* handle);
+
+/*! Performs a 'run to completion' step. */
+extern void trafficLightWaiting_runCycle(TrafficLightWaiting* handle);
+
+/*! Raises a time event. */
+extern void trafficLightWaiting_raiseTimeEvent(TrafficLightWaiting* handle, sc_eventid evid);
+
+/*! Gets the value of the variable 'red' that is defined in the interface scope 'TrafficLight'. */ 
+extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_red(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'red' that is defined in the interface scope 'TrafficLight'. */ 
+extern void trafficLightWaitingIfaceTrafficLight_set_red(TrafficLightWaiting* handle, sc_boolean value);
+/*! Gets the value of the variable 'yellow' that is defined in the interface scope 'TrafficLight'. */ 
+extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_yellow(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'yellow' that is defined in the interface scope 'TrafficLight'. */ 
+extern void trafficLightWaitingIfaceTrafficLight_set_yellow(TrafficLightWaiting* handle, sc_boolean value);
+/*! Gets the value of the variable 'green' that is defined in the interface scope 'TrafficLight'. */ 
+extern sc_boolean trafficLightWaitingIfaceTrafficLight_get_green(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'green' that is defined in the interface scope 'TrafficLight'. */ 
+extern void trafficLightWaitingIfaceTrafficLight_set_green(TrafficLightWaiting* handle, sc_boolean value);
+
+/*! Gets the value of the variable 'request' that is defined in the interface scope 'Pedestrian'. */ 
+extern sc_boolean trafficLightWaitingIfacePedestrian_get_request(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'request' that is defined in the interface scope 'Pedestrian'. */ 
+extern void trafficLightWaitingIfacePedestrian_set_request(TrafficLightWaiting* handle, sc_boolean value);
+/*! Gets the value of the variable 'red' that is defined in the interface scope 'Pedestrian'. */ 
+extern sc_boolean trafficLightWaitingIfacePedestrian_get_red(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'red' that is defined in the interface scope 'Pedestrian'. */ 
+extern void trafficLightWaitingIfacePedestrian_set_red(TrafficLightWaiting* handle, sc_boolean value);
+/*! Gets the value of the variable 'green' that is defined in the interface scope 'Pedestrian'. */ 
+extern sc_boolean trafficLightWaitingIfacePedestrian_get_green(TrafficLightWaiting* handle);
+/*! Sets the value of the variable 'green' that is defined in the interface scope 'Pedestrian'. */ 
+extern void trafficLightWaitingIfacePedestrian_set_green(TrafficLightWaiting* handle, sc_boolean value);
+
+/*! Raises the in event 'pedestrianRequest' that is defined in the default interface scope. */ 
+extern void trafficLightWaitingIface_raise_pedestrianRequest(TrafficLightWaiting* handle);
+
+/*! Raises the in event 'onOff' that is defined in the default interface scope. */ 
+extern void trafficLightWaitingIface_raise_onOff(TrafficLightWaiting* handle);
+
+
+
+/*! Checks if the specified state is active. */
+extern sc_boolean trafficLightWaiting_isActive(TrafficLightWaiting* handle, TrafficLightWaitingStates state);
+
+#ifdef __cplusplus
+}
+#endif 
+
+#endif /* TRAFFICLIGHTWAITING_H_ */

+ 56 - 56
examples/org.yakindu.sct.examples.c.trafficlight/src-gen/TrafficLightWaitingRequired.h

@@ -1,56 +1,56 @@
-#ifndef TRAFFICLIGHTWAITINGREQUIRED_H_
-#define TRAFFICLIGHTWAITINGREQUIRED_H_
-
-#include "sc_types.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif 
-
-
-
-/*! \file This header defines prototypes for all functions that are required by the state machine implementation.
-
-This is a state machine uses time events which require access to a timing service. Thus the function prototypes:
-	- trafficLightWaiting_setTimer and
-	- trafficLightWaiting_unsetTimer
-are defined.
-
-		
-These functions will be called during a 'run to completion step' (runCycle) of the statechart. 
-There are some constraints that have to be considered for the implementation of these functions:
-	- never call the statechart API functions from within these functions.
-	- make sure that the execution time is as short as possible.
- 
-*/
-
-
-
-
-
-
-//
-// This is a timed state machine that requires timer services
-// 
-
-//! This function has to set up timers for the time events that are required by the state machine.
-/*! 
-	This function will be called for each time event that is relevant for a state when a state will be entered.
-	\param evid An unique identifier of the event.
-	\time_ms The time in milli seconds
-	\periodic Indicates the the time event must be raised periodically until the timer is unset 
-*/
-extern void trafficLightWaiting_setTimer(const sc_eventid evid, const sc_integer time_ms, const sc_boolean periodic);
-
-//! This function has to unset timers for the time events that are required by the state machine.
-/*! 
-	This function will be called for each time event taht is relevant for a state when a state will be left.
-	\param evid An unique identifier of the event.
-*/
-extern void trafficLightWaiting_unsetTimer(const sc_eventid evid);
-
-#ifdef __cplusplus
-}
-#endif 
-
-#endif /* TRAFFICLIGHTWAITINGREQUIRED_H_ */
+#ifndef TRAFFICLIGHTWAITINGREQUIRED_H_
+#define TRAFFICLIGHTWAITINGREQUIRED_H_
+
+#include "sc_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
+
+
+/*! \file This header defines prototypes for all functions that are required by the state machine implementation.
+
+This is a state machine uses time events which require access to a timing service. Thus the function prototypes:
+	- trafficLightWaiting_setTimer and
+	- trafficLightWaiting_unsetTimer
+are defined.
+
+		
+These functions will be called during a 'run to completion step' (runCycle) of the statechart. 
+There are some constraints that have to be considered for the implementation of these functions:
+	- never call the statechart API functions from within these functions.
+	- make sure that the execution time is as short as possible.
+ 
+*/
+
+
+
+
+
+
+//
+// This is a timed state machine that requires timer services
+// 
+
+//! This function has to set up timers for the time events that are required by the state machine.
+/*! 
+	This function will be called for each time event that is relevant for a state when a state will be entered.
+	\param evid An unique identifier of the event.
+	\time_ms The time in milli seconds
+	\periodic Indicates the the time event must be raised periodically until the timer is unset 
+*/
+extern void trafficLightWaiting_setTimer(const sc_eventid evid, const sc_integer time_ms, const sc_boolean periodic);
+
+//! This function has to unset timers for the time events that are required by the state machine.
+/*! 
+	This function will be called for each time event taht is relevant for a state when a state will be left.
+	\param evid An unique identifier of the event.
+*/
+extern void trafficLightWaiting_unsetTimer(const sc_eventid evid);
+
+#ifdef __cplusplus
+}
+#endif 
+
+#endif /* TRAFFICLIGHTWAITINGREQUIRED_H_ */

+ 27 - 27
examples/org.yakindu.sct.examples.c.trafficlight/src-gen/sc_types.h

@@ -1,27 +1,27 @@
-#ifndef SC_TYPES_H_
-#define SC_TYPES_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif 
-
-#include <stdint.h>
-#include <stdbool.h>
- 				
-typedef int_fast16_t  sc_short;
-typedef uint_fast16_t sc_ushort;
-typedef int32_t       sc_integer; 
-typedef uint32_t      sc_uinteger; 
-typedef double        sc_real;
-typedef char*         sc_string;
-
-typedef void*         sc_eventid;
-
-#ifdef __cplusplus
-}
-#endif 
-#define sc_boolean bool
-#define bool_true true
-#define bool_false false
-
-#endif /* SC_TYPES_H_ */
+#ifndef SC_TYPES_H_
+#define SC_TYPES_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif 
+
+#include <stdint.h>
+#include <stdbool.h>
+ 				
+typedef int_fast16_t  sc_short;
+typedef uint_fast16_t sc_ushort;
+typedef int32_t       sc_integer; 
+typedef uint32_t      sc_uinteger; 
+typedef double        sc_real;
+typedef char*         sc_string;
+
+typedef void*         sc_eventid;
+
+#ifdef __cplusplus
+}
+#endif 
+#define sc_boolean bool
+#define bool_true true
+#define bool_false false
+
+#endif /* SC_TYPES_H_ */

+ 31 - 31
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TimeEvent.cpp

@@ -1,31 +1,31 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "TimeEvent.h"
-
-TimeEvent::TimeEvent(sc_eventid evid, sc_integer time_ms, sc_boolean periodic) :
-		QObject() {
-	timer = new QTimer();
-	timer->setSingleShot(!periodic);
-	this->evid = evid;
-	connect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
-	timer->start(time_ms);
-}
-
-void TimeEvent::timeout() {
-	emit timeout(evid);
-}
-
-TimeEvent::~TimeEvent() {
-	disconnect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
-	timer->stop();
-	delete timer;
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "TimeEvent.h"
+
+TimeEvent::TimeEvent(sc_eventid evid, sc_integer time_ms, sc_boolean periodic) :
+		QObject() {
+	timer = new QTimer();
+	timer->setSingleShot(!periodic);
+	this->evid = evid;
+	connect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
+	timer->start(time_ms);
+}
+
+void TimeEvent::timeout() {
+	emit timeout(evid);
+}
+
+TimeEvent::~TimeEvent() {
+	disconnect(timer, SIGNAL(timeout()), this, SLOT(timeout()));
+	timer->stop();
+	delete timer;
+}

+ 38 - 38
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TimeEvent.h

@@ -1,38 +1,38 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef TIMEEVENT_H_
-#define TIMEEVENT_H_
-
-#include <QObject>
-#include <QTimer>
-#include "src-gen/sc_types.h"
-
-class TimeEvent: public QObject {
-
-Q_OBJECT
-
-public:
-	TimeEvent(sc_eventid evid, sc_integer time_ms, sc_boolean periodic);
-	virtual ~TimeEvent();
-
-public slots:
-	void timeout();
-
-signals:
-	void timeout(const sc_eventid evid);
-
-private:
-	sc_eventid evid;
-	QTimer *timer;
-};
-
-#endif /* TIMEEVENT_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef TIMEEVENT_H_
+#define TIMEEVENT_H_
+
+#include <QObject>
+#include <QTimer>
+#include "src-gen/sc_types.h"
+
+class TimeEvent: public QObject {
+
+Q_OBJECT
+
+public:
+	TimeEvent(sc_eventid evid, sc_integer time_ms, sc_boolean periodic);
+	virtual ~TimeEvent();
+
+public slots:
+	void timeout();
+
+signals:
+	void timeout(const sc_eventid evid);
+
+private:
+	sc_eventid evid;
+	QTimer *timer;
+};
+
+#endif /* TIMEEVENT_H_ */

+ 38 - 38
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightRunner.cpp

@@ -1,38 +1,38 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "TrafficLightRunner.h"
-
-TrafficLightRunner::TrafficLightRunner(TrafficLightWaiting *handle, int time_ms) :
-		QObject() {
-	this->handle = handle;
-	timer = new QTimer(this);
-	connect(timer, SIGNAL(timeout()), this, SLOT(runCycle()));
-	timer->start(time_ms);
-}
-
-void TrafficLightRunner::runCycle() {
-	trafficLightWaiting_runCycle(handle);
-	emit cycleDone(handle);
-}
-
-void TrafficLightRunner::raisePedestrianRequest() {
-	trafficLightWaitingIface_raise_pedestrianRequest(handle);
-}
-
-void TrafficLightRunner::raiseOnOff() {
-	trafficLightWaitingIface_raise_onOff(handle);
-}
-
-TrafficLightRunner::~TrafficLightRunner() {
-	timer->stop();
-	delete timer;
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "TrafficLightRunner.h"
+
+TrafficLightRunner::TrafficLightRunner(TrafficLightWaiting *handle, int time_ms) :
+		QObject() {
+	this->handle = handle;
+	timer = new QTimer(this);
+	connect(timer, SIGNAL(timeout()), this, SLOT(runCycle()));
+	timer->start(time_ms);
+}
+
+void TrafficLightRunner::runCycle() {
+	trafficLightWaiting_runCycle(handle);
+	emit cycleDone(handle);
+}
+
+void TrafficLightRunner::raisePedestrianRequest() {
+	trafficLightWaitingIface_raise_pedestrianRequest(handle);
+}
+
+void TrafficLightRunner::raiseOnOff() {
+	trafficLightWaitingIface_raise_onOff(handle);
+}
+
+TrafficLightRunner::~TrafficLightRunner() {
+	timer->stop();
+	delete timer;
+}

+ 39 - 39
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightRunner.h

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef TRAFFICLIGHTRUNNER_H_
-#define TRAFFICLIGHTRUNNER_H_
-#include <QObject>
-#include <QTimer>
-#include <src-gen/TrafficLightWaiting.h>
-
-class TrafficLightRunner: public QObject {
-
-Q_OBJECT
-
-public:
-	TrafficLightRunner(TrafficLightWaiting *handle, int time_ms);
-	virtual ~TrafficLightRunner();
-
-public slots:
-	void runCycle();
-	void raisePedestrianRequest();
-	void raiseOnOff();
-
-signals:
-	void cycleDone(TrafficLightWaiting *handle);
-
-private:
-	QTimer *timer;
-	TrafficLightWaiting *handle;
-};
-
-#endif /* TRAFFICLIGHTRUNNER_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef TRAFFICLIGHTRUNNER_H_
+#define TRAFFICLIGHTRUNNER_H_
+#include <QObject>
+#include <QTimer>
+#include <src-gen/TrafficLightWaiting.h>
+
+class TrafficLightRunner: public QObject {
+
+Q_OBJECT
+
+public:
+	TrafficLightRunner(TrafficLightWaiting *handle, int time_ms);
+	virtual ~TrafficLightRunner();
+
+public slots:
+	void runCycle();
+	void raisePedestrianRequest();
+	void raiseOnOff();
+
+signals:
+	void cycleDone(TrafficLightWaiting *handle);
+
+private:
+	QTimer *timer;
+	TrafficLightWaiting *handle;
+};
+
+#endif /* TRAFFICLIGHTRUNNER_H_ */

+ 43 - 43
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightTimer.cpp

@@ -1,43 +1,43 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "TrafficLightTimer.h"
-
-TrafficLightTimer::TrafficLightTimer(TrafficLightWaiting *sc_handle) :
-		QObject() {
-	this->sc_handle = sc_handle;
-}
-
-void TrafficLightTimer::setTimer(const sc_eventid evid,
-		const sc_integer time_ms, const sc_boolean periodic) {
-
-	TimeEvent *timeEvent = new TimeEvent(evid, time_ms, periodic);
-	timerMap.insert(evid, timeEvent);
-	connect(timeEvent, SIGNAL(timeout(sc_eventid)), this,
-			SLOT(raiseTimeEvent(sc_eventid)));
-}
-
-void TrafficLightTimer::unsetTimer(const sc_eventid evid) {
-	if (timerMap.contains(evid)) {
-		TimeEvent *timeEvent = timerMap.value(evid);
-		disconnect(timeEvent, SIGNAL(timeout(sc_eventid)), this,
-					SLOT(raiseTimeEvent(sc_eventid)));
-		delete timeEvent;
-		timerMap.remove(evid);
-	}
-}
-
-void TrafficLightTimer::raiseTimeEvent(sc_eventid evid) {
-	trafficLightWaiting_raiseTimeEvent(sc_handle, evid);
-}
-
-TrafficLightTimer::~TrafficLightTimer() {
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "TrafficLightTimer.h"
+
+TrafficLightTimer::TrafficLightTimer(TrafficLightWaiting *sc_handle) :
+		QObject() {
+	this->sc_handle = sc_handle;
+}
+
+void TrafficLightTimer::setTimer(const sc_eventid evid,
+		const sc_integer time_ms, const sc_boolean periodic) {
+
+	TimeEvent *timeEvent = new TimeEvent(evid, time_ms, periodic);
+	timerMap.insert(evid, timeEvent);
+	connect(timeEvent, SIGNAL(timeout(sc_eventid)), this,
+			SLOT(raiseTimeEvent(sc_eventid)));
+}
+
+void TrafficLightTimer::unsetTimer(const sc_eventid evid) {
+	if (timerMap.contains(evid)) {
+		TimeEvent *timeEvent = timerMap.value(evid);
+		disconnect(timeEvent, SIGNAL(timeout(sc_eventid)), this,
+					SLOT(raiseTimeEvent(sc_eventid)));
+		delete timeEvent;
+		timerMap.remove(evid);
+	}
+}
+
+void TrafficLightTimer::raiseTimeEvent(sc_eventid evid) {
+	trafficLightWaiting_raiseTimeEvent(sc_handle, evid);
+}
+
+TrafficLightTimer::~TrafficLightTimer() {
+}

+ 44 - 44
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/TrafficLightTimer.h

@@ -1,44 +1,44 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef TRAFFICLIGHTTIMER_H_
-#define TRAFFICLIGHTTIMER_H_
-
-#include <QObject>
-#include <QMap>
-#include "TimeEvent.h"
-#include "src-gen/sc_types.h"
-#include "src-gen/TrafficLightWaitingRequired.h"
-#include "src-gen/TrafficLightWaiting.h"
-
-class TrafficLightTimer: public QObject {
-
-Q_OBJECT
-
-public:
-	TrafficLightTimer(TrafficLightWaiting *sc_handle);
-	virtual ~TrafficLightTimer();
-
-	void setTimer(const sc_eventid evid, const sc_integer time_ms,
-			const sc_boolean periodic);
-
-	void unsetTimer(const sc_eventid evid);
-
-public slots:
-	void raiseTimeEvent(sc_eventid evid);
-
-private:
-	QMap<sc_eventid, TimeEvent*> timerMap;
-	TrafficLightWaiting *sc_handle;
-
-};
-
-#endif /* TRAFFICLIGHTTIMER_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef TRAFFICLIGHTTIMER_H_
+#define TRAFFICLIGHTTIMER_H_
+
+#include <QObject>
+#include <QMap>
+#include "TimeEvent.h"
+#include "src-gen/sc_types.h"
+#include "src-gen/TrafficLightWaitingRequired.h"
+#include "src-gen/TrafficLightWaiting.h"
+
+class TrafficLightTimer: public QObject {
+
+Q_OBJECT
+
+public:
+	TrafficLightTimer(TrafficLightWaiting *sc_handle);
+	virtual ~TrafficLightTimer();
+
+	void setTimer(const sc_eventid evid, const sc_integer time_ms,
+			const sc_boolean periodic);
+
+	void unsetTimer(const sc_eventid evid);
+
+public slots:
+	void raiseTimeEvent(sc_eventid evid);
+
+private:
+	QMap<sc_eventid, TimeEvent*> timerMap;
+	TrafficLightWaiting *sc_handle;
+
+};
+
+#endif /* TRAFFICLIGHTTIMER_H_ */

+ 32 - 32
examples/org.yakindu.sct.examples.c.trafficlight/statemachine/stdbool.h

@@ -1,32 +1,32 @@
-/*
- * stdbool.h
- *
- *  Created on: 17.10.2012
- *      Author: muehlbrandt
- */
-#ifndef _STDBOOL_H
-#define _STDBOOL_H
-
-/* C99 Boolean types for compilers without C99 support */
-/* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */
-#if !defined(__cplusplus)
-
-#if !defined(__GNUC__)
-/* _Bool builtin type is included in GCC */
-/* ISO C Standard: 5.2.5 An object declared as
-type _Bool is large enough to store
-the values 0 and 1. */
-/* We choose 8 bit to match C++ */
-/* It must also promote to integer */
-typedef int8_t _Bool;
-#endif
-
-/* ISO C Standard: 7.16 Boolean type */
-#define bool _Bool
-#define true 1
-#define false 0
-#define __bool_true_false_are_defined 1
-
-#endif
-
-#endif
+/*
+ * stdbool.h
+ *
+ *  Created on: 17.10.2012
+ *      Author: muehlbrandt
+ */
+#ifndef _STDBOOL_H
+#define _STDBOOL_H
+
+/* C99 Boolean types for compilers without C99 support */
+/* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */
+#if !defined(__cplusplus)
+
+#if !defined(__GNUC__)
+/* _Bool builtin type is included in GCC */
+/* ISO C Standard: 5.2.5 An object declared as
+type _Bool is large enough to store
+the values 0 and 1. */
+/* We choose 8 bit to match C++ */
+/* It must also promote to integer */
+typedef int8_t _Bool;
+#endif
+
+/* ISO C Standard: 7.16 Boolean type */
+#define bool _Bool
+#define true 1
+#define false 0
+#define __bool_true_false_are_defined 1
+
+#endif
+
+#endif

+ 66 - 66
examples/org.yakindu.sct.examples.c.trafficlight/ui_org_yakindu_sct_examples_c_trafficlight.h

@@ -1,66 +1,66 @@
-/********************************************************************************
-** Form generated from reading UI file 'org_yakindu_sct_examples_c_trafficlight.ui'
-**
-** Created: Fri Oct 19 14:59:19 2012
-**      by: Qt User Interface Compiler version 4.8.1
-**
-** WARNING! All changes made in this file will be lost when recompiling UI file!
-********************************************************************************/
-
-#ifndef UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
-#define UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
-
-#include <QtCore/QVariant>
-#include <QtGui/QAction>
-#include <QtGui/QApplication>
-#include <QtGui/QButtonGroup>
-#include <QtGui/QHeaderView>
-#include <QtGui/QMainWindow>
-#include <QtGui/QMenuBar>
-#include <QtGui/QStatusBar>
-#include <QtGui/QWidget>
-
-QT_BEGIN_NAMESPACE
-
-class Ui_org_yakindu_sct_examples_c_trafficlightClass
-{
-public:
-    QWidget *centralwidget;
-    QMenuBar *menubar;
-    QStatusBar *statusbar;
-
-    void setupUi(QMainWindow *org_yakindu_sct_examples_c_trafficlightClass)
-    {
-        if (org_yakindu_sct_examples_c_trafficlightClass->objectName().isEmpty())
-            org_yakindu_sct_examples_c_trafficlightClass->setObjectName(QString::fromUtf8("org_yakindu_sct_examples_c_trafficlightClass"));
-        org_yakindu_sct_examples_c_trafficlightClass->resize(300, 300);
-        centralwidget = new QWidget(org_yakindu_sct_examples_c_trafficlightClass);
-        centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
-        org_yakindu_sct_examples_c_trafficlightClass->setCentralWidget(centralwidget);
-        menubar = new QMenuBar(org_yakindu_sct_examples_c_trafficlightClass);
-        menubar->setObjectName(QString::fromUtf8("menubar"));
-        menubar->setGeometry(QRect(0, 0, 300, 25));
-        org_yakindu_sct_examples_c_trafficlightClass->setMenuBar(menubar);
-        statusbar = new QStatusBar(org_yakindu_sct_examples_c_trafficlightClass);
-        statusbar->setObjectName(QString::fromUtf8("statusbar"));
-        org_yakindu_sct_examples_c_trafficlightClass->setStatusBar(statusbar);
-
-        retranslateUi(org_yakindu_sct_examples_c_trafficlightClass);
-
-        QMetaObject::connectSlotsByName(org_yakindu_sct_examples_c_trafficlightClass);
-    } // setupUi
-
-    void retranslateUi(QMainWindow *org_yakindu_sct_examples_c_trafficlightClass)
-    {
-        org_yakindu_sct_examples_c_trafficlightClass->setWindowTitle(QApplication::translate("org_yakindu_sct_examples_c_trafficlightClass", "MainWindow", 0, QApplication::UnicodeUTF8));
-    } // retranslateUi
-
-};
-
-namespace Ui {
-    class org_yakindu_sct_examples_c_trafficlightClass: public Ui_org_yakindu_sct_examples_c_trafficlightClass {};
-} // namespace Ui
-
-QT_END_NAMESPACE
-
-#endif // UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+/********************************************************************************
+** Form generated from reading UI file 'org_yakindu_sct_examples_c_trafficlight.ui'
+**
+** Created: Fri Oct 19 14:59:19 2012
+**      by: Qt User Interface Compiler version 4.8.1
+**
+** WARNING! All changes made in this file will be lost when recompiling UI file!
+********************************************************************************/
+
+#ifndef UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+#define UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H
+
+#include <QtCore/QVariant>
+#include <QtGui/QAction>
+#include <QtGui/QApplication>
+#include <QtGui/QButtonGroup>
+#include <QtGui/QHeaderView>
+#include <QtGui/QMainWindow>
+#include <QtGui/QMenuBar>
+#include <QtGui/QStatusBar>
+#include <QtGui/QWidget>
+
+QT_BEGIN_NAMESPACE
+
+class Ui_org_yakindu_sct_examples_c_trafficlightClass
+{
+public:
+    QWidget *centralwidget;
+    QMenuBar *menubar;
+    QStatusBar *statusbar;
+
+    void setupUi(QMainWindow *org_yakindu_sct_examples_c_trafficlightClass)
+    {
+        if (org_yakindu_sct_examples_c_trafficlightClass->objectName().isEmpty())
+            org_yakindu_sct_examples_c_trafficlightClass->setObjectName(QString::fromUtf8("org_yakindu_sct_examples_c_trafficlightClass"));
+        org_yakindu_sct_examples_c_trafficlightClass->resize(300, 300);
+        centralwidget = new QWidget(org_yakindu_sct_examples_c_trafficlightClass);
+        centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
+        org_yakindu_sct_examples_c_trafficlightClass->setCentralWidget(centralwidget);
+        menubar = new QMenuBar(org_yakindu_sct_examples_c_trafficlightClass);
+        menubar->setObjectName(QString::fromUtf8("menubar"));
+        menubar->setGeometry(QRect(0, 0, 300, 25));
+        org_yakindu_sct_examples_c_trafficlightClass->setMenuBar(menubar);
+        statusbar = new QStatusBar(org_yakindu_sct_examples_c_trafficlightClass);
+        statusbar->setObjectName(QString::fromUtf8("statusbar"));
+        org_yakindu_sct_examples_c_trafficlightClass->setStatusBar(statusbar);
+
+        retranslateUi(org_yakindu_sct_examples_c_trafficlightClass);
+
+        QMetaObject::connectSlotsByName(org_yakindu_sct_examples_c_trafficlightClass);
+    } // setupUi
+
+    void retranslateUi(QMainWindow *org_yakindu_sct_examples_c_trafficlightClass)
+    {
+        org_yakindu_sct_examples_c_trafficlightClass->setWindowTitle(QApplication::translate("org_yakindu_sct_examples_c_trafficlightClass", "MainWindow", 0, QApplication::UnicodeUTF8));
+    } // retranslateUi
+
+};
+
+namespace Ui {
+    class org_yakindu_sct_examples_c_trafficlightClass: public Ui_org_yakindu_sct_examples_c_trafficlightClass {};
+} // namespace Ui
+
+QT_END_NAMESPACE
+
+#endif // UI_ORG_YAKINDU_SCT_EXAMPLES_C_TRAFFICLIGHT_H

+ 38 - 38
examples/org.yakindu.sct.examples.c.trafficlight/widgets/CrossingWidget.cpp

@@ -1,38 +1,38 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "CrossingWidget.h"
-
-CrossingWidget::CrossingWidget(QWidget *parent) :
-		QWidget(parent) {
-	parentWidget()->setFixedSize(WIDTH, HEIGHT);
-}
-
-void CrossingWidget::paintEvent(QPaintEvent *event) {
-	QWidget::paintEvent(event);
-	setFixedSize(parentWidget()->width(), parentWidget()->height());
-
-	QPainter painter(this);
-	painter.setBrush(Qt::darkGreen);
-	painter.drawRect(0, 0, parentWidget()->width(), parentWidget()->height());
-
-	painter.setBrush(QColor(192, 192, 192));
-	painter.drawRect(WIDTH / 3, 0, WIDTH / 3, HEIGHT);
-
-	painter.setBrush(Qt::white);
-	for (int i = 0; i <= 10; i += 2) {
-		painter.drawRect(WIDTH / 3 + i * WIDTH / 33, HEIGHT / 11, WIDTH / 30,
-				HEIGHT / 10);
-	}
-}
-
-CrossingWidget::~CrossingWidget() {
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "CrossingWidget.h"
+
+CrossingWidget::CrossingWidget(QWidget *parent) :
+		QWidget(parent) {
+	parentWidget()->setFixedSize(WIDTH, HEIGHT);
+}
+
+void CrossingWidget::paintEvent(QPaintEvent *event) {
+	QWidget::paintEvent(event);
+	setFixedSize(parentWidget()->width(), parentWidget()->height());
+
+	QPainter painter(this);
+	painter.setBrush(Qt::darkGreen);
+	painter.drawRect(0, 0, parentWidget()->width(), parentWidget()->height());
+
+	painter.setBrush(QColor(192, 192, 192));
+	painter.drawRect(WIDTH / 3, 0, WIDTH / 3, HEIGHT);
+
+	painter.setBrush(Qt::white);
+	for (int i = 0; i <= 10; i += 2) {
+		painter.drawRect(WIDTH / 3 + i * WIDTH / 33, HEIGHT / 11, WIDTH / 30,
+				HEIGHT / 10);
+	}
+}
+
+CrossingWidget::~CrossingWidget() {
+}

+ 35 - 35
examples/org.yakindu.sct.examples.c.trafficlight/widgets/CrossingWidget.h

@@ -1,35 +1,35 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef CROSSINGWIDGET_H_
-#define CROSSINGWIDGET_H_
-
-#include <QWidget>
-#include <QPushButton>
-#include <QPaintEvent>
-#include <QPainter>
-
-class CrossingWidget: public QWidget {
-
-
-public:
-	CrossingWidget(QWidget *parent = 0);
-	virtual ~CrossingWidget();
-
-protected:
-	void paintEvent(QPaintEvent *event);
-
-private:
-	static const int WIDTH = 399;
-	static const int HEIGHT = 399;
-};
-
-#endif /* CROSSINGWIDGET_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef CROSSINGWIDGET_H_
+#define CROSSINGWIDGET_H_
+
+#include <QWidget>
+#include <QPushButton>
+#include <QPaintEvent>
+#include <QPainter>
+
+class CrossingWidget: public QWidget {
+
+
+public:
+	CrossingWidget(QWidget *parent = 0);
+	virtual ~CrossingWidget();
+
+protected:
+	void paintEvent(QPaintEvent *event);
+
+private:
+	static const int WIDTH = 399;
+	static const int HEIGHT = 399;
+};
+
+#endif /* CROSSINGWIDGET_H_ */

+ 51 - 51
examples/org.yakindu.sct.examples.c.trafficlight/widgets/PedestrianLightWidget.cpp

@@ -1,51 +1,51 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "PedestrianLightWidget.h"
-
-PedestrianLightWidget::PedestrianLightWidget(QWidget *parent) :
-		QWidget(parent) {
-	white = false;
-	red = false;
-	green = false;
-}
-
-void PedestrianLightWidget::setSignals(bool white, bool red, bool green) {
-	this->white = white;
-	this->red = red;
-	this->green = green;
-}
-
-void PedestrianLightWidget::paintEvent(QPaintEvent *event) {
-	QWidget::paintEvent(event);
-
-	QPainter painter(this);
-	painter.setBrush(Qt::darkGray);
-	painter.drawRect(this->rect());
-
-	QRect rect = this->rect().translated(0, 0);
-
-	painter.setBrush(white ? Qt::white : Qt::black);
-	int size = rect.width() / 5;
-	painter.drawRect(rect.width() / 5 - size / 2, (rect.height() - size) / 2,
-			size, size);
-
-	painter.setBrush(red ? Qt::red : Qt::black);
-	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 2),
-			rect.width() / 8, rect.width() / 8);
-
-	painter.setBrush(green ? Qt::green : Qt::black);
-	painter.drawEllipse(QPoint(rect.width() * 4 / 5, rect.height() / 2),
-			rect.width() / 8, rect.width() / 8);
-}
-
-PedestrianLightWidget::~PedestrianLightWidget() {
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "PedestrianLightWidget.h"
+
+PedestrianLightWidget::PedestrianLightWidget(QWidget *parent) :
+		QWidget(parent) {
+	white = false;
+	red = false;
+	green = false;
+}
+
+void PedestrianLightWidget::setSignals(bool white, bool red, bool green) {
+	this->white = white;
+	this->red = red;
+	this->green = green;
+}
+
+void PedestrianLightWidget::paintEvent(QPaintEvent *event) {
+	QWidget::paintEvent(event);
+
+	QPainter painter(this);
+	painter.setBrush(Qt::darkGray);
+	painter.drawRect(this->rect());
+
+	QRect rect = this->rect().translated(0, 0);
+
+	painter.setBrush(white ? Qt::white : Qt::black);
+	int size = rect.width() / 5;
+	painter.drawRect(rect.width() / 5 - size / 2, (rect.height() - size) / 2,
+			size, size);
+
+	painter.setBrush(red ? Qt::red : Qt::black);
+	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 2),
+			rect.width() / 8, rect.width() / 8);
+
+	painter.setBrush(green ? Qt::green : Qt::black);
+	painter.drawEllipse(QPoint(rect.width() * 4 / 5, rect.height() / 2),
+			rect.width() / 8, rect.width() / 8);
+}
+
+PedestrianLightWidget::~PedestrianLightWidget() {
+}

+ 39 - 39
examples/org.yakindu.sct.examples.c.trafficlight/widgets/PedestrianLightWidget.h

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef PEDESTRIANLIGHTWIDGET_H_
-#define PEDESTRIANLIGHTWIDGET_H_
-
-#include <QWidget>
-#include <QPaintEvent>
-#include <QPainter>
-
-class PedestrianLightWidget: public QWidget {
-
-Q_OBJECT
-
-public:
-	PedestrianLightWidget(QWidget *parent = 0);
-	virtual ~PedestrianLightWidget();
-
-public slots:
-	void setSignals(bool white, bool red, bool green);
-
-protected:
-	void paintEvent(QPaintEvent *event);
-
-private:
-	bool white;
-	bool red;
-	bool green;
-};
-
-#endif /* PEDESTRIANLIGHTWIDGET_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef PEDESTRIANLIGHTWIDGET_H_
+#define PEDESTRIANLIGHTWIDGET_H_
+
+#include <QWidget>
+#include <QPaintEvent>
+#include <QPainter>
+
+class PedestrianLightWidget: public QWidget {
+
+Q_OBJECT
+
+public:
+	PedestrianLightWidget(QWidget *parent = 0);
+	virtual ~PedestrianLightWidget();
+
+public slots:
+	void setSignals(bool white, bool red, bool green);
+
+protected:
+	void paintEvent(QPaintEvent *event);
+
+private:
+	bool white;
+	bool red;
+	bool green;
+};
+
+#endif /* PEDESTRIANLIGHTWIDGET_H_ */

+ 53 - 53
examples/org.yakindu.sct.examples.c.trafficlight/widgets/TrafficLightWidget.cpp

@@ -1,53 +1,53 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#include "TrafficLightWidget.h"
-
-TrafficLightWidget::TrafficLightWidget(QWidget *parent) :
-		QWidget(parent) {
-	red = false;
-	yellow = false;
-	green = false;
-}
-
-void TrafficLightWidget::setSignals(bool red, bool yellow, bool green) {
-	this->red = red;
-	this->yellow = yellow;
-	this->green = green;
-}
-
-void TrafficLightWidget::paintEvent(QPaintEvent *event) {
-	QWidget::paintEvent(event);
-
-	QPainter painter(this);
-	painter.setBrush(Qt::darkGray);
-	painter.drawRect(this->rect());
-
-	QRect rect = this->rect().translated(0, 0);
-
-	//red signal
-	painter.setBrush(red ? Qt::red : Qt::black);
-	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 5),
-			rect.width() / 3, rect.width() / 3);
-
-	//yellow signal
-	painter.setBrush(yellow ? Qt::yellow : Qt::black);
-	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 2),
-			rect.width() / 3, rect.width() / 3);
-
-	//green signal
-	painter.setBrush(green ? Qt::green : Qt::black);
-	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() * 4 / 5),
-			rect.width() / 3, rect.width() / 3);
-}
-
-TrafficLightWidget::~TrafficLightWidget() {
-}
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#include "TrafficLightWidget.h"
+
+TrafficLightWidget::TrafficLightWidget(QWidget *parent) :
+		QWidget(parent) {
+	red = false;
+	yellow = false;
+	green = false;
+}
+
+void TrafficLightWidget::setSignals(bool red, bool yellow, bool green) {
+	this->red = red;
+	this->yellow = yellow;
+	this->green = green;
+}
+
+void TrafficLightWidget::paintEvent(QPaintEvent *event) {
+	QWidget::paintEvent(event);
+
+	QPainter painter(this);
+	painter.setBrush(Qt::darkGray);
+	painter.drawRect(this->rect());
+
+	QRect rect = this->rect().translated(0, 0);
+
+	//red signal
+	painter.setBrush(red ? Qt::red : Qt::black);
+	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 5),
+			rect.width() / 3, rect.width() / 3);
+
+	//yellow signal
+	painter.setBrush(yellow ? Qt::yellow : Qt::black);
+	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() / 2),
+			rect.width() / 3, rect.width() / 3);
+
+	//green signal
+	painter.setBrush(green ? Qt::green : Qt::black);
+	painter.drawEllipse(QPoint(rect.width() / 2, rect.height() * 4 / 5),
+			rect.width() / 3, rect.width() / 3);
+}
+
+TrafficLightWidget::~TrafficLightWidget() {
+}

+ 39 - 39
examples/org.yakindu.sct.examples.c.trafficlight/widgets/TrafficLightWidget.h

@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2012 committers of YAKINDU and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- * Contributors:
- * 	m.muehlbrandt - initial API and implementation
- *
- */
-
-#ifndef TRAFFICLIGHTWIDGET_H_
-#define TRAFFICLIGHTWIDGET_H_
-
-#include <QWidget>
-#include <QPaintEvent>
-#include <QPainter>
-
-class TrafficLightWidget: public QWidget {
-
-Q_OBJECT
-
-public:
-	TrafficLightWidget(QWidget *parent = 0);
-	virtual ~TrafficLightWidget();
-
-public slots:
-	void setSignals(bool red, bool yellow, bool green);
-
-protected:
-	void paintEvent(QPaintEvent *event);
-
-private:
-	bool red;
-	bool yellow;
-	bool green;
-};
-
-#endif /* TRAFFICLIGHTWIDGET_H_ */
+/**
+ * Copyright (c) 2012 committers of YAKINDU and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * Contributors:
+ * 	m.muehlbrandt - initial API and implementation
+ *
+ */
+
+#ifndef TRAFFICLIGHTWIDGET_H_
+#define TRAFFICLIGHTWIDGET_H_
+
+#include <QWidget>
+#include <QPaintEvent>
+#include <QPainter>
+
+class TrafficLightWidget: public QWidget {
+
+Q_OBJECT
+
+public:
+	TrafficLightWidget(QWidget *parent = 0);
+	virtual ~TrafficLightWidget();
+
+public slots:
+	void setSignals(bool red, bool yellow, bool green);
+
+protected:
+	void paintEvent(QPaintEvent *event);
+
+private:
+	bool red;
+	bool yellow;
+	bool green;
+};
+
+#endif /* TRAFFICLIGHTWIDGET_H_ */

+ 0 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.gitignore

@@ -1,2 +0,0 @@
-/bin/
-/target/

+ 40 - 40
examples/org.yakindu.sct.examples.c.arduinoTrafficLight/.project

@@ -1,40 +1,40 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.yakindu.sct.examples.c.arduinoTrafficLight</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
-			<triggers>clean,full,incremental,</triggers>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
-			<triggers>full,incremental,</triggers>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.yakindu.sct.builder.SCTBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.cdt.core.cnature</nature>
-		<nature>org.eclipse.cdt.core.ccnature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
-		<nature>de.innot.avreclipse.core.avrnature</nature>
-		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
-		<nature>org.yakindu.sct.builder.SCTNature</nature>
-	</natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.examples.c.arduinoTrafficLight</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.yakindu.sct.builder.SCTBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.core.ccnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+		<nature>de.innot.avreclipse.core.avrnature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+		<nature>org.yakindu.sct.builder.SCTNature</nature>
+	</natures>
+</projectDescription>

+ 0 - 2
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.gitignore

@@ -1,2 +0,0 @@
-/bin/
-/target/

+ 41 - 41
examples/org.yakindu.sct.examples.c.arduinoTrafficLightLib/.project

@@ -1,41 +1,41 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.yakindu.sct.examples.c.arduinoTrafficLightLib</name>
-	<comment></comment>
-	<projects>
-		<project>ArduinoCore</project>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
-			<triggers>clean,full,incremental,</triggers>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
-			<triggers>full,incremental,</triggers>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.yakindu.sct.builder.SCTBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.cdt.core.cnature</nature>
-		<nature>org.eclipse.cdt.core.ccnature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
-		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
-		<nature>de.innot.avreclipse.core.avrnature</nature>
-		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
-		<nature>org.yakindu.sct.builder.SCTNature</nature>
-	</natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yakindu.sct.examples.c.arduinoTrafficLightLib</name>
+	<comment></comment>
+	<projects>
+		<project>ArduinoCore</project>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<triggers>clean,full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.yakindu.sct.builder.SCTBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.core.ccnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+		<nature>de.innot.avreclipse.core.avrnature</nature>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+		<nature>org.yakindu.sct.builder.SCTNature</nature>
+	</natures>
+</projectDescription>

+ 0 - 2
examples/org.yakindu.sct.examples.c.trafficlight/.gitignore

@@ -1,2 +0,0 @@
-/bin/
-/target/