-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrontendInterface.java
More file actions
40 lines (35 loc) · 1.01 KB
/
FrontendInterface.java
File metadata and controls
40 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public interface FrontendInterface {
/**
* A constructor that accepts a reference to backend and a java.util.Scanner instance to read user
* input.
*
* @param backendRef
* @param scanner
*/
// public void constructor(T backendRef, Scanner scanner); //
/**
* Initiates the main command loop for user. Asks for command from user.
*/
public void start() throws FileNotFoundException;
/**
* Returns a list of the vehicles with the lowest mileage in the given data set.
*
* @return a list of vehicles with the lowest mileage
*/
public void lowestMileage();
/**
* Returns a list of the vehicles at or above a threshold specified by the user after calling the command
* set
*
* @return a list of vehicles at or above the threshold
*/
public void mileageThreshold();
/**
* Terminates the main command loop for user.
*/
public void exit();
public void readDataFile();
}