Przeglądaj źródła

Added additional features to generator model.

markus.muehlbrandt@itemis.de 13 lat temu
rodzic
commit
a9a77ba282

+ 19 - 1
examples/org.yakindu.sct.generator.java.trafficlight/GenModelJava.sgen

@@ -1,10 +1,11 @@
 GeneratorModel for yakindu::java {
 	statechart TrafficLightWaiting {
+
 		feature Outlet {
 			targetProject = "org.yakindu.sct.examples.generator.java.trafficlight"
 			targetFolder = "src-gen"
 		}
-		
+
 		feature licenseHeader {
 			licenseText = "/**
  * Copyright (c) 2011 committers of YAKINDU and others.
@@ -17,5 +18,22 @@ GeneratorModel for yakindu::java {
  *     committers of YAKINDU - initial API and implementation
  */"
 		}
+
+		//create a dump file of execution model (sexec)
+		//This feature is disabled by default if it's not declared explicit in a generator model.
+		feature Debug {
+			dumpSexec = false
+		}
+
+		//This feature reduces the amount of generated methods.
+		//The FunctionInlining is enabled by default if it's not declared explicit in a generator model.
+		feature FunctionInlining {
+			inlineChoices = true
+			inlineEnterSequences = true
+			inlineEntryActions = true
+			inlineExitActions = true
+			inlineExitSequences = true
+			inlineReactions = true
+		}
 	}
 }