Explorar o código

reconfigured target package for java generator

Axel Terfloth %!s(int64=9) %!d(string=hai) anos
pai
achega
fc0b120ed1

+ 3 - 3
examples/traffic_light/model/GenModelJava.sgen

@@ -3,12 +3,12 @@ GeneratorModel for yakindu::java {
 	statechart TrafficLightWaiting {
 	 	
 		feature Outlet {
-			targetProject = "org.yakindu.sct.examples.trafficlight"
+			targetProject = "traffic_light"
 			targetFolder = "src-gen"
 		}
 
 		feature Naming {
-			basePackage = "org.yakindu.sct.examples.trafficlight.cyclebased"
+			basePackage = "traffic.light"
 		}
 
 		feature GeneralFeatures {
@@ -18,7 +18,7 @@ GeneratorModel for yakindu::java {
 		
 		feature LicenseHeader {
 			licenseText = "
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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

+ 0 - 37
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/IStatemachine.java

@@ -1,37 +0,0 @@
-/**
-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
-�*/
-package org.yakindu.sct.examples.trafficlight.cyclebased;
-
-/**
- * Basic interface for statemachines.
- */
-public interface IStatemachine {
-
-	/**
-	* Initializes the statemachine. Use to init internal variables etc.
-	*/
-	public void init();
-
-	/**
-	* Enters the statemachine. Sets the statemachine in a defined state.
-	*/
-	public void enter();
-
-	/**
-	* Exits the statemachine. Leaves the statemachine with a defined state.
-	*/
-	public void exit();
-
-	/**
-	* Start a run-to-completion cycle.
-	*/
-	public void runCycle();
-}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 1449
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/trafficlightwaiting/TrafficLightWaitingStatemachine.java


+ 49 - 0
examples/traffic_light/src-gen/traffic/light/IStatemachine.java

@@ -0,0 +1,49 @@
+/**
+Copyright (c) 2012-2015 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
+�*/
+package traffic.light;
+
+/**
+ * Basic interface for statemachines.
+ */
+public interface IStatemachine {
+
+	/**
+	 * Initializes the statemachine. Use to init internal variables etc.
+	 */
+	public void init();
+
+	/**
+	 * Enters the statemachine. Sets the statemachine in a defined state.
+	 */
+	public void enter();
+
+	/**
+	 * Exits the statemachine. Leaves the statemachine with a defined state.
+	 */
+	public void exit();
+
+	/**
+	 * Checks if the statemachine is active. 
+	 * A statemachine is active if it was entered. It is inactive if it has not been entered at all or if it was exited.
+	 */
+	public boolean isActive();
+
+	/**
+	 * Checks if all active states are final. 
+	 * If there are no active states then the statemachine is considered as incative and this method returns false.
+	 */
+	public boolean isFinal();
+
+	/**
+	* Start a run-to-completion cycle.
+	*/
+	public void runCycle();
+}

+ 2 - 2
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/ITimer.java

@@ -1,5 +1,5 @@
 /**
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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
@@ -8,7 +8,7 @@ http://www.eclipse.org/legal/epl-v10.html
 Contributors:
     committers of YAKINDU - initial API and implementation
 �*/
-package org.yakindu.sct.examples.trafficlight.cyclebased;
+package traffic.light;
 
 /**
  * Interface a timer has to implement. Use to implement your own timer

+ 2 - 2
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/ITimerCallback.java

@@ -1,5 +1,5 @@
 /**
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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
@@ -8,7 +8,7 @@ http://www.eclipse.org/legal/epl-v10.html
 Contributors:
     committers of YAKINDU - initial API and implementation
 �*/
-package org.yakindu.sct.examples.trafficlight.cyclebased;
+package traffic.light;
 
 /**
 * Interface for state machines which use timed event triggers.

+ 2 - 2
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/RuntimeService.java

@@ -1,5 +1,5 @@
 /**
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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
@@ -8,7 +8,7 @@ http://www.eclipse.org/legal/epl-v10.html
 Contributors:
     committers of YAKINDU - initial API and implementation
 �*/
-package org.yakindu.sct.examples.trafficlight.cyclebased;
+package traffic.light;
 
 import java.util.HashMap;
 import java.util.LinkedList;

+ 2 - 2
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/TimerService.java

@@ -1,5 +1,5 @@
 /**
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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
@@ -8,7 +8,7 @@ http://www.eclipse.org/legal/epl-v10.html
 Contributors:
     committers of YAKINDU - initial API and implementation
 �*/
-package org.yakindu.sct.examples.trafficlight.cyclebased;
+package traffic.light;
 
 import java.util.ArrayList;
 import java.util.List;

+ 5 - 9
examples/traffic_light/src-gen/org/yakindu/sct/examples/trafficlight/cyclebased/trafficlightwaiting/ITrafficLightWaitingStatemachine.java

@@ -1,5 +1,5 @@
 /**
-Copyright (c) 2012 committers of YAKINDU and others.
+Copyright (c) 2012-2015 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
@@ -8,15 +8,11 @@ http://www.eclipse.org/legal/epl-v10.html
 Contributors:
     committers of YAKINDU - initial API and implementation
 �*/
-package org.yakindu.sct.examples.trafficlight.cyclebased.trafficlightwaiting;
-import org.yakindu.sct.examples.trafficlight.cyclebased.IStatemachine;
-import org.yakindu.sct.examples.trafficlight.cyclebased.ITimerCallback;
-
-public interface ITrafficLightWaitingStatemachine
-		extends
-			ITimerCallback,
-			IStatemachine {
+package traffic.light.trafficlightwaiting;
+import traffic.light.IStatemachine;
+import traffic.light.ITimerCallback;
 
+public interface ITrafficLightWaitingStatemachine extends ITimerCallback, IStatemachine {
 	public interface SCITrafficLight {
 		public boolean getRed();
 		public void setRed(boolean value);

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1121 - 0
examples/traffic_light/src-gen/traffic/light/trafficlightwaiting/TrafficLightWaitingStatemachine.java