public static void addLocation(final Station station) { MyLocation system = getLocation(station.getSolarSystemID()); MyLocation location = new MyLocation( station.getStationID(), station.getStationName(), system.getSystemID(), system.getSystem(), system.getRegionID(), system.getRegion(), system.getSecurity()); StaticData.get().getLocations().put(location.getLocationID(), location); }
public static boolean isLocationOK(final long locationID, final MyAsset parentAsset) { MyLocation location = getLocation(locationID, parentAsset); return location != null && !location.isEmpty(); }