public class OTPMain extends Object
Modifier and Type | Field and Description |
---|---|
GraphService |
graphService |
OTPServer |
otpServer |
Constructor and Description |
---|
OTPMain(CommandLineParameters params) |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.JsonNode |
loadJson(File file)
Open and parse the JSON file at the given path into a Jackson JSON tree.
|
static void |
main(String[] args)
ENTRY POINT: This is the main method that is called when running otp.jar from the command line.
|
void |
makeGraphService()
Create a cached GraphService that will be used by all OTP components to resolve router IDs to Graphs.
|
void |
run()
Making OTPMain a concrete class and placing this logic an instance method instead of embedding it in the static
main method makes it possible to build graphs from web services or scripts, not just from the command line.
|
public OTPServer otpServer
public GraphService graphService
public OTPMain(CommandLineParameters params)
public static void main(String[] args)
public void run()
public void makeGraphService()
public static com.fasterxml.jackson.databind.JsonNode loadJson(File file)
Copyright © 2018. All rights reserved.