Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Container registry
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
monticore
EmbeddedMontiArc
simulators
simulation
Commits
124a6fa2
Commit
124a6fa2
authored
Oct 2, 2020
by
Hengwen Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Fix a small bug that task runners are not correctly registered
parent
eac3bfb7
No related branches found
No related tags found
1 merge request
!34
Vehicle task
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
simulator/src/main/java/de/rwth/montisim/simulation/simulator/Simulator.java
+5
-1
5 additions, 1 deletion
...java/de/rwth/montisim/simulation/simulator/Simulator.java
with
5 additions
and
1 deletion
simulator/src/main/java/de/rwth/montisim/simulation/simulator/Simulator.java
+
5
−
1
View file @
124a6fa2
...
@@ -169,7 +169,7 @@ public class Simulator implements ISimulator, Updatable {
...
@@ -169,7 +169,7 @@ public class Simulator implements ISimulator, Updatable {
@Override
@Override
public
void
registerTaskRunner
(
SimulationObject
obj
,
TaskRunner
runner
)
{
public
void
registerTaskRunner
(
SimulationObject
obj
,
TaskRunner
runner
)
{
SimulatorState
state
=
(
SimulatorState
)
obj
.
state
;
SimulatorState
state
=
(
SimulatorState
)
obj
.
state
;
state
.
updatable
Id
=
taskRunners
.
size
();
state
.
taskRunner
Id
=
taskRunners
.
size
();
taskRunners
.
add
(
runner
);
taskRunners
.
add
(
runner
);
}
}
...
@@ -183,4 +183,8 @@ public class Simulator implements ISimulator, Updatable {
...
@@ -183,4 +183,8 @@ public class Simulator implements ISimulator, Updatable {
System
.
exit
(-
1
);
System
.
exit
(-
1
);
}
}
}
}
public
Vector
<
Updatable
>
getUpdatables
()
{
return
updatables
;
}
}
}
\ No newline at end of file
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