public class VehiclesHolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONSOLE_CLASS |
static java.lang.String |
CONSOLE_XML |
Constructor and Description |
---|
VehiclesHolder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addOpenConsole(java.lang.String vehicleId,
java.lang.String consoleID,
ConsoleLayout console) |
static boolean |
addVehicle(VehicleType vehicle) |
static boolean |
existsOpenConsole(java.lang.String vehicleId,
java.lang.String consoleId) |
static ConsoleLayout |
getOpenConsole(java.lang.String vehicleId,
java.lang.String consoleId) |
static VehicleType |
getVehicleById(java.lang.String id) |
static java.lang.String[] |
getVehiclesArray() |
static java.util.LinkedHashMap<java.lang.String,VehicleType> |
getVehiclesList() |
static java.util.List<VehicleType> |
getVehicleWithImc() |
static VehicleType |
getVehicleWithImc(ImcId16 imcId) |
static java.util.List<VehicleType> |
getVehicleWithProtocol(java.lang.String protocol) |
boolean |
isOnlyOneVehicleAvailable() |
static boolean |
loadVehicles() |
static boolean |
removeOpenConsole(java.lang.String vehicleId,
java.lang.String consoleId) |
static void |
showConsole(PlanType plan,
MissionType mission,
java.awt.Component callerComponent) |
static void |
showConsole(VehicleType vehicle,
java.awt.Component callerComponent) |
static void |
showConsole(VehicleType vehicle,
MissionType mission,
java.awt.Component callerComponent) |
static int |
size() |
public static java.lang.String CONSOLE_CLASS
public static java.lang.String CONSOLE_XML
public static boolean addVehicle(VehicleType vehicle)
public static int size()
public static java.util.LinkedHashMap<java.lang.String,VehicleType> getVehiclesList()
public static java.lang.String[] getVehiclesArray()
public static VehicleType getVehicleById(java.lang.String id)
id
- public static java.util.List<VehicleType> getVehicleWithProtocol(java.lang.String protocol)
protocol
- public static java.util.List<VehicleType> getVehicleWithImc()
public static VehicleType getVehicleWithImc(ImcId16 imcId)
public static boolean loadVehicles()
public static boolean addOpenConsole(java.lang.String vehicleId, java.lang.String consoleID, ConsoleLayout console)
vehicleId
- console
- public static boolean removeOpenConsole(java.lang.String vehicleId, java.lang.String consoleId)
vehicleId
- consoleId
- public static boolean existsOpenConsole(java.lang.String vehicleId, java.lang.String consoleId)
vehicleId
- consoleId
- public static ConsoleLayout getOpenConsole(java.lang.String vehicleId, java.lang.String consoleId)
vehicleId
- consoleId
- public static void showConsole(VehicleType vehicle, java.awt.Component callerComponent)
vehicle
- callerComponent
- #showConsole(VehicleType, PlanType, MissionType, Component)}
public static void showConsole(PlanType plan, MissionType mission, java.awt.Component callerComponent)
plan
- mission
- callerComponent
- #showConsole(VehicleType, PlanType, MissionType, Component)}
public static void showConsole(VehicleType vehicle, MissionType mission, java.awt.Component callerComponent)
public boolean isOnlyOneVehicleAvailable()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.