public class Debug extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
CAN_CHANGE_LANE
Whether or not the vehicle is allowed to change lanes
|
static BasicMap |
currentMap
A global variable referring to the global map.
|
static boolean |
IS_EXPECTED_IM_REPLY_TIME_CONSIDERED
Whether or not the driver considers the expected time the IM takes
to reply a request.
|
static boolean |
IS_PRINT_RANDOM_SEED
Whether or not to print the random seed.
|
static boolean |
PRINT_SIMULATOR_STAGE
Whether or not the simulator prints out the stage of the simulation in
the simulation's main loop.
|
static boolean |
SHOW_ARRIVAL_TIME
Whether or not the simulator shows the (expected) arrival time of the
request (if any) of the vehicles on screen.
|
static boolean |
SHOW_PROXY_VEHICLE_DEBUG_MSG
Whether or not the proxy vehicle shows the debug message.
|
static boolean |
SHOW_PROXY_VEHICLE_PVUPDATE_MSG
Whether or not to show the PVUpdate message.
|
static boolean |
SHOW_REMAINING_ARRIVAL_TIME
Whether or not the simulator shows the (expected) arrival time of the
request (if any) of the vehicles minus the current time on screen.
|
static boolean |
SHOW_VEHICLE_COLOR_BY_MSG_STATE
Whether to show the vehicle according to its messaging state.
|
static ViewerDebugView |
viewer
A global variable referring to the GUI object.
|
Modifier and Type | Method and Description |
---|---|
static void |
addLongTermDebugPoint(DebugPoint dp)
Add a new long-term debug point.
|
static void |
addShortTermDebugPoint(DebugPoint dp)
Add a new short-term debug point.
|
static void |
clearLongTermDebugPoints()
Clear out all the long-term debug points.
|
static void |
clearShortTermDebugPoints()
Clear out all the short-term debug points.
|
static List<DebugPoint> |
getLongTermDebugPoints()
Get the long-term debugging points.
|
static List<DebugPoint> |
getShortTermDebugPoints()
Get the short-term debugging points
|
static int |
getTargetIMid()
Get the target intersection manager's ID
|
static int |
getTargetVIN()
Get the target vehicle's ID
|
static Color |
getVehicleColor(int vin)
Get the color of a vehicle.
|
static boolean |
isPrintArrivalEstimationParameters(int vin)
Whether or not the simulator print the parameters for arrival estimation
|
static boolean |
isPrintDriverStateOfVIN(int vin)
Whether or not the simulator print the state of the driver of the target
vehicle
|
static boolean |
isPrintIMInboxMessageOfVIN(int vin)
Whether or not the simulator print the messages received by IM of the
target vehicle.
|
static boolean |
isPrintIMOutboxMessageOfVIN(int vin)
Whether or not the simulator print the messages sent by IM of the target
vehicle.
|
static boolean |
isPrintReservationAcceptanceCheck(int vin)
Whether or not the simulator print the parameters for reservation
acceptence check
|
static boolean |
isPrintVehicleHighLevelControlOfVIN(int vin)
Whether or not the simulator print the high level control of
the target vehicle.
|
static boolean |
isPrintVehicleInboxMessageOfVIN(int vin)
Whether or not the simulator print the messages received by the target
vehicle.
|
static boolean |
isPrintVehicleOutboxMessageOfVIN(int vin)
Whether or not the simulator print the messages sent by the target vehicle.
|
static boolean |
isPrintVehicleStateOfVIN(int vin)
Whether or not the simulator print the state of the target vehicle.
|
static boolean |
isTargetVIN(int vin)
Whether or not the simulator shows the vin of the vehicles on screen.
|
static void |
removeTargetIMid()
Remove the target intersection manager's ID
|
static void |
removeTargetVIN()
Remove the target vehicle's ID
|
static void |
removeVehicleColor(int vin)
Remove the color assignment of a vehicle.
|
static void |
setTargetIMid(int vin)
Set the target intersection manager's ID
|
static void |
setTargetVIN(int vin)
Set the target vehicle's ID
|
static void |
setVehicleColor(int vin,
Color color)
Set the color of a vehicle.
|
public static BasicMap currentMap
public static ViewerDebugView viewer
public static final boolean CAN_CHANGE_LANE
public static final boolean IS_EXPECTED_IM_REPLY_TIME_CONSIDERED
public static final boolean SHOW_ARRIVAL_TIME
public static final boolean SHOW_REMAINING_ARRIVAL_TIME
public static final boolean PRINT_SIMULATOR_STAGE
public static final boolean SHOW_PROXY_VEHICLE_DEBUG_MSG
public static final boolean SHOW_PROXY_VEHICLE_PVUPDATE_MSG
public static final boolean IS_PRINT_RANDOM_SEED
public static boolean SHOW_VEHICLE_COLOR_BY_MSG_STATE
public static boolean isTargetVIN(int vin)
public static int getTargetVIN()
public static void setTargetVIN(int vin)
public static void removeTargetVIN()
public static int getTargetIMid()
public static void setTargetIMid(int vin)
public static void removeTargetIMid()
public static boolean isPrintDriverStateOfVIN(int vin)
public static boolean isPrintVehicleStateOfVIN(int vin)
public static boolean isPrintIMInboxMessageOfVIN(int vin)
public static boolean isPrintIMOutboxMessageOfVIN(int vin)
public static boolean isPrintVehicleInboxMessageOfVIN(int vin)
public static boolean isPrintVehicleOutboxMessageOfVIN(int vin)
public static boolean isPrintArrivalEstimationParameters(int vin)
public static boolean isPrintReservationAcceptanceCheck(int vin)
public static boolean isPrintVehicleHighLevelControlOfVIN(int vin)
public static List<DebugPoint> getLongTermDebugPoints()
public static void clearLongTermDebugPoints()
public static void addLongTermDebugPoint(DebugPoint dp)
dp
- a new long-term debug point.public static List<DebugPoint> getShortTermDebugPoints()
public static void clearShortTermDebugPoints()
public static void addShortTermDebugPoint(DebugPoint dp)
dp
- a new short-term debug pointpublic static Color getVehicleColor(int vin)
vin
- the VIN number of the vehiclepublic static void setVehicleColor(int vin, Color color)
vin
- the VIN number of the vehiclecolor
- the color of the vehiclepublic static void removeVehicleColor(int vin)
vin
- the VIN number of the vehicleCopyright © 2013. All rights reserved.