001: /*
002: * <copyright>
003: *
004: * Copyright 1997-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:
027: /* @generated Thu Sep 27 15:21:47 EDT 2007 from /u01/builds/cougaar/B12_4/B12_4/070927151721/src/glm/src/org/cougaar/glm/ldm/asset/alpprops.def - DO NOT HAND EDIT */
028: /** Primary client interface for AirSelfPropulsionPG.
029: * @see NewAirSelfPropulsionPG
030: * @see AirSelfPropulsionPGImpl
031: **/package org.cougaar.glm.ldm.asset;
032:
033: import org.cougaar.planning.ldm.measure.*;
034: import org.cougaar.planning.ldm.asset.*;
035: import org.cougaar.planning.ldm.plan.*;
036: import java.util.*;
037:
038: import org.cougaar.glm.ldm.plan.*;
039: import org.cougaar.glm.ldm.oplan.*;
040: import org.cougaar.glm.ldm.policy.*;
041: import org.cougaar.core.mts.MessageAddress;
042: import org.cougaar.glm.execution.common.InventoryReport;
043:
044: public interface AirSelfPropulsionPG extends PropertyGroup,
045: org.cougaar.planning.ldm.dq.HasDataQuality {
046: /** Maximum altitude **/
047: Distance getMaximumAltitude();
048:
049: /** Cruise altitude **/
050: Distance getCruiseAltitude();
051:
052: /** Average fuel consumption rate when in flight **/
053: FlowRate getFuelConsumptionRate();
054:
055: String getEngineType();
056:
057: String getFuelType();
058:
059: Speed getMaximumSpeed();
060:
061: Speed getCruiseSpeed();
062:
063: Distance getFullPayloadRange();
064:
065: Distance getEmptyPayloadRange();
066:
067: // introspection and construction
068: /** the method of factoryClass that creates this type **/
069: String factoryMethod = "newAirSelfPropulsionPG";
070: /** the (mutable) class type returned by factoryMethod **/
071: String mutableClass = "org.cougaar.glm.ldm.asset.NewAirSelfPropulsionPG";
072: /** the factory class **/
073: Class factoryClass = org.cougaar.glm.ldm.asset.PropertyGroupFactory.class;
074: /** the (immutable) class type returned by domain factory **/
075: Class primaryClass = org.cougaar.glm.ldm.asset.AirSelfPropulsionPG.class;
076: String assetSetter = "setAirSelfPropulsionPG";
077: String assetGetter = "getAirSelfPropulsionPG";
078: /** The Null instance for indicating that the PG definitely has no value **/
079: AirSelfPropulsionPG nullPG = new Null_AirSelfPropulsionPG();
080:
081: /** Null_PG implementation for AirSelfPropulsionPG **/
082: final class Null_AirSelfPropulsionPG implements
083: AirSelfPropulsionPG, Null_PG {
084: public Distance getMaximumAltitude() {
085: throw new UndefinedValueException();
086: }
087:
088: public Distance getCruiseAltitude() {
089: throw new UndefinedValueException();
090: }
091:
092: public FlowRate getFuelConsumptionRate() {
093: throw new UndefinedValueException();
094: }
095:
096: public String getEngineType() {
097: throw new UndefinedValueException();
098: }
099:
100: public String getFuelType() {
101: throw new UndefinedValueException();
102: }
103:
104: public Speed getMaximumSpeed() {
105: throw new UndefinedValueException();
106: }
107:
108: public Speed getCruiseSpeed() {
109: throw new UndefinedValueException();
110: }
111:
112: public Distance getFullPayloadRange() {
113: throw new UndefinedValueException();
114: }
115:
116: public Distance getEmptyPayloadRange() {
117: throw new UndefinedValueException();
118: }
119:
120: public boolean equals(Object object) {
121: throw new UndefinedValueException();
122: }
123:
124: public Object clone() throws CloneNotSupportedException {
125: throw new CloneNotSupportedException();
126: }
127:
128: public NewPropertyGroup unlock(Object key) {
129: return null;
130: }
131:
132: public PropertyGroup lock(Object key) {
133: return null;
134: }
135:
136: public PropertyGroup lock() {
137: return null;
138: }
139:
140: public PropertyGroup copy() {
141: return null;
142: }
143:
144: public Class getPrimaryClass() {
145: return primaryClass;
146: }
147:
148: public String getAssetGetMethod() {
149: return assetGetter;
150: }
151:
152: public String getAssetSetMethod() {
153: return assetSetter;
154: }
155:
156: public Class getIntrospectionClass() {
157: return AirSelfPropulsionPGImpl.class;
158: }
159:
160: public boolean hasDataQuality() {
161: return false;
162: }
163:
164: public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
165: return null;
166: }
167: }
168:
169: /** Future PG implementation for AirSelfPropulsionPG **/
170: final class Future implements AirSelfPropulsionPG, Future_PG {
171: public Distance getMaximumAltitude() {
172: waitForFinalize();
173: return _real.getMaximumAltitude();
174: }
175:
176: public Distance getCruiseAltitude() {
177: waitForFinalize();
178: return _real.getCruiseAltitude();
179: }
180:
181: public FlowRate getFuelConsumptionRate() {
182: waitForFinalize();
183: return _real.getFuelConsumptionRate();
184: }
185:
186: public String getEngineType() {
187: waitForFinalize();
188: return _real.getEngineType();
189: }
190:
191: public String getFuelType() {
192: waitForFinalize();
193: return _real.getFuelType();
194: }
195:
196: public Speed getMaximumSpeed() {
197: waitForFinalize();
198: return _real.getMaximumSpeed();
199: }
200:
201: public Speed getCruiseSpeed() {
202: waitForFinalize();
203: return _real.getCruiseSpeed();
204: }
205:
206: public Distance getFullPayloadRange() {
207: waitForFinalize();
208: return _real.getFullPayloadRange();
209: }
210:
211: public Distance getEmptyPayloadRange() {
212: waitForFinalize();
213: return _real.getEmptyPayloadRange();
214: }
215:
216: public boolean equals(Object object) {
217: waitForFinalize();
218: return _real.equals(object);
219: }
220:
221: public Object clone() throws CloneNotSupportedException {
222: throw new CloneNotSupportedException();
223: }
224:
225: public NewPropertyGroup unlock(Object key) {
226: return null;
227: }
228:
229: public PropertyGroup lock(Object key) {
230: return null;
231: }
232:
233: public PropertyGroup lock() {
234: return null;
235: }
236:
237: public PropertyGroup copy() {
238: return null;
239: }
240:
241: public Class getPrimaryClass() {
242: return primaryClass;
243: }
244:
245: public String getAssetGetMethod() {
246: return assetGetter;
247: }
248:
249: public String getAssetSetMethod() {
250: return assetSetter;
251: }
252:
253: public Class getIntrospectionClass() {
254: return AirSelfPropulsionPGImpl.class;
255: }
256:
257: public synchronized boolean hasDataQuality() {
258: return (_real != null) && _real.hasDataQuality();
259: }
260:
261: public synchronized org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
262: return (_real == null) ? null : (_real.getDataQuality());
263: }
264:
265: // Finalization support
266: private AirSelfPropulsionPG _real = null;
267:
268: public synchronized void finalize(PropertyGroup real) {
269: if (real instanceof AirSelfPropulsionPG) {
270: _real = (AirSelfPropulsionPG) real;
271: notifyAll();
272: } else {
273: throw new IllegalArgumentException(
274: "Finalization with wrong class: " + real);
275: }
276: }
277:
278: private synchronized void waitForFinalize() {
279: while (_real == null) {
280: try {
281: wait();
282: } catch (InterruptedException _ie) {
283: // We should really let waitForFinalize throw InterruptedException
284: Thread.interrupted();
285: }
286: }
287: }
288: }
289: }
|