ReForma 0.29__tar.gz → 0.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {reforma-0.29 → reforma-0.30}/PKG-INFO +1 -1
- {reforma-0.29 → reforma-0.30}/ReForma.egg-info/PKG-INFO +1 -1
- {reforma-0.29 → reforma-0.30}/pyproject.toml +1 -1
- {reforma-0.29 → reforma-0.30}/reforma/bin/RePATool.jar +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/client.py +6 -4
- {reforma-0.29 → reforma-0.30}/MANIFEST.in +0 -0
- {reforma-0.29 → reforma-0.30}/README.md +0 -0
- {reforma-0.29 → reforma-0.30}/ReForma.egg-info/SOURCES.txt +0 -0
- {reforma-0.29 → reforma-0.30}/ReForma.egg-info/dependency_links.txt +0 -0
- {reforma-0.29 → reforma-0.30}/ReForma.egg-info/requires.txt +0 -0
- {reforma-0.29 → reforma-0.30}/ReForma.egg-info/top_level.txt +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/__init__.py +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/bin/js/cytoscape-dagre.js +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/bin/js/cytoscape.min.js +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/bin/js/dagre.js +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/jar_bridge.py +0 -0
- {reforma-0.29 → reforma-0.30}/reforma/model.py +0 -0
- {reforma-0.29 → reforma-0.30}/setup.cfg +0 -0
- {reforma-0.29 → reforma-0.30}/tests/test_reforma.py +0 -0
|
Binary file
|
|
@@ -360,8 +360,10 @@ class ReForma:
|
|
|
360
360
|
raw = self._bridge.list_transitions(self._model.source, self._history)
|
|
361
361
|
next_state = self._parse_simulation(raw)
|
|
362
362
|
|
|
363
|
+
resolved_states = next_state.current_states if next_state.current_states else self._state.current_states
|
|
364
|
+
|
|
363
365
|
self._state = SimulationState(
|
|
364
|
-
current_states=
|
|
366
|
+
current_states=resolved_states,
|
|
365
367
|
enabled=next_state.enabled,
|
|
366
368
|
variables=next_state.variables,
|
|
367
369
|
can_undo=len(self._history) > 0,
|
|
@@ -872,11 +874,11 @@ class ReForma:
|
|
|
872
874
|
import re
|
|
873
875
|
|
|
874
876
|
for line in lines:
|
|
875
|
-
if line.startswith("Estado Atual:"):
|
|
877
|
+
if line.startswith("Estado Atual:") or line.startswith("Current State:"):
|
|
876
878
|
st_parts = line.split(":", 1)[1].strip()
|
|
877
879
|
current_states = [s.strip() for s in st_parts.split(",")]
|
|
878
880
|
|
|
879
|
-
elif line.startswith("Variaveis:"):
|
|
881
|
+
elif line.startswith("Variaveis:") or line.startswith("Variables:"):
|
|
880
882
|
var_parts = line.split(":", 1)[1].strip()
|
|
881
883
|
matches = re.finditer(r"([a-zA-Z0-9_]+)\s*=\s*(?:VInt\(\s*([^,)]+)|VFloat\(\s*([^,)]+)|VBool\(\s*([^,)]+)|([^,]+))", var_parts)
|
|
882
884
|
|
|
@@ -894,7 +896,7 @@ class ReForma:
|
|
|
894
896
|
variables[k] = val_str
|
|
895
897
|
|
|
896
898
|
m = re.match(
|
|
897
|
-
r"\s*-\s*\[(.+?)\]\s+de\s+(\S+)\s+para\s+(\S+)\s+\(P=([\d.,]+)\)",
|
|
899
|
+
r"\s*-\s*\[(.+?)\]\s+(?:de|from)\s+(\S+)\s+(?:para|to)\s+(\S+)\s+\(P=([\d.,]+)\)",
|
|
898
900
|
line,
|
|
899
901
|
)
|
|
900
902
|
if m:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|