Source Code Cross Referenced for MilitaryOrgPGImpl.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 MilitaryOrgPG.
029:         *  @see MilitaryOrgPG
030:         *  @see NewMilitaryOrgPG
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 MilitaryOrgPGImpl extends java.beans.SimpleBeanInfo
051:                implements  NewMilitaryOrgPG, Cloneable {
052:            public MilitaryOrgPGImpl() {
053:            }
054:
055:            // Slots
056:
057:            private String theStandardName;
058:
059:            public String getStandardName() {
060:                return theStandardName;
061:            }
062:
063:            public void setStandardName(String standard_name) {
064:                theStandardName = standard_name;
065:            }
066:
067:            private String theUIC;
068:
069:            public String getUIC() {
070:                return theUIC;
071:            }
072:
073:            public void setUIC(String UIC) {
074:                theUIC = UIC;
075:            }
076:
077:            private String theUTC;
078:
079:            public String getUTC() {
080:                return theUTC;
081:            }
082:
083:            public void setUTC(String UTC) {
084:                theUTC = UTC;
085:            }
086:
087:            private String theSRC;
088:
089:            public String getSRC() {
090:                return theSRC;
091:            }
092:
093:            public void setSRC(String SRC) {
094:                theSRC = SRC;
095:            }
096:
097:            private String theEchelon;
098:
099:            public String getEchelon() {
100:                return theEchelon;
101:            }
102:
103:            public void setEchelon(String echelon) {
104:                theEchelon = echelon;
105:            }
106:
107:            private String theRequestedEchelonOfSupport;
108:
109:            public String getRequestedEchelonOfSupport() {
110:                return theRequestedEchelonOfSupport;
111:            }
112:
113:            public void setRequestedEchelonOfSupport(
114:                    String requested_echelon_of_support) {
115:                theRequestedEchelonOfSupport = requested_echelon_of_support;
116:            }
117:
118:            private String theHierarchy2525;
119:
120:            public String getHierarchy2525() {
121:                return theHierarchy2525;
122:            }
123:
124:            public void setHierarchy2525(String hierarchy_2525) {
125:                theHierarchy2525 = hierarchy_2525;
126:            }
127:
128:            private boolean theIsReserve;
129:
130:            public boolean getIsReserve() {
131:                return theIsReserve;
132:            }
133:
134:            public void setIsReserve(boolean is_reserve) {
135:                theIsReserve = is_reserve;
136:            }
137:
138:            private Location theHomeLocation;
139:
140:            public Location getHomeLocation() {
141:                return theHomeLocation;
142:            }
143:
144:            public void setHomeLocation(Location home_location) {
145:                theHomeLocation = home_location;
146:            }
147:
148:            public MilitaryOrgPGImpl(MilitaryOrgPG original) {
149:                theStandardName = original.getStandardName();
150:                theUIC = original.getUIC();
151:                theUTC = original.getUTC();
152:                theSRC = original.getSRC();
153:                theEchelon = original.getEchelon();
154:                theRequestedEchelonOfSupport = original
155:                        .getRequestedEchelonOfSupport();
156:                theHierarchy2525 = original.getHierarchy2525();
157:                theIsReserve = original.getIsReserve();
158:                theHomeLocation = original.getHomeLocation();
159:            }
160:
161:            public boolean equals(Object other) {
162:
163:                if (!(other instanceof  MilitaryOrgPG)) {
164:                    return false;
165:                }
166:
167:                MilitaryOrgPG otherMilitaryOrgPG = (MilitaryOrgPG) other;
168:
169:                if (getStandardName() == null) {
170:                    if (otherMilitaryOrgPG.getStandardName() != null) {
171:                        return false;
172:                    }
173:                } else if (!(getStandardName().equals(otherMilitaryOrgPG
174:                        .getStandardName()))) {
175:                    return false;
176:                }
177:
178:                if (getUIC() == null) {
179:                    if (otherMilitaryOrgPG.getUIC() != null) {
180:                        return false;
181:                    }
182:                } else if (!(getUIC().equals(otherMilitaryOrgPG.getUIC()))) {
183:                    return false;
184:                }
185:
186:                if (getUTC() == null) {
187:                    if (otherMilitaryOrgPG.getUTC() != null) {
188:                        return false;
189:                    }
190:                } else if (!(getUTC().equals(otherMilitaryOrgPG.getUTC()))) {
191:                    return false;
192:                }
193:
194:                if (getSRC() == null) {
195:                    if (otherMilitaryOrgPG.getSRC() != null) {
196:                        return false;
197:                    }
198:                } else if (!(getSRC().equals(otherMilitaryOrgPG.getSRC()))) {
199:                    return false;
200:                }
201:
202:                if (getEchelon() == null) {
203:                    if (otherMilitaryOrgPG.getEchelon() != null) {
204:                        return false;
205:                    }
206:                } else if (!(getEchelon().equals(otherMilitaryOrgPG
207:                        .getEchelon()))) {
208:                    return false;
209:                }
210:
211:                if (getRequestedEchelonOfSupport() == null) {
212:                    if (otherMilitaryOrgPG.getRequestedEchelonOfSupport() != null) {
213:                        return false;
214:                    }
215:                } else if (!(getRequestedEchelonOfSupport()
216:                        .equals(otherMilitaryOrgPG
217:                                .getRequestedEchelonOfSupport()))) {
218:                    return false;
219:                }
220:
221:                if (getHierarchy2525() == null) {
222:                    if (otherMilitaryOrgPG.getHierarchy2525() != null) {
223:                        return false;
224:                    }
225:                } else if (!(getHierarchy2525().equals(otherMilitaryOrgPG
226:                        .getHierarchy2525()))) {
227:                    return false;
228:                }
229:
230:                if (!(getIsReserve() == otherMilitaryOrgPG.getIsReserve())) {
231:                    return false;
232:                }
233:
234:                if (getHomeLocation() == null) {
235:                    if (otherMilitaryOrgPG.getHomeLocation() != null) {
236:                        return false;
237:                    }
238:                } else if (!(getHomeLocation().equals(otherMilitaryOrgPG
239:                        .getHomeLocation()))) {
240:                    return false;
241:                }
242:
243:                return true;
244:            }
245:
246:            public boolean hasDataQuality() {
247:                return false;
248:            }
249:
250:            public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
251:                return null;
252:            }
253:
254:            // static inner extension class for real DataQuality Support
255:            public final static class DQ extends MilitaryOrgPGImpl implements 
256:                    org.cougaar.planning.ldm.dq.NewHasDataQuality {
257:                public DQ() {
258:                    super ();
259:                }
260:
261:                public DQ(MilitaryOrgPG original) {
262:                    super (original);
263:                }
264:
265:                public Object clone() {
266:                    return new DQ(this );
267:                }
268:
269:                private transient org.cougaar.planning.ldm.dq.DataQuality _dq = null;
270:
271:                public boolean hasDataQuality() {
272:                    return (_dq != null);
273:                }
274:
275:                public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
276:                    return _dq;
277:                }
278:
279:                public void setDataQuality(
280:                        org.cougaar.planning.ldm.dq.DataQuality dq) {
281:                    _dq = dq;
282:                }
283:
284:                private void writeObject(ObjectOutputStream out)
285:                        throws IOException {
286:                    out.defaultWriteObject();
287:                    if (out instanceof  org.cougaar.core.persist.PersistenceOutputStream)
288:                        out.writeObject(_dq);
289:                }
290:
291:                private void readObject(ObjectInputStream in)
292:                        throws ClassNotFoundException, IOException {
293:                    in.defaultReadObject();
294:                    if (in instanceof  org.cougaar.core.persist.PersistenceInputStream)
295:                        _dq = (org.cougaar.planning.ldm.dq.DataQuality) in
296:                                .readObject();
297:                }
298:
299:                private final static PropertyDescriptor properties[] = new PropertyDescriptor[1];
300:                static {
301:                    try {
302:                        properties[0] = new PropertyDescriptor("dataQuality",
303:                                DQ.class, "getDataQuality", null);
304:                    } catch (Exception e) {
305:                        e.printStackTrace();
306:                    }
307:                }
308:
309:                public PropertyDescriptor[] getPropertyDescriptors() {
310:                    PropertyDescriptor[] pds = super .properties;
311:                    PropertyDescriptor[] ps = new PropertyDescriptor[pds.length
312:                            + properties.length];
313:                    System.arraycopy(pds, 0, ps, 0, pds.length);
314:                    System.arraycopy(properties, 0, ps, pds.length,
315:                            properties.length);
316:                    return ps;
317:                }
318:            }
319:
320:            private transient MilitaryOrgPG _locked = null;
321:
322:            public PropertyGroup lock(Object key) {
323:                if (_locked == null)
324:                    _locked = new _Locked(key);
325:                return _locked;
326:            }
327:
328:            public PropertyGroup lock() {
329:                return lock(null);
330:            }
331:
332:            public NewPropertyGroup unlock(Object key) {
333:                return this ;
334:            }
335:
336:            public Object clone() throws CloneNotSupportedException {
337:                return new MilitaryOrgPGImpl(MilitaryOrgPGImpl.this );
338:            }
339:
340:            public PropertyGroup copy() {
341:                try {
342:                    return (PropertyGroup) clone();
343:                } catch (CloneNotSupportedException cnse) {
344:                    return null;
345:                }
346:            }
347:
348:            public Class getPrimaryClass() {
349:                return primaryClass;
350:            }
351:
352:            public String getAssetGetMethod() {
353:                return assetGetter;
354:            }
355:
356:            public String getAssetSetMethod() {
357:                return assetSetter;
358:            }
359:
360:            private final static PropertyDescriptor properties[] = new PropertyDescriptor[9];
361:            static {
362:                try {
363:                    properties[0] = new PropertyDescriptor("standard_name",
364:                            MilitaryOrgPG.class, "getStandardName", null);
365:                    properties[1] = new PropertyDescriptor("UIC",
366:                            MilitaryOrgPG.class, "getUIC", null);
367:                    properties[2] = new PropertyDescriptor("UTC",
368:                            MilitaryOrgPG.class, "getUTC", null);
369:                    properties[3] = new PropertyDescriptor("SRC",
370:                            MilitaryOrgPG.class, "getSRC", null);
371:                    properties[4] = new PropertyDescriptor("echelon",
372:                            MilitaryOrgPG.class, "getEchelon", null);
373:                    properties[5] = new PropertyDescriptor(
374:                            "requested_echelon_of_support",
375:                            MilitaryOrgPG.class,
376:                            "getRequestedEchelonOfSupport", null);
377:                    properties[6] = new PropertyDescriptor("hierarchy_2525",
378:                            MilitaryOrgPG.class, "getHierarchy2525", null);
379:                    properties[7] = new PropertyDescriptor("is_reserve",
380:                            MilitaryOrgPG.class, "getIsReserve", null);
381:                    properties[8] = new PropertyDescriptor("home_location",
382:                            MilitaryOrgPG.class, "getHomeLocation", null);
383:                } catch (Exception e) {
384:                    org.cougaar.util.log.Logging.getLogger(MilitaryOrgPG.class)
385:                            .error("Caught exception", e);
386:                }
387:            }
388:
389:            public PropertyDescriptor[] getPropertyDescriptors() {
390:                return properties;
391:            }
392:
393:            private final class _Locked extends java.beans.SimpleBeanInfo
394:                    implements  MilitaryOrgPG, Cloneable, LockedPG {
395:                private transient Object theKey = null;
396:
397:                _Locked(Object key) {
398:                    if (this .theKey == null)
399:                        this .theKey = key;
400:                }
401:
402:                public _Locked() {
403:                }
404:
405:                public PropertyGroup lock() {
406:                    return this ;
407:                }
408:
409:                public PropertyGroup lock(Object o) {
410:                    return this ;
411:                }
412:
413:                public NewPropertyGroup unlock(Object key)
414:                        throws IllegalAccessException {
415:                    if (theKey.equals(key)) {
416:                        return MilitaryOrgPGImpl.this ;
417:                    } else {
418:                        throw new IllegalAccessException(
419:                                "unlock: mismatched internal and provided keys!");
420:                    }
421:                }
422:
423:                public PropertyGroup copy() {
424:                    try {
425:                        return (PropertyGroup) clone();
426:                    } catch (CloneNotSupportedException cnse) {
427:                        return null;
428:                    }
429:                }
430:
431:                public Object clone() throws CloneNotSupportedException {
432:                    return new MilitaryOrgPGImpl(MilitaryOrgPGImpl.this );
433:                }
434:
435:                public boolean equals(Object object) {
436:                    return MilitaryOrgPGImpl.this .equals(object);
437:                }
438:
439:                public String getStandardName() {
440:                    return MilitaryOrgPGImpl.this .getStandardName();
441:                }
442:
443:                public String getUIC() {
444:                    return MilitaryOrgPGImpl.this .getUIC();
445:                }
446:
447:                public String getUTC() {
448:                    return MilitaryOrgPGImpl.this .getUTC();
449:                }
450:
451:                public String getSRC() {
452:                    return MilitaryOrgPGImpl.this .getSRC();
453:                }
454:
455:                public String getEchelon() {
456:                    return MilitaryOrgPGImpl.this .getEchelon();
457:                }
458:
459:                public String getRequestedEchelonOfSupport() {
460:                    return MilitaryOrgPGImpl.this 
461:                            .getRequestedEchelonOfSupport();
462:                }
463:
464:                public String getHierarchy2525() {
465:                    return MilitaryOrgPGImpl.this .getHierarchy2525();
466:                }
467:
468:                public boolean getIsReserve() {
469:                    return MilitaryOrgPGImpl.this .getIsReserve();
470:                }
471:
472:                public Location getHomeLocation() {
473:                    return MilitaryOrgPGImpl.this .getHomeLocation();
474:                }
475:
476:                public final boolean hasDataQuality() {
477:                    return MilitaryOrgPGImpl.this .hasDataQuality();
478:                }
479:
480:                public final org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
481:                    return MilitaryOrgPGImpl.this .getDataQuality();
482:                }
483:
484:                public Class getPrimaryClass() {
485:                    return primaryClass;
486:                }
487:
488:                public String getAssetGetMethod() {
489:                    return assetGetter;
490:                }
491:
492:                public String getAssetSetMethod() {
493:                    return assetSetter;
494:                }
495:
496:                public PropertyDescriptor[] getPropertyDescriptors() {
497:                    return properties;
498:                }
499:
500:                public Class getIntrospectionClass() {
501:                    return MilitaryOrgPGImpl.class;
502:                }
503:
504:            }
505:
506:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.