Aufgrund von Umarbeiten des s3 Storage wird es in GitLab, in nächster Zeit, mögliche Performance-Einbußen geben. Näheres dazu unter: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/43/show_ticket/6670

Commit 9d67cb19 authored by Jean Meurice's avatar Jean Meurice

EESimulation Time bug-fix

parent 3b66016e
Pipeline #372098 passed with stage
in 38 seconds
......@@ -8,7 +8,7 @@
<groupId>montisim</groupId>
<artifactId>commons</artifactId>
<version>2.0.10</version>
<version>2.0.11</version>
<properties>
......
......@@ -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
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment