Package | Description |
---|---|
input | |
objects |
Modifier and Type | Method and Description |
---|---|
static Vehicle |
CarInputReader.addVehicle(java.util.ArrayList<Vehicle> vehiclesList,
VehicleDataPoint v)
Adds a vehicle to the list, using a binary insertion.
|
static int |
CarInputReader.searchVehiclesIndex(java.util.ArrayList<Vehicle> vehiclesList,
VehicleDataPoint v)
Finds the index of a Vehicle using a binary search.
|
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<VehicleDataPoint> |
Vehicle.dp |
Modifier and Type | Method and Description |
---|---|
VehicleDataPoint |
Vehicle.getDatapoint() |
Modifier and Type | Method and Description |
---|---|
void |
Vehicle.addData(VehicleDataPoint v) |
int |
Vehicle.compareTo(VehicleDataPoint v) |
Constructor and Description |
---|
Vehicle(VehicleDataPoint v)
Constructs a Vehicle from a VehicleDataPoint, copying its attributes.
|