Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uppaal2jetracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Dold
uppaal2jetracer
Commits
33303799
Commit
33303799
authored
1 month ago
by
Moritz Maas
Browse files
Options
Downloads
Patches
Plain Diff
fix: log when taking transition
parent
308675e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uppaal2jetracer/controller/uppaal_controller.py
+11
-10
11 additions, 10 deletions
uppaal2jetracer/controller/uppaal_controller.py
with
11 additions
and
10 deletions
uppaal2jetracer/controller/uppaal_controller.py
+
11
−
10
View file @
33303799
...
...
@@ -118,11 +118,6 @@ class SystemController:
def
_execute_broadcast_transition
(
self
,
transition
:
Transition
,
channel
:
Channel
,
automaton_controller
:
AutomatonController
):
broadcast_receiver_list
:
List
[
Tuple
[
Transition
,
AutomatonController
]]
=
[]
logger
.
info
(
"
Executing the broadcast transition from location %s to %s.
"
,
transition
.
source
.
identifier
,
transition
.
target
.
identifier
)
http_handler
.
update_webinterface
(
f
"
Executing the broadcast transition from location
"
f
"
{
transition
.
source
.
identifier
}
to
"
f
"
{
transition
.
target
.
identifier
}
was taken.
"
)
for
receiving_controller
in
self
.
_automata_controller
:
if
receiving_controller
==
automaton_controller
:
continue
...
...
@@ -141,17 +136,17 @@ class SystemController:
receiving_controller
))
break
logger
.
info
(
"
Executing the broadcast transition from location %s to %s.
"
,
transition
.
source
.
identifier
,
transition
.
target
.
identifier
)
http_handler
.
update_webinterface
(
f
"
Executing the broadcast transition from location
"
f
"
{
transition
.
source
.
identifier
}
to
"
f
"
{
transition
.
target
.
identifier
}
was taken.
"
)
self
.
_execute_transition
(
transition
,
automaton_controller
)
for
receiver
in
broadcast_receiver_list
:
self
.
_execute_transition
(
receiver
[
0
],
receiver
[
1
])
def
_execute_binary_transition
(
self
,
transition
:
Transition
,
channel
:
Channel
,
automaton_controller
:
AutomatonController
):
logger
.
info
(
"
Executing the binary transition from location %s to %s.
"
,
transition
.
source
.
identifier
,
transition
.
target
.
identifier
)
http_handler
.
update_webinterface
(
f
"
Executing the binary transition from location
"
f
"
{
transition
.
source
.
identifier
}
to
"
f
"
{
transition
.
target
.
identifier
}
.
"
)
transitions
:
List
[
Transition
]
if
transition
.
synchronization
.
is_sending
:
transitions
=
channel
.
receiving_transitions
...
...
@@ -170,6 +165,12 @@ class SystemController:
Executor
(
second_frame
))
if
second_channel
==
channel
:
if
second_controller
.
can_step
(
second_transition
,
second_frame
):
logger
.
info
(
"
Executing the binary transition from location %s to %s.
"
,
transition
.
source
.
identifier
,
transition
.
target
.
identifier
)
http_handler
.
update_webinterface
(
f
"
Executing the binary transition from location
"
f
"
{
transition
.
source
.
identifier
}
to
"
f
"
{
transition
.
target
.
identifier
}
.
"
)
self
.
_execute_transition
(
transition
,
automaton_controller
)
self
.
_execute_transition
(
second_transition
,
second_controller
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment