start description
start from file
steps
- enter into the project directory
- run: mvn install
- run: mvn package
- run: cd target
- java -jar test_train-1.0-SNAPSHOT.jar file /Users/hzhu2/Documents/workspace/test_train/input.txt
java parameters
- file --- the IOType name, will decide which ways to read the input data
- /Users/hzhu2/Documents/workspace/test_train/input.txt --- input file url (file should only contains one line graph info)
start from java params
steps
- enter into the project directory
- run: mvn install
- run: mvn package
- run: cd target
- run: java -jar test_train-1.0-SNAPSHOT.jar argString AB5,BC4,CD8,DC8,DE6,AD5,CE2,EB3,AE7
java parameters
- argString --- the IOType name, will decide which ways to read the input data
- AB5,BC4,CD8,DC8,DE6,AD5,CE2,EB3,AE7 --- input data (notice: no any space in the string)
design description
- Use TrainSchedule to describe the node and path (and can generate from file or string according to java args)
- Use TrainPlan to describe the questions needed to calculate
- Use Suggestion to describe the answers
- Use Calculator to do the operation (input TrainPlan and output Suggestion)
- Use View to show the suggestion to customer (can expand to several different ways)