Source Code Cross Referenced for AirportPGImpl.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:        /** Implementation of AirportPG.
029:         *  @see AirportPG
030:         *  @see NewAirportPG
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:        import java.io.ObjectOutputStream;
045:        import java.io.ObjectInputStream;
046:        import java.io.IOException;
047:        import java.beans.PropertyDescriptor;
048:        import java.beans.IndexedPropertyDescriptor;
049:
050:        public class AirportPGImpl extends java.beans.SimpleBeanInfo implements 
051:                NewAirportPG, Cloneable {
052:            public AirportPGImpl() {
053:            }
054:
055:            // Slots
056:
057:            private Distance theMaximumRunwayLength;
058:
059:            public Distance getMaximumRunwayLength() {
060:                return theMaximumRunwayLength;
061:            }
062:
063:            public void setMaximumRunwayLength(Distance maximum_runway_length) {
064:                theMaximumRunwayLength = maximum_runway_length;
065:            }
066:
067:            private String theRunwayType;
068:
069:            public String getRunwayType() {
070:                return theRunwayType;
071:            }
072:
073:            public void setRunwayType(String runway_type) {
074:                theRunwayType = runway_type;
075:            }
076:
077:            private long theMaximumOnGround;
078:
079:            public long getMaximumOnGround() {
080:                return theMaximumOnGround;
081:            }
082:
083:            public void setMaximumOnGround(long maximum_on_ground) {
084:                theMaximumOnGround = maximum_on_ground;
085:            }
086:
087:            private Area theRampSpace;
088:
089:            public Area getRampSpace() {
090:                return theRampSpace;
091:            }
092:
093:            public void setRampSpace(Area ramp_space) {
094:                theRampSpace = ramp_space;
095:            }
096:
097:            private double theMaximumFlightRate;
098:
099:            public double getMaximumFlightRate() {
100:                return theMaximumFlightRate;
101:            }
102:
103:            public void setMaximumFlightRate(double maximum_flight_rate) {
104:                theMaximumFlightRate = maximum_flight_rate;
105:            }
106:
107:            private MassTransferRate theThroughput;
108:
109:            public MassTransferRate getThroughput() {
110:                return theThroughput;
111:            }
112:
113:            public void setThroughput(MassTransferRate throughput) {
114:                theThroughput = throughput;
115:            }
116:
117:            public AirportPGImpl(AirportPG original) {
118:                theMaximumRunwayLength = original.getMaximumRunwayLength();
119:                theRunwayType = original.getRunwayType();
120:                theMaximumOnGround = original.getMaximumOnGround();
121:                theRampSpace = original.getRampSpace();
122:                theMaximumFlightRate = original.getMaximumFlightRate();
123:                theThroughput = original.getThroughput();
124:            }
125:
126:            public boolean equals(Object other) {
127:
128:                if (!(other instanceof  AirportPG)) {
129:                    return false;
130:                }
131:
132:                AirportPG otherAirportPG = (AirportPG) other;
133:
134:                if (getMaximumRunwayLength() == null) {
135:                    if (otherAirportPG.getMaximumRunwayLength() != null) {
136:                        return false;
137:                    }
138:                } else if (!(getMaximumRunwayLength().equals(otherAirportPG
139:                        .getMaximumRunwayLength()))) {
140:                    return false;
141:                }
142:
143:                if (getRunwayType() == null) {
144:                    if (otherAirportPG.getRunwayType() != null) {
145:                        return false;
146:                    }
147:                } else if (!(getRunwayType().equals(otherAirportPG
148:                        .getRunwayType()))) {
149:                    return false;
150:                }
151:
152:                if (!(getMaximumOnGround() == otherAirportPG
153:                        .getMaximumOnGround())) {
154:                    return false;
155:                }
156:
157:                if (getRampSpace() == null) {
158:                    if (otherAirportPG.getRampSpace() != null) {
159:                        return false;
160:                    }
161:                } else if (!(getRampSpace().equals(otherAirportPG
162:                        .getRampSpace()))) {
163:                    return false;
164:                }
165:
166:                if (!(getMaximumFlightRate() == otherAirportPG
167:                        .getMaximumFlightRate())) {
168:                    return false;
169:                }
170:
171:                if (getThroughput() == null) {
172:                    if (otherAirportPG.getThroughput() != null) {
173:                        return false;
174:                    }
175:                } else if (!(getThroughput().equals(otherAirportPG
176:                        .getThroughput()))) {
177:                    return false;
178:                }
179:
180:                return true;
181:            }
182:
183:            public boolean hasDataQuality() {
184:                return false;
185:            }
186:
187:            public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
188:                return null;
189:            }
190:
191:            // static inner extension class for real DataQuality Support
192:            public final static class DQ extends AirportPGImpl implements 
193:                    org.cougaar.planning.ldm.dq.NewHasDataQuality {
194:                public DQ() {
195:                    super ();
196:                }
197:
198:                public DQ(AirportPG original) {
199:                    super (original);
200:                }
201:
202:                public Object clone() {
203:                    return new DQ(this );
204:                }
205:
206:                private transient org.cougaar.planning.ldm.dq.DataQuality _dq = null;
207:
208:                public boolean hasDataQuality() {
209:                    return (_dq != null);
210:                }
211:
212:                public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
213:                    return _dq;
214:                }
215:
216:                public void setDataQuality(
217:                        org.cougaar.planning.ldm.dq.DataQuality dq) {
218:                    _dq = dq;
219:                }
220:
221:                private void writeObject(ObjectOutputStream out)
222:                        throws IOException {
223:                    out.defaultWriteObject();
224:                    if (out instanceof  org.cougaar.core.persist.PersistenceOutputStream)
225:                        out.writeObject(_dq);
226:                }
227:
228:                private void readObject(ObjectInputStream in)
229:                        throws ClassNotFoundException, IOException {
230:                    in.defaultReadObject();
231:                    if (in instanceof  org.cougaar.core.persist.PersistenceInputStream)
232:                        _dq = (org.cougaar.planning.ldm.dq.DataQuality) in
233:                                .readObject();
234:                }
235:
236:                private final static PropertyDescriptor properties[] = new PropertyDescriptor[1];
237:                static {
238:                    try {
239:                        properties[0] = new PropertyDescriptor("dataQuality",
240:                                DQ.class, "getDataQuality", null);
241:                    } catch (Exception e) {
242:                        e.printStackTrace();
243:                    }
244:                }
245:
246:                public PropertyDescriptor[] getPropertyDescriptors() {
247:                    PropertyDescriptor[] pds = super .properties;
248:                    PropertyDescriptor[] ps = new PropertyDescriptor[pds.length
249:                            + properties.length];
250:                    System.arraycopy(pds, 0, ps, 0, pds.length);
251:                    System.arraycopy(properties, 0, ps, pds.length,
252:                            properties.length);
253:                    return ps;
254:                }
255:            }
256:
257:            private transient AirportPG _locked = null;
258:
259:            public PropertyGroup lock(Object key) {
260:                if (_locked == null)
261:                    _locked = new _Locked(key);
262:                return _locked;
263:            }
264:
265:            public PropertyGroup lock() {
266:                return lock(null);
267:            }
268:
269:            public NewPropertyGroup unlock(Object key) {
270:                return this ;
271:            }
272:
273:            public Object clone() throws CloneNotSupportedException {
274:                return new AirportPGImpl(AirportPGImpl.this );
275:            }
276:
277:            public PropertyGroup copy() {
278:                try {
279:                    return (PropertyGroup) clone();
280:                } catch (CloneNotSupportedException cnse) {
281:                    return null;
282:                }
283:            }
284:
285:            public Class getPrimaryClass() {
286:                return primaryClass;
287:            }
288:
289:            public String getAssetGetMethod() {
290:                return assetGetter;
291:            }
292:
293:            public String getAssetSetMethod() {
294:                return assetSetter;
295:            }
296:
297:            private final static PropertyDescriptor properties[] = new PropertyDescriptor[6];
298:            static {
299:                try {
300:                    properties[0] = new PropertyDescriptor(
301:                            "maximum_runway_length", AirportPG.class,
302:                            "getMaximumRunwayLength", null);
303:                    properties[1] = new PropertyDescriptor("runway_type",
304:                            AirportPG.class, "getRunwayType", null);
305:                    properties[2] = new PropertyDescriptor("maximum_on_ground",
306:                            AirportPG.class, "getMaximumOnGround", null);
307:                    properties[3] = new PropertyDescriptor("ramp_space",
308:                            AirportPG.class, "getRampSpace", null);
309:                    properties[4] = new PropertyDescriptor(
310:                            "maximum_flight_rate", AirportPG.class,
311:                            "getMaximumFlightRate", null);
312:                    properties[5] = new PropertyDescriptor("throughput",
313:                            AirportPG.class, "getThroughput", null);
314:                } catch (Exception e) {
315:                    org.cougaar.util.log.Logging.getLogger(AirportPG.class)
316:                            .error("Caught exception", e);
317:                }
318:            }
319:
320:            public PropertyDescriptor[] getPropertyDescriptors() {
321:                return properties;
322:            }
323:
324:            private final class _Locked extends java.beans.SimpleBeanInfo
325:                    implements  AirportPG, Cloneable, LockedPG {
326:                private transient Object theKey = null;
327:
328:                _Locked(Object key) {
329:                    if (this .theKey == null)
330:                        this .theKey = key;
331:                }
332:
333:                public _Locked() {
334:                }
335:
336:                public PropertyGroup lock() {
337:                    return this ;
338:                }
339:
340:                public PropertyGroup lock(Object o) {
341:                    return this ;
342:                }
343:
344:                public NewPropertyGroup unlock(Object key)
345:                        throws IllegalAccessException {
346:                    if (theKey.equals(key)) {
347:                        return AirportPGImpl.this ;
348:                    } else {
349:                        throw new IllegalAccessException(
350:                                "unlock: mismatched internal and provided keys!");
351:                    }
352:                }
353:
354:                public PropertyGroup copy() {
355:                    try {
356:                        return (PropertyGroup) clone();
357:                    } catch (CloneNotSupportedException cnse) {
358:                        return null;
359:                    }
360:                }
361:
362:                public Object clone() throws CloneNotSupportedException {
363:                    return new AirportPGImpl(AirportPGImpl.this );
364:                }
365:
366:                public boolean equals(Object object) {
367:                    return AirportPGImpl.this .equals(object);
368:                }
369:
370:                public Distance getMaximumRunwayLength() {
371:                    return AirportPGImpl.this .getMaximumRunwayLength();
372:                }
373:
374:                public String getRunwayType() {
375:                    return AirportPGImpl.this .getRunwayType();
376:                }
377:
378:                public long getMaximumOnGround() {
379:                    return AirportPGImpl.this .getMaximumOnGround();
380:                }
381:
382:                public Area getRampSpace() {
383:                    return AirportPGImpl.this .getRampSpace();
384:                }
385:
386:                public double getMaximumFlightRate() {
387:                    return AirportPGImpl.this .getMaximumFlightRate();
388:                }
389:
390:                public MassTransferRate getThroughput() {
391:                    return AirportPGImpl.this .getThroughput();
392:                }
393:
394:                public final boolean hasDataQuality() {
395:                    return AirportPGImpl.this .hasDataQuality();
396:                }
397:
398:                public final org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
399:                    return AirportPGImpl.this .getDataQuality();
400:                }
401:
402:                public Class getPrimaryClass() {
403:                    return primaryClass;
404:                }
405:
406:                public String getAssetGetMethod() {
407:                    return assetGetter;
408:                }
409:
410:                public String getAssetSetMethod() {
411:                    return assetSetter;
412:                }
413:
414:                public PropertyDescriptor[] getPropertyDescriptors() {
415:                    return properties;
416:                }
417:
418:                public Class getIntrospectionClass() {
419:                    return AirportPGImpl.class;
420:                }
421:
422:            }
423:
424:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.