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 MissileLauncherPG.
029: * @see NewMissileLauncherPG
030: * @see MissileLauncherPGImpl
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 MissileLauncherPG extends PropertyGroup,
045: org.cougaar.planning.ldm.dq.HasDataQuality {
046:
047: // introspection and construction
048: /** the method of factoryClass that creates this type **/
049: String factoryMethod = "newMissileLauncherPG";
050: /** the (mutable) class type returned by factoryMethod **/
051: String mutableClass = "org.cougaar.glm.ldm.asset.NewMissileLauncherPG";
052: /** the factory class **/
053: Class factoryClass = org.cougaar.glm.ldm.asset.PropertyGroupFactory.class;
054: /** the (immutable) class type returned by domain factory **/
055: Class primaryClass = org.cougaar.glm.ldm.asset.MissileLauncherPG.class;
056: String assetSetter = "setMissileLauncherPG";
057: String assetGetter = "getMissileLauncherPG";
058: /** The Null instance for indicating that the PG definitely has no value **/
059: MissileLauncherPG nullPG = new Null_MissileLauncherPG();
060:
061: /** Null_PG implementation for MissileLauncherPG **/
062: final class Null_MissileLauncherPG implements MissileLauncherPG,
063: Null_PG {
064: public boolean equals(Object object) {
065: throw new UndefinedValueException();
066: }
067:
068: public Object clone() throws CloneNotSupportedException {
069: throw new CloneNotSupportedException();
070: }
071:
072: public NewPropertyGroup unlock(Object key) {
073: return null;
074: }
075:
076: public PropertyGroup lock(Object key) {
077: return null;
078: }
079:
080: public PropertyGroup lock() {
081: return null;
082: }
083:
084: public PropertyGroup copy() {
085: return null;
086: }
087:
088: public Class getPrimaryClass() {
089: return primaryClass;
090: }
091:
092: public String getAssetGetMethod() {
093: return assetGetter;
094: }
095:
096: public String getAssetSetMethod() {
097: return assetSetter;
098: }
099:
100: public Class getIntrospectionClass() {
101: return MissileLauncherPGImpl.class;
102: }
103:
104: public boolean hasDataQuality() {
105: return false;
106: }
107:
108: public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
109: return null;
110: }
111: }
112:
113: /** Future PG implementation for MissileLauncherPG **/
114: final class Future implements MissileLauncherPG, Future_PG {
115: public boolean equals(Object object) {
116: waitForFinalize();
117: return _real.equals(object);
118: }
119:
120: public Object clone() throws CloneNotSupportedException {
121: throw new CloneNotSupportedException();
122: }
123:
124: public NewPropertyGroup unlock(Object key) {
125: return null;
126: }
127:
128: public PropertyGroup lock(Object key) {
129: return null;
130: }
131:
132: public PropertyGroup lock() {
133: return null;
134: }
135:
136: public PropertyGroup copy() {
137: return null;
138: }
139:
140: public Class getPrimaryClass() {
141: return primaryClass;
142: }
143:
144: public String getAssetGetMethod() {
145: return assetGetter;
146: }
147:
148: public String getAssetSetMethod() {
149: return assetSetter;
150: }
151:
152: public Class getIntrospectionClass() {
153: return MissileLauncherPGImpl.class;
154: }
155:
156: public synchronized boolean hasDataQuality() {
157: return (_real != null) && _real.hasDataQuality();
158: }
159:
160: public synchronized org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
161: return (_real == null) ? null : (_real.getDataQuality());
162: }
163:
164: // Finalization support
165: private MissileLauncherPG _real = null;
166:
167: public synchronized void finalize(PropertyGroup real) {
168: if (real instanceof MissileLauncherPG) {
169: _real = (MissileLauncherPG) real;
170: notifyAll();
171: } else {
172: throw new IllegalArgumentException(
173: "Finalization with wrong class: " + real);
174: }
175: }
176:
177: private synchronized void waitForFinalize() {
178: while (_real == null) {
179: try {
180: wait();
181: } catch (InterruptedException _ie) {
182: // We should really let waitForFinalize throw InterruptedException
183: Thread.interrupted();
184: }
185: }
186: }
187: }
188: }
|