Sets the center of the bow depending on the direction kept by the bow
Notes:
If the direction is South-West or East-North the center
of the bow is the same as the normal coordinates of the tile.
setColour(int) - Method in class carsproject.map.Roads.TrafficLight
Sets the current state of the traffic light.
setCurvatureAngleActual(double) - Method in class carsproject.vehicles.AbstrModelVehicle
setCurvatureAngleActual(double) - Method in interface carsproject.vehicles.IModelVehicle
Set curvature radius, in radians.
setCurvatureAngleActualInDegrees(double) - Method in class carsproject.vehicles.AbstrModelVehicle
setCurvatureAngleToReach(double) - Method in class carsproject.vehicles.AbstrModelVehicle
setCurvatureAngleToReach(double) - Method in interface carsproject.vehicles.IModelVehicle
Set curvature radius to be reach from the vehicle, in radians.
setFree(String) - Method in class carsproject.map.Roads.Cross
Set the tile as free (not occupied).
setGreenTime(Integer) - Method in class carsproject.map.Roads.TrafficLight
Sets the time given to the traffic light for its green time's state.
setMaxX(double) - Static method in class carsproject.general.Coordinates
Set maximum value for coordinate X.
setMaxY(double) - Static method in class carsproject.general.Coordinates
Set maximum value for coordinate Y.
setName(String) - Method in class carsproject.vehicles.AbstrModelVehicle
Set vehicle name.
setName(String) - Method in interface carsproject.vehicles.IModelVehicle
Set vehicle's name, it must be unique.
setOccupied(String) - Method in class carsproject.map.Roads.Cross
Set the tile as occupied.
setPixelsToGo(Double) - Method in class carsproject.vehicles.AbstrModelVehicle
setPixelsToGo(Double) - Method in interface carsproject.vehicles.IModelVehicle
Set pixels that car can move in that fraction of time.
setPosition(Coordinates) - Method in class carsproject.map.AbstractTile
setPosition(Integer, Integer) - Method in class carsproject.map.AbstractTile
setPosition(Coordinates) - Method in interface carsproject.map.ITile
Sets the position, on the map, of the tile under consideration.
setPosition(Integer, Integer) - Method in interface carsproject.map.ITile
Sets the position, on the map, of the tile under consideration.
setPosition(Coordinates) - Method in class carsproject.vehicles.AbstrModelVehicle
setPosition(Integer, Integer) - Method in class carsproject.vehicles.AbstrModelVehicle
setPosition(Coordinates) - Method in interface carsproject.vehicles.IModelVehicle
Set vehicle coordinates.
setPosition(Integer, Integer) - Method in interface carsproject.vehicles.IModelVehicle
Set vehicle coordinates.
setPriority(int) - Method in class carsproject.map.Roads.TrafficLight
Sets the turn of the traffic light inside the cross in which is
involved.
setSpeed(Double) - Method in class carsproject.vehicles.AbstrModelVehicle
setSpeed(Double) - Method in interface carsproject.vehicles.IModelVehicle
Set vehicle speed, in Km/h, it could be negative, if doing reverse.
setSpeedToReach(Double) - Method in class carsproject.vehicles.AbstrModelVehicle
setSpeedToReach(Double) - Method in interface carsproject.vehicles.IModelVehicle
Set speed to be reached at the end of its actual movement.
setSprite(Image) - Method in class carsproject.map.AbstractTile
setSprite(Image) - Method in interface carsproject.map.ITile
Sets the sprite used to portray the tile.
setSprite(Image, int) - Method in class carsproject.map.Roads.TrafficLight
Sets a custom image for the related colour.
setSprite(Image) - Method in class carsproject.vehicles.AbstrModelVehicle
setSprite(Image) - Method in interface carsproject.vehicles.IModelVehicle
Set sprite image of vehicle.
setThread(IThreadVehicle) - Method in class carsproject.vehicles.AbstrModelVehicle
setThread(IThreadVehicle) - Method in interface carsproject.vehicles.IModelVehicle
Set reference to thread updating this vehicle.
setX(int) - Method in class carsproject.general.Coordinates
Set Integer value of coordinate X.
setX(double) - Method in class carsproject.general.Coordinates
Set Double value of coordinate X.
setY(int) - Method in class carsproject.general.Coordinates
Set Integer value to coordinate Y.
setY(double) - Method in class carsproject.general.Coordinates
Set Double value to coordinate Y.
SpawnController - Class in carsproject.map
Controller class of the view panel SpawnPanel.
spawnVehicles(String, String, Integer, boolean) - Method in class carsproject.map.SpawnController
This method will spawn one vehicle or will start a timer of spawn reading fields
of the panel stored in SpawnController.
splitImage(Image, int, int) - Static method in class carsproject.view.ImageTool
Splits an image into a number of rows and columns.
STANDARD_SPEED - Static variable in class carsproject.vehicles.AbstrModelVehicle
Usual speed of the vehicle.
start() - Method in class carsproject.vehicles.AbstrModelVehicle
This method must be used to start the thread.
start() - Method in class carsproject.vehicles.AbstrThreadVehicle
This is an extends-thread class, so this is needed to start the thread.
start() - Method in interface carsproject.vehicles.IModelVehicle
Start a new thread that update vehicle every
IThreadVehicle.TIME_SLICE
fraction of second.
start() - Method in interface carsproject.vehicles.IThreadVehicle
This is a thread class, so it need to be run to work.
start() - Method in class carsproject.vehicles.ModelCar
Start a new thread that update vehicle every IThreadVehicle.TIME_SLICE
fraction of second.
start() - Method in class carsproject.vehicles.ThreadCar
startAllVehicles() - Method in class carsproject.vehicles.Garage
This method start all vehicles' thread, if they aren't already running.
startSimulation() - Method in class carsproject.map.MapManager
Starts the simulation if it hasn't been started yet, otherwise it does
anything, so it can't mess the current simulation.
startVehicle(String) - Method in class carsproject.vehicles.Garage
This method start a vehicle's thread, if it isn't already running.
STOP_E - Static variable in class carsproject.view.MapDrawer
STOP_N - Static variable in class carsproject.view.MapDrawer
STOP_S - Static variable in class carsproject.view.MapDrawer
STOP_W - Static variable in class carsproject.view.MapDrawer
stopAllTimers() - Method in class carsproject.map.SpawnController
Stop all running timers of spawn.
stopAllVehicles() - Method in class carsproject.vehicles.Garage
Stop/pause all vehicle's threads running.
stopVehicle(String) - Method in class carsproject.vehicles.Garage
This method stop a running vehicle's thread, if it is.
A B C D E F G I J K L M N O P R S T V W Y