public class VinRegistry extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void reset()
public static int registerVehicle(VehicleSimView vehicle)
vehicle
- the vehiclepublic static boolean registerVehicleWithExistingVIN(VehicleSimView vehicle, int vin)
vehicle
- the vehiclevin
- the given VINpublic static void unregisterVehicle(int vin)
vin
- the VIN of the vehiclepublic static boolean isVINexist(int vin)
vin
- the VIN of the vehiclepublic static VehicleSimView getVehicleFromVIN(int vin)
vin
- the VIN of the desired vehiclepublic static VehicleSpec getVehicleSpecFromVIN(int vin)
vin
- the VIN of the desired vehiclepublic static SpawnPoint getSpawnPointFromVIN(int vin)
vin
- the VIN of the vehiclepublic static Road getDestRoadFromVIN(int vin)
vin
- the VIN of the vehicleCopyright © 2013. All rights reserved.