Package org.goplanit.io.project
Class PlanItProject
- java.lang.Object
-
- org.goplanit.project.CustomPlanItProject
-
- org.goplanit.io.project.PlanItProject
-
public class PlanItProject extends CustomPlanItProject
PLANit project which is nothing more than a CustomPlanItProject without any custom configuration pre-embedded. So, it allows maximum flexibility for users. It does assume the PLANit default input format and registers the PLANit default output formatter automatically- Author:
- markr, gman6028
-
-
Field Summary
-
Fields inherited from class org.goplanit.project.CustomPlanItProject
assignmentBuilders, demands, id, inputBuilderListener, inputs, odPathSets, outputFormatters, physicalNetworks, projectToken, routedServices, serviceNetworks, zonings
-
-
Constructor Summary
Constructors Constructor Description PlanItProject(String projectPath)
Constructor taking project path where to find all project input files
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrafficAssignmentConfigurator<? extends TrafficAssignment>
createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)
Create and register a traffic assignment instance of a given typePlanItOutputFormatter
getDefaultOutputFormatter()
Access to the default output formatter-
Methods inherited from class org.goplanit.project.CustomPlanItProject
createAndRegisterDemands, createAndRegisterInfrastructureNetwork, createAndRegisterInitialLinkSegmentCost, createAndRegisterInitialLinkSegmentCost, createAndRegisterMacroscopicNetwork, createAndRegisterOdPathSets, createAndRegisterOutputFormatter, createAndRegisterRoutedServices, createAndRegisterServiceNetwork, createAndRegisterZoning, executeAllTrafficAssignments, executeTrafficAssignment, getInitialLinkSegmentCost, getOutputFormatter, registerEligibleTrafficComponentClass
-
-
-
-
Constructor Detail
-
PlanItProject
public PlanItProject(String projectPath) throws PlanItException
Constructor taking project path where to find all project input files- Parameters:
projectPath
- the project path to source input files from- Throws:
PlanItException
- thrown if error
-
-
Method Detail
-
createAndRegisterTrafficAssignment
public TrafficAssignmentConfigurator<? extends TrafficAssignment> createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork) throws PlanItException
Create and register a traffic assignment instance of a given type- Overrides:
createAndRegisterTrafficAssignment
in classCustomPlanItProject
- Parameters:
trafficAssignmentType
- the class name of the traffic assignment type object to be createdtheDemands
- the demandstheZoning
- the zoningtheNetwork
- the network- Returns:
- the traffic assignment configurator object
- Throws:
PlanItException
- thrown if there is an error
-
getDefaultOutputFormatter
public PlanItOutputFormatter getDefaultOutputFormatter()
Access to the default output formatter- Returns:
- PLANit output formatter
-
-