Skip to content

Commit dc4c29e

Browse files
committed
Small change in simulator path initialisation.
The current order of initialisation events breaks PRISM-games.
1 parent 1749f26 commit dc4c29e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

prism/src/simulator/SimulatorEngine.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,12 @@ public void initialisePath(State initialState) throws PrismException
302302
throw new PrismNotSupportedException("Random choice of multiple initial states not yet supported");
303303
}
304304
}
305-
// Start model exploration and get initial state reward
306-
computeTransitionsForState(currentState);
305+
// Get initial state reward
307306
calculateStateRewards(currentState, tmpStateRewards);
308307
// Initialise stored path
309308
path.initialise(currentState, tmpStateRewards);
309+
// Explore initial state in model generator
310+
computeTransitionsForState(currentState);
310311
// Reset and then update samplers for any loaded properties
311312
resetSamplers();
312313
updateSamplers();

0 commit comments

Comments
 (0)