|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VehicleInfo
Collection of useful information about a vehicle.
A get-prefix indicates that the return value of the method may change over time.
| Method Summary | |
|---|---|
int |
capacity()
The capacity of the vehicle |
int |
costPerKm()
The cost/km of the vehicle |
Topology.City |
getCurrentCity()
The current city of the vehicle |
TaskSet |
getCurrentTasks()
The tasks currently held by vehicle, i.e. tasks that were picked up but not delivered. |
double |
getDistance()
The total distance (in km) traveled by the vehicle |
long |
getDistanceUnits()
The total distance (in units) traveled by the vehicle. |
long |
getReward()
The sum of rewards for all delivered tasks |
Topology.City |
homeCity()
The starting location of the vehicle |
int |
id()
A unique id for each vehicle of the same agent/company, in the range [0,numVehiclesOfAgent). |
java.lang.String |
name()
The name of the vehicle |
double |
speed()
The speed of the vehicle |
| Method Detail |
|---|
int id()
java.lang.String name()
int capacity()
Topology.City homeCity()
double speed()
int costPerKm()
Topology.City getCurrentCity()
TaskSet getCurrentTasks()
long getReward()
long getDistanceUnits()
Measuresdouble getDistance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||