예제 #1
0
 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);
 }
예제 #2
0
 public static boolean isLocationOK(final long locationID, final MyAsset parentAsset) {
   MyLocation location = getLocation(locationID, parentAsset);
   return location != null && !location.isEmpty();
 }