Skip to content

Commit 44a3c9c

Browse files
committed
add a comment
1 parent c8f6489 commit 44a3c9c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

matsim/src/main/java/org/matsim/core/mobsim/qsim/qnetsimengine/AbstractQNetsimEngine.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ abstract class AbstractQNetsimEngine<A extends AbstractQNetsimEngineRunner> impl
121121

122122
qNetwork.initialize(this, sim.getAgentCounter(), sim.getSimTimer() );
123123
// yyyy this now looks like the initialize could be integrated into the constructor?! kai, jan'25
124+
// It is not possible to define these two in a simple way ...
125+
// ... since inside the initialize method there is a call qNetsimEnge.getQNetwork(), and that is not there until the ctor is completed
126+
// and the result is assigned. kai, jun'25
124127

125128
this.numOfThreads = sim.getScenario().getConfig().qsim().getNumberOfThreads();
126129
}

0 commit comments

Comments
 (0)