Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go to PR version that allows Controller ctrl = ControllerUtils.create… #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

<!-- Options: stable build based on pull requests (e.g. 16.0-PR2778), weekly (e.g. 15.0-2023w01) or official (e.g. 14.0) releases -->
<!-- <version>16.0-PR2509</version>-->
<version>2024.0</version>
<!-- <version>2024.0</version>-->
<!-- <version>2025.0-2024w41</version>-->
<version>2025.0-PR3511</version>
<!-- <version>2025.0-SNAPSHOT</version>-->
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
13 changes: 7 additions & 6 deletions src/main/java/org/matsim/project/RunMatsim.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
import org.matsim.api.core.v01.Scenario;
import org.matsim.core.config.Config;
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.Controler;
import org.matsim.core.controler.Controller;
import org.matsim.core.controler.ControllerUtils;
import org.matsim.core.controler.OutputDirectoryHierarchy.OverwriteFileSetting;
import org.matsim.core.scenario.ScenarioUtils;

Expand Down Expand Up @@ -52,17 +53,17 @@ public static void main(String[] args) {

// ---

Controler controler = new Controler( scenario ) ;
Controller controller = ControllerUtils.createController( scenario );

// possibly modify controler here
// possibly modify controller here

// controler.addOverridingModule( new OTFVisLiveModule() ) ;
// controller.addOverridingModule( new OTFVisLiveModule() ) ;

// controler.addOverridingModule( new SimWrapperModule() );
// controller.addOverridingModule( new SimWrapperModule() );

// ---

controler.run();
controller.run();
}

}
Loading