|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectaim4.vehicle.VinRegistry
public class VinRegistry
The Vehicle Registry, the class that issues VIN to vehicles.
Method Summary | |
---|---|
static Road |
getDestRoadFromVIN(int vin)
Get the destination road from the VIN of a vehicle |
static SpawnPoint |
getSpawnPointFromVIN(int vin)
Get a spawn point from the VIN of a vehicle |
static VehicleSimView |
getVehicleFromVIN(int vin)
Given a VIN, get the vehicle with that VIN. |
static VehicleSpec |
getVehicleSpecFromVIN(int vin)
Given a VIN, get the vehicle specification with that VIN. |
static boolean |
isVINexist(int vin)
Whether or not the VIN has been issued. |
static int |
registerVehicle(VehicleSimView vehicle)
Put the vehicle to the registry. |
static boolean |
registerVehicleWithExistingVIN(VehicleSimView vehicle,
int vin)
Register the vehicle with an existing VIN. |
static void |
reset()
Reset the registry. |
static void |
unregisterVehicle(int vin)
Remove the vehicle from the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void reset()
public static int registerVehicle(VehicleSimView vehicle)
vehicle
- the vehicle
public static boolean registerVehicleWithExistingVIN(VehicleSimView vehicle, int vin)
vehicle
- the vehiclevin
- the given VIN
public static void unregisterVehicle(int vin)
vin
- the VIN of the vehiclepublic static boolean isVINexist(int vin)
vin
- the VIN of the vehicle
public static VehicleSimView getVehicleFromVIN(int vin)
vin
- the VIN of the desired vehicle
public static VehicleSpec getVehicleSpecFromVIN(int vin)
vin
- the VIN of the desired vehicle
public static SpawnPoint getSpawnPointFromVIN(int vin)
vin
- the VIN of the vehicle
public static Road getDestRoadFromVIN(int vin)
vin
- the VIN of the vehicle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |