01: /*
02: * <copyright>
03: *
04: * Copyright 1999-2004 Honeywell Inc
05: * under sponsorship of the Defense Advanced Research Projects
06: * Agency (DARPA).
07: *
08: * You can redistribute this software and/or modify it under the
09: * terms of the Cougaar Open Source License as published on the
10: * Cougaar Open Source Website (www.cougaar.org).
11: *
12: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
13: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
14: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
15: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
16: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23: *
24: * </copyright>
25: */
26:
27: package org.cougaar.logistics.plugin.packer;
28:
29: import org.cougaar.glm.ldm.GLMFactory;
30: import org.cougaar.glm.ldm.plan.GeolocLocation;
31: import org.cougaar.glm.ldm.plan.NewGeolocLocation;
32: import org.cougaar.planning.ldm.measure.Latitude;
33: import org.cougaar.planning.ldm.measure.Longitude;
34:
35: /**
36: * An abstract class with some static methods that make it easier
37: * for us to work with Geolocs.
38: * This code mostly based on code written by LCG.
39: */
40: public abstract class Geolocs {
41: public static GeolocLocation abuDhabi() {
42: NewGeolocLocation geoloc = GLMFactory.newGeolocLocation();
43: geoloc.setName("Abu Dahbi, UARE");
44: geoloc.setCountryStateCode("Abu Dahbi, UARE");
45: geoloc.setCountryStateName("Abu Dahbi, UARE");
46: geoloc.setGeolocCode("AAVW");
47: geoloc.setIcaoCode("AAVW");
48: geoloc.setLatitude(Latitude.newLatitude("24.4331"));
49: geoloc.setLongitude(Longitude.newLongitude("54.6489"));
50: geoloc.setInstallationTypeCode("MAP");
51: return geoloc;
52: }
53:
54: public static GeolocLocation blueGrass() {
55: NewGeolocLocation geoloc = GLMFactory.newGeolocLocation();
56: geoloc.setName("Blue Grass Depot, KY");
57: geoloc.setCountryStateCode("Blue Grass Depot, KY");
58: geoloc.setCountryStateName("Blue Grass Depot, KY");
59: geoloc.setGeolocCode("BVJS");
60: geoloc.setIcaoCode("BVJS");
61: geoloc.setLatitude(Latitude.newLatitude("37.7"));
62: geoloc.setLongitude(Longitude.newLongitude("-84.2167"));
63: geoloc.setInstallationTypeCode("AMO");
64: return geoloc;
65: }
66:
67: public static GeolocLocation asmara() {
68: NewGeolocLocation geoloc = GLMFactory.newGeolocLocation();
69: geoloc.setName("ASMARA");
70: geoloc.setCountryStateCode("ER");
71: geoloc.setCountryStateName("ERITREA");
72: geoloc.setGeolocCode("ZNKY");
73: geoloc.setIcaoCode("ZNKY");
74: geoloc.setLatitude(Latitude.newLatitude("15.2906"));
75: geoloc.setLongitude(Longitude.newLongitude("38.9102"));
76: geoloc.setInstallationTypeCode("JAP");
77: return geoloc;
78: }
79:
80: public static GeolocLocation sanliurfa() {
81: NewGeolocLocation geoloc = GLMFactory.newGeolocLocation();
82: geoloc.setName("SANLIURFA");
83: geoloc.setCountryStateCode("TU");
84: geoloc.setCountryStateName("TURKEY");
85: geoloc.setGeolocCode("UWCP");
86: geoloc.setIcaoCode("UWCP");
87: geoloc.setLatitude(Latitude.newLatitude("37.0994"));
88: geoloc.setLongitude(Longitude.newLongitude("38.8550"));
89: geoloc.setInstallationTypeCode("AFD");
90: return geoloc;
91: }
92: }
|