Let's keep it simple

This commit is contained in:
Joeri Exelmans 2024-10-30 03:14:50 +01:00
parent 86610139d2
commit b944ece747
2 changed files with 2 additions and 4 deletions

View file

@ -139,6 +139,4 @@ def termination_condition(od):
# TO IMPLEMENT: terminate simulation when the place 'served' contains 2 ships.
if len(od.get_all_instances("Place")) > 5:
return "More places than I can count :("
pass

View file

@ -263,7 +263,7 @@ port_rt_m_cs = port_m_cs + """
time = 0;
}
waitingState:PlaceState { numShips = 2; } :of (waitingState -> waiting)
waitingState:PlaceState { numShips = 0; } :of (waitingState -> waiting)
inboundPassageState:PlaceState { numShips = 0; } :of (inboundPassageState -> inboundPassage)
outboundPassageState:PlaceState { numShips = 0; } :of (outboundPassageState -> outboundPassage)