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 ExplosivePG.
029: * No attributes yet
030: * @see NewExplosivePG
031: * @see ExplosivePGImpl
032: **/package org.cougaar.glm.ldm.asset;
033:
034: import org.cougaar.planning.ldm.measure.*;
035: import org.cougaar.planning.ldm.asset.*;
036: import org.cougaar.planning.ldm.plan.*;
037: import java.util.*;
038:
039: import org.cougaar.glm.ldm.plan.*;
040: import org.cougaar.glm.ldm.oplan.*;
041: import org.cougaar.glm.ldm.policy.*;
042: import org.cougaar.core.mts.MessageAddress;
043: import org.cougaar.glm.execution.common.InventoryReport;
044:
045: public interface ExplosivePG extends PropertyGroup,
046: org.cougaar.planning.ldm.dq.HasDataQuality {
047:
048: // introspection and construction
049: /** the method of factoryClass that creates this type **/
050: String factoryMethod = "newExplosivePG";
051: /** the (mutable) class type returned by factoryMethod **/
052: String mutableClass = "org.cougaar.glm.ldm.asset.NewExplosivePG";
053: /** the factory class **/
054: Class factoryClass = org.cougaar.glm.ldm.asset.PropertyGroupFactory.class;
055: /** the (immutable) class type returned by domain factory **/
056: Class primaryClass = org.cougaar.glm.ldm.asset.ExplosivePG.class;
057: String assetSetter = "setExplosivePG";
058: String assetGetter = "getExplosivePG";
059: /** The Null instance for indicating that the PG definitely has no value **/
060: ExplosivePG nullPG = new Null_ExplosivePG();
061:
062: /** Null_PG implementation for ExplosivePG **/
063: final class Null_ExplosivePG implements ExplosivePG, 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 ExplosivePGImpl.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 ExplosivePG **/
114: final class Future implements ExplosivePG, 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 ExplosivePGImpl.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 ExplosivePG _real = null;
166:
167: public synchronized void finalize(PropertyGroup real) {
168: if (real instanceof ExplosivePG) {
169: _real = (ExplosivePG) 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: }
|