Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
simulators
commons
Commits
9d67cb19
Commit
9d67cb19
authored
Dec 06, 2020
by
Jean Meurice
Browse files
EESimulation Time bug-fix
parent
3b66016e
Pipeline
#372098
passed with stage
in 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
9d67cb19
...
...
@@ -8,7 +8,7 @@
<groupId>
montisim
</groupId>
<artifactId>
commons
</artifactId>
<version>
2.0.1
0
</version>
<version>
2.0.1
1
</version>
<properties>
...
...
src/main/java/de/rwth/montisim/commons/eventsimulation/DiscreteEventSimulator.java
View file @
9d67cb19
...
...
@@ -17,11 +17,15 @@ public class DiscreteEventSimulator implements Updatable {
private
static
final
DiscreteEvent
.
DiscreteEventComparator
listComparator
=
new
DiscreteEvent
.
DiscreteEventComparator
();
/** point of time of simulation */
protected
Instant
simulationTime
=
Instant
.
EPOCH
;
protected
Instant
simulationTime
;
/** list of all discrete events */
protected
final
PriorityQueue
<
DiscreteEvent
>
eventList
=
new
PriorityQueue
<>(
listComparator
);
public
DiscreteEventSimulator
(
Instant
startTime
)
{
this
.
simulationTime
=
startTime
;
}
/**
* function that adds an event to be scheduled
*
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment