Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VILLAScontroller
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACS
Public
VILLASframework
VILLAScontroller
Commits
ec0471e2
Commit
ec0471e2
authored
6 years ago
by
Steffen Vogel
Committed by
Richard Marston
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
show name and type of simulator during startup of daemon
parent
fc41c239
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
villas/controller/controller.py
+1
-1
1 addition, 1 deletion
villas/controller/controller.py
villas/controller/simulator.py
+1
-0
1 addition, 0 deletions
villas/controller/simulator.py
with
2 additions
and
1 deletion
villas/controller/controller.py
+
1
−
1
View file @
ec0471e2
...
...
@@ -10,7 +10,7 @@ class Controller(kombu.mixins.ConsumerMixin):
self
.
connection
=
connection
for
sim
in
simulators
:
LOGGER
.
info
(
"
Adding simulator: %s
"
%
sim
.
uuid
)
LOGGER
.
info
(
"
Adding
%s
simulator: %s
"
,
sim
.
type
,
sim
.
uuid
)
sim
.
set_connection
(
connection
)
def
get_consumers
(
self
,
Consumer
,
channel
):
...
...
This diff is collapsed.
Click to expand it.
villas/controller/simulator.py
+
1
−
0
View file @
ec0471e2
...
...
@@ -14,6 +14,7 @@ class Simulator(object):
def
__init__
(
self
,
**
args
):
self
.
realm
=
args
[
'
realm
'
]
self
.
type
=
args
[
'
type
'
]
self
.
name
=
args
[
'
name
'
]
self
.
uuid
=
args
[
'
uuid
'
]
or
uuid
.
uuid4
()
self
.
started
=
time
.
time
()
...
...
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