001: /*
002: * <copyright>
003: *
004: * Copyright 2001-2004 BBNT Solutions, LLC
005: * under sponsorship of the Defense Advanced Research Projects
006: * Agency (DARPA).
007: *
008: * You can redistribute this software and/or modify it under the
009: * terms of the Cougaar Open Source License as published on the
010: * Cougaar Open Source Website (www.cougaar.org).
011: *
012: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
013: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
014: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
015: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
016: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
017: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
018: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
019: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
020: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
021: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
022: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
023: *
024: * </copyright>
025: */
026: package org.cougaar.logistics.plugin.trans;
027:
028: import org.cougaar.core.mts.MessageAddress;
029: import org.cougaar.planning.ldm.plan.Role;
030:
031: /**
032: * Class to hold constants for the GLMTrans tree.
033: * Values should probably only be included here if they are public static final
034: *
035: */
036: public class GLMTransConst {
037:
038: /** GENERIC **/
039:
040: /** GLOBAL MODE **/
041: // MODE prep
042: public static final String MODE = "M";
043: // MODE prep strings
044: public static final String AIR = "AIR";
045: public static final String SEA = "SEA";
046: public static final String GROUND = "GROUND";
047: public static final String NULL = "NO TRANSPORT";
048:
049: public static final String LOW_FIDELITY = "LOW_FIDELITY";
050: public static final String LOW_FIDELITY_PROTOTYPE = "Level2Prototype";
051: public static final String PREREQ_TASK = "PREREQ_TASK";
052:
053: /** GLOBAL SEA **/
054: // TASKEDTO prep
055: public static final String TASKEDTO = "T";
056: // TASKEDTO prep strings
057: public static final String MISSION = "MISSION";
058: public static final String THEATER = "THEATER";
059: public static final String THEATERPORT = "THEATERPORT";
060: public static final String PORT = "PORT"; // may go away?
061: public static final String POE = "POE";
062: public static final String CONUSPORT = "CONUSPORT";
063: public static final String SHIP = "SHIP";
064:
065: public static final String VISHNU_DATA = "VISHNU_DATA";
066: public static final String SEAROUTE_DISTANCE = "SEAROUTE_DISTANCE";
067: public static final String SEAROUTE = "SEAROUTE";
068: public static final String READYAT = "READYAT";
069:
070: // Ship types
071: public static final String AMMO_SHIP = "Ammo";
072: public static final String FSS_RORO_COMBO_SHIP = "FSS|RORO|Combo";
073: public static final String LMSR_RORO_COMBO_SHIP = "LMSR|RORO|Combo";
074: public static final String MPS_RORO_COMBO_SHIP = "MPS|RORO|Combo";
075: public static final String RORO_SHIP = "RORO";
076: public static final String BREAKBULK_CONTAINER_SHIP = "BreakBulk|Container";
077: public static final String BREAKBULK_SHIP = "BreakBulk";
078: public static final String CONTAINER_SHIP = "Container";
079: public static final String LASH_SHIP = "LASH";
080:
081: // Preposition for port time estimation
082: public static final String PORT_DUR = "PORT_DUR";
083: public static final long DEFAULT_PORT_DUR = (long) (60 * 60 * 24 * 2.5); // millis
084:
085: public static final String PACK_FAILURE = "Packing Failure";
086:
087: //* Preposition for POD offload time hack
088: public static final String POD_OFFLOAD_DUR = "POD_OFFLOAD_DUR";
089:
090: // Preposition for prepo integrity support
091: public static final String TOTAL_PREPO_TASKS = "TOTAL_PREPO_TASKS";
092:
093: // Load order
094: public static final String MANIFEST = "MANIFEST";
095: public static final String MANIFESTDATE = "MANIFESTDATE";
096:
097: // Prepositions for unit integrity support
098: public static final String UNIT_DESCRIPTION = "unit";
099:
100: //* Prepositions for unit integrity support
101: public static final String TOTAL_UNIT_WEIGHT = "w";
102: public static final String TOTAL_UNIT_AREA = "a";
103: public static final String TOTAL_UNIT_VOLUME = "v";
104: public static final String TOTAL_UNIT_CONTAINERS = "c";
105:
106: // CONUSGround needs to be the only of whatever role we assign to it/it to
107: public static final Role CONUSGROUND = Role
108: .getRole("CONUSGroundTransportationProvider");
109: public static final MessageAddress GROUND_CLUSTER_ID = MessageAddress
110: .getMessageAddress("GlobalGround");
111: public static final MessageAddress THEATER_CLUSTER_ID = MessageAddress
112: .getMessageAddress("JMCC");
113:
114: public static final String AIRCREW_READY = "AIRCREW_READY";
115: public static final String AIRCREW_JOB = "AIRCREW_JOB";
116: public static final String IMPLIED = "IMPLIED"; // hint to gui to potentially ignore this task or itinerary leg
117: public static final String IMPLIED_LOAD = "IMPLIED_LOAD"; // hint to gui to potentially ignore this task or itinerary leg
118: public static final String IMPLIED_UNLOAD = "IMPLIED_UNLOAD"; // hint to gui to potentially ignore this task or itinerary leg
119:
120: public static final String PILOT = "PILOT";
121: public static final String COPILOT = "CO-PILOT";
122: public static final String FLIGHT_ENGINEER = "FLIGHT ENGINEER";
123: public static final String BOOM_OPERATOR = "BOOM OPERATOR";
124:
125: public static final Role AMMUNITION_SEA_PORT = Role
126: .getRole("AmmunitionSeaPort");
127: public static final Role AMMO_SEA_PORT = Role
128: .getRole("AmmoSeaPort");
129: public static final Role GENERIC_SEA_PORT = Role
130: .getRole("GenericSeaPort");
131:
132: // CONUSGroundPredictor ---
133: // The CODES are for decoding the returning AspectValues into the given
134: // strings since there do not exist the appropriate AspectTypes for strings.
135:
136: public static final String RAIL = "RAIL";
137: public static final int RAIL_CODE = 1;
138: public static final String TRUCK = "TRUCK";
139: public static final int TRUCK_CODE = 2;
140:
141: public static final String DUMMY = "Dummy";
142: public static final String FORLOADING = "ForLoading";
143: public static final String ONDECK = "OnDeck";
144: public static final String INSEQUENCE = "InSequence";
145:
146: public static final String SequentialSchedule = "SequentialSchedule";
147: public static final String SCHEDULE_ELEMENT = "ScheduleElement";
148: public static final String FROMTABLE = "FromTable";
149:
150: public static final org.cougaar.planning.ldm.plan.Role THEATER_MCC_ROLE = org.cougaar.planning.ldm.plan.Role
151: .getRole("FromPODGroundTransportationProvider");
152:
153: // Air Roles
154: public static final org.cougaar.planning.ldm.plan.Role GLOBAL_AIR_ROLE = org.cougaar.planning.ldm.plan.Role
155: .getRole("AirTransportationProvider");
156: public static final org.cougaar.planning.ldm.plan.Role ORGANIC_AIR_ROLE = org.cougaar.planning.ldm.plan.Role
157: .getRole("OrganicAirTransportationProvider");
158: public static final org.cougaar.planning.ldm.plan.Role VIRTUAL_AIR_ROLE = org.cougaar.planning.ldm.plan.Role
159: .getRole("CommercialAirTransportationProvider");
160: public static final org.cougaar.planning.ldm.plan.Role C17_ROLE = org.cougaar.planning.ldm.plan.Role
161: .getRole("C17TransportProvider");
162: public static final org.cougaar.planning.ldm.plan.Role C5_ROLE = org.cougaar.planning.ldm.plan.Role
163: .getRole("C5TransportProvider");
164: public static final org.cougaar.planning.ldm.plan.Role C130_ROLE = org.cougaar.planning.ldm.plan.Role
165: .getRole("C130TransportProvider");
166: public static final org.cougaar.planning.ldm.plan.Role MD11_ROLE = org.cougaar.planning.ldm.plan.Role
167: .getRole("CommercialTransportProvider");
168: public static final org.cougaar.planning.ldm.plan.Role B747_ROLE = org.cougaar.planning.ldm.plan.Role
169: .getRole("CommercialTransportProvider");
170: public static final org.cougaar.planning.ldm.plan.Role SQUADRON_ROLE = org.cougaar.planning.ldm.plan.Role
171: .getRole("AirCrewProvider");
172: public static final org.cougaar.planning.ldm.plan.Role THEATER_AIR_ROLE = org.cougaar.planning.ldm.plan.Role
173: .getRole("TheaterAirTransportationProvider");
174:
175: // Sea Roles
176: public static final org.cougaar.planning.ldm.plan.Role GLOBAL_SEA_ROLE = org.cougaar.planning.ldm.plan.Role
177: .getRole("SeaTransportationProvider");
178: public static final org.cougaar.planning.ldm.plan.Role SHIP_PACKER_ROLE = org.cougaar.planning.ldm.plan.Role
179: .getRole("ShipPackingTransportationProvider");
180: public static final org.cougaar.planning.ldm.plan.Role AMMO_SHIP_PACKER_ROLE = org.cougaar.planning.ldm.plan.Role
181: .getRole("AmmoShipPackingTransportationProvider");
182: public static final org.cougaar.planning.ldm.plan.Role GLOBAL_SEA_AMMO_ROLE = org.cougaar.planning.ldm.plan.Role
183: .getRole("AmmoTransportationProvider");
184: public static final org.cougaar.planning.ldm.plan.Role GENERIC_PORT_ROLE = org.cougaar.planning.ldm.plan.Role
185: .getRole("GenericSeaPort");
186: public static final org.cougaar.planning.ldm.plan.Role AMMO_PORT_ROLE = org.cougaar.planning.ldm.plan.Role
187: .getRole("AmmunitionSeaPort");
188: public static final org.cougaar.planning.ldm.plan.Role THEATER_SEA_ROLE = org.cougaar.planning.ldm.plan.Role
189: .getRole("TheaterSeaTransportationProvider");
190:
191: // Ground Roles
192: public static final org.cougaar.planning.ldm.plan.Role CONUS_GROUND_ROLE = org.cougaar.planning.ldm.plan.Role
193: .getRole("ToPOEGroundTransportationProvider");
194: public static final org.cougaar.planning.ldm.plan.Role COMMERCIAL_GROUND_ROLE = org.cougaar.planning.ldm.plan.Role
195: .getRole("CommercialGroundTransportationProvider");
196: public static final org.cougaar.planning.ldm.plan.Role THEATER_GROUND_ROLE = org.cougaar.planning.ldm.plan.Role
197: .getRole("FromPODGroundTransportationProvider");
198: public static final org.cougaar.planning.ldm.plan.Role ITO_ROLE = org.cougaar.planning.ldm.plan.Role
199: .getRole("GroundTransportationProvider");
200: public static final org.cougaar.planning.ldm.plan.Role TRANSCAP_ROLE = org.cougaar.planning.ldm.plan.Role
201: .getRole("TranscapProvider");
202: public static final org.cougaar.planning.ldm.plan.Role THEATER_FORT_ROLE = org.cougaar.planning.ldm.plan.Role
203: .getRole("TheaterTruckingProvider");
204: }
|