Source Code Cross Referenced for ContainPG.java in  » Science » Cougaar12_4 » org » cougaar » glm » ldm » asset » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.glm.ldm.asset 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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 ContainPG.
029:         *  @see NewContainPG
030:         *  @see ContainPGImpl
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 ContainPG extends PropertyGroup,
045:                org.cougaar.planning.ldm.dq.HasDataQuality {
046:            Distance getMaximumLength();
047:
048:            Distance getMaximumWidth();
049:
050:            Distance getMaximumHeight();
051:
052:            Volume getMaximumVolume();
053:
054:            Area getMaximumFootprintArea();
055:
056:            Mass getMaximumWeight();
057:
058:            long getMaximumPassengers();
059:
060:            boolean getRefrigeration();
061:
062:            Duration getTimeToLoad();
063:
064:            Duration getTimeToUnload();
065:
066:            Duration getTimeToRefuel();
067:
068:            long getMaximumContainers();
069:
070:            /** "Is this designated as a prepositioned cargo asset?" **/
071:            boolean getIsPrepositioned();
072:
073:            String getCargoRestrictions();
074:
075:            String getPermittedCargoCategoryCodes();
076:
077:            // introspection and construction
078:            /** the method of factoryClass that creates this type **/
079:            String factoryMethod = "newContainPG";
080:            /** the (mutable) class type returned by factoryMethod **/
081:            String mutableClass = "org.cougaar.glm.ldm.asset.NewContainPG";
082:            /** the factory class **/
083:            Class factoryClass = org.cougaar.glm.ldm.asset.PropertyGroupFactory.class;
084:            /** the (immutable) class type returned by domain factory **/
085:            Class primaryClass = org.cougaar.glm.ldm.asset.ContainPG.class;
086:            String assetSetter = "setContainPG";
087:            String assetGetter = "getContainPG";
088:            /** The Null instance for indicating that the PG definitely has no value **/
089:            ContainPG nullPG = new Null_ContainPG();
090:
091:            /** Null_PG implementation for ContainPG **/
092:            final class Null_ContainPG implements  ContainPG, Null_PG {
093:                public Distance getMaximumLength() {
094:                    throw new UndefinedValueException();
095:                }
096:
097:                public Distance getMaximumWidth() {
098:                    throw new UndefinedValueException();
099:                }
100:
101:                public Distance getMaximumHeight() {
102:                    throw new UndefinedValueException();
103:                }
104:
105:                public Volume getMaximumVolume() {
106:                    throw new UndefinedValueException();
107:                }
108:
109:                public Area getMaximumFootprintArea() {
110:                    throw new UndefinedValueException();
111:                }
112:
113:                public Mass getMaximumWeight() {
114:                    throw new UndefinedValueException();
115:                }
116:
117:                public long getMaximumPassengers() {
118:                    throw new UndefinedValueException();
119:                }
120:
121:                public boolean getRefrigeration() {
122:                    throw new UndefinedValueException();
123:                }
124:
125:                public Duration getTimeToLoad() {
126:                    throw new UndefinedValueException();
127:                }
128:
129:                public Duration getTimeToUnload() {
130:                    throw new UndefinedValueException();
131:                }
132:
133:                public Duration getTimeToRefuel() {
134:                    throw new UndefinedValueException();
135:                }
136:
137:                public long getMaximumContainers() {
138:                    throw new UndefinedValueException();
139:                }
140:
141:                public boolean getIsPrepositioned() {
142:                    throw new UndefinedValueException();
143:                }
144:
145:                public String getCargoRestrictions() {
146:                    throw new UndefinedValueException();
147:                }
148:
149:                public String getPermittedCargoCategoryCodes() {
150:                    throw new UndefinedValueException();
151:                }
152:
153:                public boolean equals(Object object) {
154:                    throw new UndefinedValueException();
155:                }
156:
157:                public Object clone() throws CloneNotSupportedException {
158:                    throw new CloneNotSupportedException();
159:                }
160:
161:                public NewPropertyGroup unlock(Object key) {
162:                    return null;
163:                }
164:
165:                public PropertyGroup lock(Object key) {
166:                    return null;
167:                }
168:
169:                public PropertyGroup lock() {
170:                    return null;
171:                }
172:
173:                public PropertyGroup copy() {
174:                    return null;
175:                }
176:
177:                public Class getPrimaryClass() {
178:                    return primaryClass;
179:                }
180:
181:                public String getAssetGetMethod() {
182:                    return assetGetter;
183:                }
184:
185:                public String getAssetSetMethod() {
186:                    return assetSetter;
187:                }
188:
189:                public Class getIntrospectionClass() {
190:                    return ContainPGImpl.class;
191:                }
192:
193:                public boolean hasDataQuality() {
194:                    return false;
195:                }
196:
197:                public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
198:                    return null;
199:                }
200:            }
201:
202:            /** Future PG implementation for ContainPG **/
203:            final class Future implements  ContainPG, Future_PG {
204:                public Distance getMaximumLength() {
205:                    waitForFinalize();
206:                    return _real.getMaximumLength();
207:                }
208:
209:                public Distance getMaximumWidth() {
210:                    waitForFinalize();
211:                    return _real.getMaximumWidth();
212:                }
213:
214:                public Distance getMaximumHeight() {
215:                    waitForFinalize();
216:                    return _real.getMaximumHeight();
217:                }
218:
219:                public Volume getMaximumVolume() {
220:                    waitForFinalize();
221:                    return _real.getMaximumVolume();
222:                }
223:
224:                public Area getMaximumFootprintArea() {
225:                    waitForFinalize();
226:                    return _real.getMaximumFootprintArea();
227:                }
228:
229:                public Mass getMaximumWeight() {
230:                    waitForFinalize();
231:                    return _real.getMaximumWeight();
232:                }
233:
234:                public long getMaximumPassengers() {
235:                    waitForFinalize();
236:                    return _real.getMaximumPassengers();
237:                }
238:
239:                public boolean getRefrigeration() {
240:                    waitForFinalize();
241:                    return _real.getRefrigeration();
242:                }
243:
244:                public Duration getTimeToLoad() {
245:                    waitForFinalize();
246:                    return _real.getTimeToLoad();
247:                }
248:
249:                public Duration getTimeToUnload() {
250:                    waitForFinalize();
251:                    return _real.getTimeToUnload();
252:                }
253:
254:                public Duration getTimeToRefuel() {
255:                    waitForFinalize();
256:                    return _real.getTimeToRefuel();
257:                }
258:
259:                public long getMaximumContainers() {
260:                    waitForFinalize();
261:                    return _real.getMaximumContainers();
262:                }
263:
264:                public boolean getIsPrepositioned() {
265:                    waitForFinalize();
266:                    return _real.getIsPrepositioned();
267:                }
268:
269:                public String getCargoRestrictions() {
270:                    waitForFinalize();
271:                    return _real.getCargoRestrictions();
272:                }
273:
274:                public String getPermittedCargoCategoryCodes() {
275:                    waitForFinalize();
276:                    return _real.getPermittedCargoCategoryCodes();
277:                }
278:
279:                public boolean equals(Object object) {
280:                    waitForFinalize();
281:                    return _real.equals(object);
282:                }
283:
284:                public Object clone() throws CloneNotSupportedException {
285:                    throw new CloneNotSupportedException();
286:                }
287:
288:                public NewPropertyGroup unlock(Object key) {
289:                    return null;
290:                }
291:
292:                public PropertyGroup lock(Object key) {
293:                    return null;
294:                }
295:
296:                public PropertyGroup lock() {
297:                    return null;
298:                }
299:
300:                public PropertyGroup copy() {
301:                    return null;
302:                }
303:
304:                public Class getPrimaryClass() {
305:                    return primaryClass;
306:                }
307:
308:                public String getAssetGetMethod() {
309:                    return assetGetter;
310:                }
311:
312:                public String getAssetSetMethod() {
313:                    return assetSetter;
314:                }
315:
316:                public Class getIntrospectionClass() {
317:                    return ContainPGImpl.class;
318:                }
319:
320:                public synchronized boolean hasDataQuality() {
321:                    return (_real != null) && _real.hasDataQuality();
322:                }
323:
324:                public synchronized org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
325:                    return (_real == null) ? null : (_real.getDataQuality());
326:                }
327:
328:                // Finalization support
329:                private ContainPG _real = null;
330:
331:                public synchronized void finalize(PropertyGroup real) {
332:                    if (real instanceof  ContainPG) {
333:                        _real = (ContainPG) real;
334:                        notifyAll();
335:                    } else {
336:                        throw new IllegalArgumentException(
337:                                "Finalization with wrong class: " + real);
338:                    }
339:                }
340:
341:                private synchronized void waitForFinalize() {
342:                    while (_real == null) {
343:                        try {
344:                            wait();
345:                        } catch (InterruptedException _ie) {
346:                            // We should really let waitForFinalize throw InterruptedException
347:                            Thread.interrupted();
348:                        }
349:                    }
350:                }
351:            }
352:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.