Skip to content

Commit

Permalink
Update Doc Core and CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesBaudinet committed Jun 5, 2020
1 parent 05fe884 commit 021e5f7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cli/commands/RentBicycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public static void main(String[] args) {
System.out.println("You cannot rent a bicycle");
System.out.println("The station id or/and user id do not exist");
}
// TODO: Study parameters
}
}

Expand Down
10 changes: 10 additions & 0 deletions src/cli/commands/RunTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ public static boolean hasGoodInput(String[] args) {
}
}

/**
* This method reads text file
* @param fileName: name of the file we want to read
* @return: string that wad contained in the fileName
*/
public static List<String> readTextFile(String fileName) {

List<String> returnValue = new ArrayList<>();
Expand Down Expand Up @@ -145,6 +150,11 @@ public static List<String> readTextFile(String fileName) {

}

/**
* This method writes in a text file
* @param fileName: name of the file we want to read
* @param s: what we want to write in the file
*/
public static void writeTextFile(String fileName, String s) {
FileWriter output = null;
try {
Expand Down
4 changes: 4 additions & 0 deletions src/cli/commands/SortStation.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ public static boolean hasGoodInput(String[] args) {
}


/**
* Strategy to order station by the most used
* @param args: system we want to analyze
*/
private static void mostUsedStationStrategy(String[] args) {
System.out.println("The sortStation command without policies (will show the most used policy)");
List<MyVelibSystem> systems = CoreApp.getSystems();
Expand Down

0 comments on commit 021e5f7

Please sign in to comment.