|
@@ -1,65 +1,95 @@
|
|
|
-/**
|
|
|
|
|
-Copyright (c) 2011 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.runtime.java.test_deephistory;
|
|
|
|
|
-
|
|
|
|
|
-import java.util.Collection;
|
|
|
|
|
-import java.util.HashSet;
|
|
|
|
|
-import org.yakindu.sct.runtime.java.Event;
|
|
|
|
|
-import org.yakindu.sct.runtime.java.EventVector;
|
|
|
|
|
-import java.util.HashMap;
|
|
|
|
|
-import java.util.Map;
|
|
|
|
|
-import org.yakindu.sct.runtime.java.IGenericAccessStatemachine;
|
|
|
|
|
-import org.yakindu.sct.runtime.java.IGenericAccessInterface;
|
|
|
|
|
-import org.yakindu.sct.runtime.java.IStatemachine;
|
|
|
|
|
-
|
|
|
|
|
-public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
|
|
|
|
+package org.yakindu.sct.generator.java.runtime.cyclebased.test_deephistory;
|
|
|
|
|
+
|
|
|
|
|
+public class Test_deephistoryStatemachine
|
|
|
implements
|
|
implements
|
|
|
- IGenericAccessStatemachine,
|
|
|
|
|
- DefaultInterface,
|
|
|
|
|
- IStatemachine {
|
|
|
|
|
|
|
+ ITest_deephistoryStatemachine {
|
|
|
|
|
|
|
|
- public enum State {
|
|
|
|
|
- State1, State2, State3, State4, State6, State7, State8, State9, State5, $NullState$
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ private final class DefaultInterfaceImpl implements DefaultInterface {
|
|
|
|
|
|
|
|
- protected Map<String, IGenericAccessInterface> interfaceMap;
|
|
|
|
|
|
|
+ private boolean event1;
|
|
|
|
|
|
|
|
- private State[] historyVector = new State[3];
|
|
|
|
|
|
|
+ public void raiseEvent1() {
|
|
|
|
|
+ event1 = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- private final State[] stateVector = new State[1];
|
|
|
|
|
|
|
+ private boolean event2;
|
|
|
|
|
|
|
|
- private int nextStateIndex;
|
|
|
|
|
|
|
+ public void raiseEvent2() {
|
|
|
|
|
+ event2 = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- private final EventVector<Event<? extends Enum<?>>> occuredEvents;
|
|
|
|
|
|
|
+ private boolean event3;
|
|
|
|
|
|
|
|
- private final Collection<Event<? extends Enum<?>>> outEvents;
|
|
|
|
|
|
|
+ public void raiseEvent3() {
|
|
|
|
|
+ event3 = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- public Test_DeepHistoryCycleBasedStatemachine() {
|
|
|
|
|
- occuredEvents = new EventVector<Event<? extends Enum<?>>>(9);
|
|
|
|
|
- outEvents = new HashSet<Event<? extends Enum<?>>>();
|
|
|
|
|
- interfaceMap = new HashMap<String, IGenericAccessInterface>();
|
|
|
|
|
- interfaceMap.put("DefaultInterface", new DefaultInterfaceImpl(this));
|
|
|
|
|
|
|
+ private boolean event4;
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ public void raiseEvent4() {
|
|
|
|
|
+ event4 = true;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- protected Collection<Event<? extends Enum<?>>> getOccuredEvents() {
|
|
|
|
|
- return occuredEvents;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ private boolean event5;
|
|
|
|
|
+
|
|
|
|
|
+ public void raiseEvent5() {
|
|
|
|
|
+ event5 = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private boolean event6;
|
|
|
|
|
+
|
|
|
|
|
+ public void raiseEvent6() {
|
|
|
|
|
+ event6 = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private boolean event7;
|
|
|
|
|
+
|
|
|
|
|
+ public void raiseEvent7() {
|
|
|
|
|
+ event7 = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private boolean event8;
|
|
|
|
|
+
|
|
|
|
|
+ public void raiseEvent8() {
|
|
|
|
|
+ event8 = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private boolean event9;
|
|
|
|
|
+
|
|
|
|
|
+ public void raiseEvent9() {
|
|
|
|
|
+ event9 = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void clearEvents() {
|
|
|
|
|
+ event1 = false;
|
|
|
|
|
+ event2 = false;
|
|
|
|
|
+ event3 = false;
|
|
|
|
|
+ event4 = false;
|
|
|
|
|
+ event5 = false;
|
|
|
|
|
+ event6 = false;
|
|
|
|
|
+ event7 = false;
|
|
|
|
|
+ event8 = false;
|
|
|
|
|
+ event9 = false;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- protected Collection<Event<? extends Enum<?>>> getOutEvents() {
|
|
|
|
|
- return outEvents;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- protected boolean eventOccured() {
|
|
|
|
|
- return !occuredEvents.isEmpty();
|
|
|
|
|
|
|
+ private DefaultInterfaceImpl defaultInterface;
|
|
|
|
|
+
|
|
|
|
|
+ public enum State {
|
|
|
|
|
+ State1, State2, State3, State4, State6, State7, State8, State9, State5, $NullState$
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ private State[] historyVector = new State[3];
|
|
|
|
|
+
|
|
|
|
|
+ private final State[] stateVector = new State[1];
|
|
|
|
|
+
|
|
|
|
|
+ private int nextStateIndex;
|
|
|
|
|
+
|
|
|
|
|
+ public Test_deephistoryStatemachine() {
|
|
|
|
|
+
|
|
|
|
|
+ defaultInterface = new DefaultInterfaceImpl();
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void init() {
|
|
public void init() {
|
|
@@ -70,8 +100,16 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
for (int i = 0; i < 3; i++) {
|
|
for (int i = 0; i < 3; i++) {
|
|
|
historyVector[i] = State.$NullState$;
|
|
historyVector[i] = State.$NullState$;
|
|
|
}
|
|
}
|
|
|
|
|
+ clearEvents();
|
|
|
|
|
+ clearOutEvents();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ protected void clearEvents() {
|
|
|
|
|
+ defaultInterface.clearEvents();
|
|
|
|
|
|
|
|
- occuredEvents.clear();
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ protected void clearOutEvents() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public boolean isStateActive(State state) {
|
|
public boolean isStateActive(State state) {
|
|
@@ -83,76 +121,49 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public IGenericAccessInterface getInterface(String name) {
|
|
|
|
|
- return interfaceMap.get(name);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- protected Map<String, IGenericAccessInterface> getInterfaceMap() {
|
|
|
|
|
- return interfaceMap;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
public DefaultInterface getDefaultInterface() {
|
|
public DefaultInterface getDefaultInterface() {
|
|
|
- return (DefaultInterface) getInterface("DefaultInterface");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- protected IDefaultInterfaceImpl getDefaultInterfaceImpl() {
|
|
|
|
|
- return (IDefaultInterfaceImpl) getInterface("DefaultInterface");
|
|
|
|
|
|
|
+ return defaultInterface;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent1() {
|
|
public void raiseEvent1() {
|
|
|
- getDefaultInterface().raiseEvent1();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent1();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent2() {
|
|
public void raiseEvent2() {
|
|
|
- getDefaultInterface().raiseEvent2();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent2();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent3() {
|
|
public void raiseEvent3() {
|
|
|
- getDefaultInterface().raiseEvent3();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent3();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent4() {
|
|
public void raiseEvent4() {
|
|
|
- getDefaultInterface().raiseEvent4();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent4();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent5() {
|
|
public void raiseEvent5() {
|
|
|
- getDefaultInterface().raiseEvent5();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent5();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent6() {
|
|
public void raiseEvent6() {
|
|
|
- getDefaultInterface().raiseEvent6();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent6();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent7() {
|
|
public void raiseEvent7() {
|
|
|
- getDefaultInterface().raiseEvent7();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent7();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent8() {
|
|
public void raiseEvent8() {
|
|
|
- getDefaultInterface().raiseEvent8();
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent8();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void raiseEvent9() {
|
|
public void raiseEvent9() {
|
|
|
- getDefaultInterface().raiseEvent9();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public boolean raiseEvent(String name) {
|
|
|
|
|
- return getDefaultInterface().raiseEvent(name);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @SuppressWarnings("unchecked")
|
|
|
|
|
- public boolean raiseEvent(String name, Object value) {
|
|
|
|
|
- return getDefaultInterface().raiseEvent(name, value);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public boolean setVariable(String name, Object value) {
|
|
|
|
|
- return getDefaultInterface().setVariable(name, value);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public Object getVariable(String name) {
|
|
|
|
|
- return getDefaultInterface().getVariable(name);
|
|
|
|
|
|
|
+ defaultInterface.raiseEvent9();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void enter() {
|
|
public void enter() {
|
|
|
|
|
+
|
|
|
|
|
+ // unknown function type org.yakindu.sct.model.sexec.impl.SequenceImpl@65536eb4 (name: entryAction) (comment: Entry action for statechart 'Test_DeepHistory'.)();
|
|
|
nextStateIndex = 0;
|
|
nextStateIndex = 0;
|
|
|
stateVector[0] = State.State1;
|
|
stateVector[0] = State.State1;
|
|
|
|
|
|
|
@@ -216,6 +227,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // unknown function type org.yakindu.sct.model.sexec.impl.SequenceImpl@46bac287 (name: exitAction) (comment: Exit action for state 'Test_DeepHistory'.)();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void deepEnterSequenceState2Region0() {
|
|
private void deepEnterSequenceState2Region0() {
|
|
@@ -306,7 +318,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void reactState1() {
|
|
private void reactState1() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent1())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event1) {
|
|
|
stateVector[0] = State.$NullState$;
|
|
stateVector[0] = State.$NullState$;
|
|
|
|
|
|
|
|
//Enter the region with deep history
|
|
//Enter the region with deep history
|
|
@@ -325,7 +337,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
private void reactState2() {
|
|
private void reactState2() {
|
|
|
}
|
|
}
|
|
|
private void reactState3() {
|
|
private void reactState3() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent2())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event2) {
|
|
|
|
|
|
|
|
historyVector[0] = stateVector[0];
|
|
historyVector[0] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -374,8 +386,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State1;
|
|
stateVector[0] = State.State1;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent3())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event3) {
|
|
|
stateVector[0] = State.$NullState$;
|
|
stateVector[0] = State.$NullState$;
|
|
|
|
|
|
|
|
nextStateIndex = 0;
|
|
nextStateIndex = 0;
|
|
@@ -389,7 +400,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
private void reactState4() {
|
|
private void reactState4() {
|
|
|
}
|
|
}
|
|
|
private void reactState6() {
|
|
private void reactState6() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent2())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event2) {
|
|
|
|
|
|
|
|
historyVector[0] = stateVector[0];
|
|
historyVector[0] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -438,8 +449,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State1;
|
|
stateVector[0] = State.State1;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent4())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event4) {
|
|
|
|
|
|
|
|
historyVector[1] = stateVector[0];
|
|
historyVector[1] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -472,8 +482,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State5;
|
|
stateVector[0] = State.State5;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent5())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event5) {
|
|
|
stateVector[0] = State.$NullState$;
|
|
stateVector[0] = State.$NullState$;
|
|
|
|
|
|
|
|
nextStateIndex = 0;
|
|
nextStateIndex = 0;
|
|
@@ -489,7 +498,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
private void reactState7() {
|
|
private void reactState7() {
|
|
|
}
|
|
}
|
|
|
private void reactState8() {
|
|
private void reactState8() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent2())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event2) {
|
|
|
|
|
|
|
|
historyVector[0] = stateVector[0];
|
|
historyVector[0] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -538,8 +547,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State1;
|
|
stateVector[0] = State.State1;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent4())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event4) {
|
|
|
|
|
|
|
|
historyVector[1] = stateVector[0];
|
|
historyVector[1] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -572,8 +580,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State5;
|
|
stateVector[0] = State.State5;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent6())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event6) {
|
|
|
|
|
|
|
|
historyVector[2] = stateVector[0];
|
|
historyVector[2] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -597,8 +604,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State6;
|
|
stateVector[0] = State.State6;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent7())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event7) {
|
|
|
stateVector[0] = State.$NullState$;
|
|
stateVector[0] = State.$NullState$;
|
|
|
|
|
|
|
|
nextStateIndex = 0;
|
|
nextStateIndex = 0;
|
|
@@ -614,7 +620,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
private void reactState9() {
|
|
private void reactState9() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent2())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event2) {
|
|
|
|
|
|
|
|
historyVector[0] = stateVector[0];
|
|
historyVector[0] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -663,8 +669,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State1;
|
|
stateVector[0] = State.State1;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent4())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event4) {
|
|
|
|
|
|
|
|
historyVector[1] = stateVector[0];
|
|
historyVector[1] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -697,8 +702,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State5;
|
|
stateVector[0] = State.State5;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent6())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event6) {
|
|
|
|
|
|
|
|
historyVector[2] = stateVector[0];
|
|
historyVector[2] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -722,8 +726,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
stateVector[0] = State.State6;
|
|
stateVector[0] = State.State6;
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl()
|
|
|
|
|
- .getEventEvent8())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event8) {
|
|
|
stateVector[0] = State.$NullState$;
|
|
stateVector[0] = State.$NullState$;
|
|
|
|
|
|
|
|
nextStateIndex = 0;
|
|
nextStateIndex = 0;
|
|
@@ -739,7 +742,7 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
private void reactState5() {
|
|
private void reactState5() {
|
|
|
- if (occuredEvents.contains(getDefaultInterfaceImpl().getEventEvent2())) {
|
|
|
|
|
|
|
+ if (defaultInterface.event2) {
|
|
|
|
|
|
|
|
historyVector[0] = stateVector[0];
|
|
historyVector[0] = stateVector[0];
|
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
//Handle exit of all possible states (of region0) at position 0...
|
|
@@ -792,8 +795,10 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
public void runCycle() {
|
|
public void runCycle() {
|
|
|
- outEvents.clear();
|
|
|
|
|
|
|
+
|
|
|
|
|
+ clearOutEvents();
|
|
|
|
|
|
|
|
for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
|
|
for (nextStateIndex = 0; nextStateIndex < stateVector.length; nextStateIndex++) {
|
|
|
|
|
|
|
@@ -830,6 +835,6 @@ public class Test_DeepHistoryCycleBasedStatemachine
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- occuredEvents.clear();
|
|
|
|
|
|
|
+ clearEvents();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|