Source Code Cross Referenced for LogisticsInventoryPGImpl.java in  » Science » Cougaar12_4 » org » cougaar » logistics » plugin » inventory » 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.logistics.plugin.inventory 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * <copyright>
0003:         *  
0004:         *  Copyright 1997-2004 BBNT Solutions, LLC
0005:         *  under sponsorship of the Defense Advanced Research Projects
0006:         *  Agency (DARPA).
0007:         * 
0008:         *  You can redistribute this software and/or modify it under the
0009:         *  terms of the Cougaar Open Source License as published on the
0010:         *  Cougaar Open Source Website (www.cougaar.org).
0011:         * 
0012:         *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0013:         *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0014:         *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0015:         *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0016:         *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0017:         *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0018:         *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0019:         *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0020:         *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0021:         *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0022:         *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0023:         *  
0024:         * </copyright>
0025:         */
0026:
0027:        /* @generated Thu Sep 27 15:26:05 EDT 2007 from /u01/builds/cougaar/B12_4/B12_4/070927151721/src/albbn/src/org/cougaar/logistics/plugin/inventory/logisticsprops.def - DO NOT HAND EDIT */
0028:        /** Implementation of LogisticsInventoryPG.
0029:         *  @see LogisticsInventoryPG
0030:         *  @see NewLogisticsInventoryPG
0031:         **/package org.cougaar.logistics.plugin.inventory;
0032:
0033:        import org.cougaar.planning.ldm.measure.*;
0034:        import org.cougaar.planning.ldm.asset.*;
0035:        import org.cougaar.planning.ldm.plan.*;
0036:        import java.util.*;
0037:
0038:        import org.cougaar.logistics.plugin.inventory.InventoryPlugin;
0039:        import org.cougaar.logistics.plugin.inventory.InventoryManager;
0040:        import org.cougaar.glm.ldm.asset.Inventory;
0041:        import org.cougaar.glm.ldm.asset.Organization;
0042:
0043:        import java.io.ObjectOutputStream;
0044:        import java.io.ObjectInputStream;
0045:        import java.io.IOException;
0046:        import java.beans.PropertyDescriptor;
0047:        import java.beans.IndexedPropertyDescriptor;
0048:
0049:        public class LogisticsInventoryPGImpl extends java.beans.SimpleBeanInfo
0050:                implements  NewLogisticsInventoryPG, Cloneable {
0051:            public LogisticsInventoryPGImpl() {
0052:            }
0053:
0054:            // Slots
0055:
0056:            private Asset theMei;
0057:
0058:            public Asset getMei() {
0059:                return theMei;
0060:            }
0061:
0062:            public void setMei(Asset mei) {
0063:                theMei = mei;
0064:            }
0065:
0066:            private Asset theResource;
0067:
0068:            public Asset getResource() {
0069:                return theResource;
0070:            }
0071:
0072:            public void setResource(Asset resource) {
0073:                theResource = resource;
0074:            }
0075:
0076:            private double theCapacity;
0077:
0078:            public double getCapacity() {
0079:                return theCapacity;
0080:            }
0081:
0082:            public void setCapacity(double capacity) {
0083:                theCapacity = capacity;
0084:            }
0085:
0086:            private boolean theFillToCapacity;
0087:
0088:            public boolean getFillToCapacity() {
0089:                return theFillToCapacity;
0090:            }
0091:
0092:            public void setFillToCapacity(boolean fillToCapacity) {
0093:                theFillToCapacity = fillToCapacity;
0094:            }
0095:
0096:            private long theSupplierArrivalTime;
0097:
0098:            public long getSupplierArrivalTime() {
0099:                return theSupplierArrivalTime;
0100:            }
0101:
0102:            public void setSupplierArrivalTime(long supplierArrivalTime) {
0103:                theSupplierArrivalTime = supplierArrivalTime;
0104:            }
0105:
0106:            private double theInitialLevel;
0107:
0108:            public double getInitialLevel() {
0109:                return theInitialLevel;
0110:            }
0111:
0112:            public void setInitialLevel(double initialLevel) {
0113:                theInitialLevel = initialLevel;
0114:            }
0115:
0116:            private boolean theIsLevel2;
0117:
0118:            public boolean getIsLevel2() {
0119:                return theIsLevel2;
0120:            }
0121:
0122:            public void setIsLevel2(boolean isLevel2) {
0123:                theIsLevel2 = isLevel2;
0124:            }
0125:
0126:            private Organization theOrg;
0127:
0128:            public Organization getOrg() {
0129:                return theOrg;
0130:            }
0131:
0132:            public void setOrg(Organization org) {
0133:                theOrg = org;
0134:            }
0135:
0136:            private LogisticsInventoryBG logInvBG = null;
0137:
0138:            public LogisticsInventoryBG getLogInvBG() {
0139:                return logInvBG;
0140:            }
0141:
0142:            public void setLogInvBG(LogisticsInventoryBG _logInvBG) {
0143:                if (logInvBG != null)
0144:                    throw new IllegalArgumentException("logInvBG already set");
0145:                logInvBG = _logInvBG;
0146:            }
0147:
0148:            public void initialize(long today, long oplanEndTime,
0149:                    int critLevel, int reorderPeriod, int ost, long bucketSize,
0150:                    long now, boolean logToCSV, InventoryManager parentPlugin) {
0151:                logInvBG.initialize(today, oplanEndTime, critLevel,
0152:                        reorderPeriod, ost, bucketSize, now, logToCSV,
0153:                        parentPlugin);
0154:            }
0155:
0156:            public void addWithdrawProjection(Task task) {
0157:                logInvBG.addWithdrawProjection(task);
0158:            }
0159:
0160:            public double getProjectionTaskDemand(Task task, int bucket,
0161:                    long start, long end) {
0162:                return logInvBG.getProjectionTaskDemand(task, bucket, start,
0163:                        end);
0164:            }
0165:
0166:            public void addWithdrawRequisition(Task task) {
0167:                logInvBG.addWithdrawRequisition(task);
0168:            }
0169:
0170:            public void removeWithdrawProjection(Task task) {
0171:                logInvBG.removeWithdrawProjection(task);
0172:            }
0173:
0174:            public void removeWithdrawRequisition(Task task) {
0175:                logInvBG.removeWithdrawRequisition(task);
0176:            }
0177:
0178:            public void addRefillRequisition(Task task) {
0179:                logInvBG.addRefillRequisition(task);
0180:            }
0181:
0182:            public int getLastWithdrawBucket() {
0183:                return logInvBG.getLastWithdrawBucket();
0184:            }
0185:
0186:            public int getFirstProjectWithdrawBucket() {
0187:                return logInvBG.getFirstProjectWithdrawBucket();
0188:            }
0189:
0190:            public int getLastRefillRequisition() {
0191:                return logInvBG.getLastRefillRequisition();
0192:            }
0193:
0194:            public int getLastDemandBucket() {
0195:                return logInvBG.getLastDemandBucket();
0196:            }
0197:
0198:            public void addRefillProjection(Task task) {
0199:                logInvBG.addRefillProjection(task);
0200:            }
0201:
0202:            public void setEndOfLevelSixBucket(int bucket) {
0203:                logInvBG.setEndOfLevelSixBucket(bucket);
0204:            }
0205:
0206:            public int getEndOfLevelSixBucket() {
0207:                return logInvBG.getEndOfLevelSixBucket();
0208:            }
0209:
0210:            public void removeRefillProjection(Task task) {
0211:                logInvBG.removeRefillProjection(task);
0212:            }
0213:
0214:            public void removeRefillRequisition(Task task) {
0215:                logInvBG.removeRefillRequisition(task);
0216:            }
0217:
0218:            public List clearRefillTasks(Date now) {
0219:                return logInvBG.clearRefillTasks(now);
0220:            }
0221:
0222:            public List clearRefillProjectionTasks(long now) {
0223:                return logInvBG.clearRefillProjectionTasks(now);
0224:            }
0225:
0226:            public List getOverlappingRefillProjections() {
0227:                return logInvBG.getOverlappingRefillProjections();
0228:            }
0229:
0230:            public ArrayList getRefillRequisitions() {
0231:                return logInvBG.getRefillRequisitions();
0232:            }
0233:
0234:            public ArrayList getRefillProjection(int bucket) {
0235:                return logInvBG.getRefillProjection(bucket);
0236:            }
0237:
0238:            public double getCriticalLevel(int bucket) {
0239:                return logInvBG.getCriticalLevel(bucket);
0240:            }
0241:
0242:            public double getLevel(int bucket) {
0243:                return logInvBG.getLevel(bucket);
0244:            }
0245:
0246:            public void setLevel(int bucket, double value) {
0247:                logInvBG.setLevel(bucket, value);
0248:            }
0249:
0250:            public void setTarget(int bucket, double value) {
0251:                logInvBG.setTarget(bucket, value);
0252:            }
0253:
0254:            public void updateRefillRequisition(Task task) {
0255:                logInvBG.updateRefillRequisition(task);
0256:            }
0257:
0258:            public void updateWithdrawRequisition(Task task) {
0259:                logInvBG.updateWithdrawRequisition(task);
0260:            }
0261:
0262:            public void updateRefillProjection(Task task) {
0263:                logInvBG.updateRefillProjection(task);
0264:            }
0265:
0266:            public void updateWithdrawProjection(Task task) {
0267:                logInvBG.updateWithdrawProjection(task);
0268:            }
0269:
0270:            public double getProjectedDemand(int bucket) {
0271:                return logInvBG.getProjectedDemand(bucket);
0272:            }
0273:
0274:            public Collection getProjectedDemandTasks(int bucket) {
0275:                return logInvBG.getProjectedDemandTasks(bucket);
0276:            }
0277:
0278:            public double getActualDemand(int bucket) {
0279:                return logInvBG.getActualDemand(bucket);
0280:            }
0281:
0282:            public Collection getActualDemandTasks(int bucket) {
0283:                return logInvBG.getActualDemandTasks(bucket);
0284:            }
0285:
0286:            public double getReorderPeriod() {
0287:                return logInvBG.getReorderPeriod();
0288:            }
0289:
0290:            public Collection getWithdrawTasks(int bucket) {
0291:                return logInvBG.getWithdrawTasks(bucket);
0292:            }
0293:
0294:            public Collection getProjectWithdrawTasks(int bucket) {
0295:                return logInvBG.getProjectWithdrawTasks(bucket);
0296:            }
0297:
0298:            public void rebuildCustomerHash() {
0299:                logInvBG.rebuildCustomerHash();
0300:            }
0301:
0302:            public long convertBucketToTime(int bucket) {
0303:                return logInvBG.convertBucketToTime(bucket);
0304:            }
0305:
0306:            public int convertTimeToBucket(long time, boolean partialBuckets) {
0307:                return logInvBG.convertTimeToBucket(time, partialBuckets);
0308:            }
0309:
0310:            public long getBucketMillis() {
0311:                return logInvBG.getBucketMillis();
0312:            }
0313:
0314:            public long getStartTime() {
0315:                return logInvBG.getStartTime();
0316:            }
0317:
0318:            public int getStartBucket() {
0319:                return logInvBG.getStartBucket();
0320:            }
0321:
0322:            public HashMap getCustomerHash() {
0323:                return logInvBG.getCustomerHash();
0324:            }
0325:
0326:            public void logAllToCSVFile(long aCycleStamp) {
0327:                logInvBG.logAllToCSVFile(aCycleStamp);
0328:            }
0329:
0330:            public int getCriticalLevel() {
0331:                return logInvBG.getCriticalLevel();
0332:            }
0333:
0334:            public boolean getFailuresFlag() {
0335:                return logInvBG.getFailuresFlag();
0336:            }
0337:
0338:            public void setFailuresFlag(boolean value) {
0339:                logInvBG.setFailuresFlag(value);
0340:            }
0341:
0342:            public void setArrivalTime(long arrivalTime) {
0343:                logInvBG.setArrivalTime(arrivalTime);
0344:            }
0345:
0346:            public long getArrivalTime() {
0347:                return logInvBG.getArrivalTime();
0348:            }
0349:
0350:            public void setStartCDay(long startCTime) {
0351:                logInvBG.setStartCDay(startCTime);
0352:            }
0353:
0354:            public void Test() {
0355:                logInvBG.Test();
0356:            }
0357:
0358:            public void takeSnapshot(Inventory inventory) {
0359:                logInvBG.takeSnapshot(inventory);
0360:            }
0361:
0362:            public ArrayList getProjWithdrawList() {
0363:                return logInvBG.getProjWithdrawList();
0364:            }
0365:
0366:            public ArrayList getWithdrawList() {
0367:                return logInvBG.getWithdrawList();
0368:            }
0369:
0370:            public ArrayList getProjSupplyList() {
0371:                return logInvBG.getProjSupplyList();
0372:            }
0373:
0374:            public ArrayList getSupplyList() {
0375:                return logInvBG.getSupplyList();
0376:            }
0377:
0378:            public Schedule getBufferedCritLevels() {
0379:                return logInvBG.getBufferedCritLevels();
0380:            }
0381:
0382:            public Schedule getBufferedInvLevels() {
0383:                return logInvBG.getBufferedInvLevels();
0384:            }
0385:
0386:            public Schedule getBufferedTargetLevels() {
0387:                return logInvBG.getBufferedTargetLevels();
0388:            }
0389:
0390:            public ArrayList getActualDemandTasksList() {
0391:                return logInvBG.getActualDemandTasksList();
0392:            }
0393:
0394:            public long getEffectiveProjectionStart(Task task, long start) {
0395:                return logInvBG.getEffectiveProjectionStart(task, start);
0396:            }
0397:
0398:            public void reinitialize(boolean logToCSV,
0399:                    InventoryManager parentPlugin) {
0400:                logInvBG.reinitialize(logToCSV, parentPlugin);
0401:            }
0402:
0403:            public void clearTargetLevels(int startBucket) {
0404:                logInvBG.clearTargetLevels(startBucket);
0405:            }
0406:
0407:            public void recalculateInitialLevel() {
0408:                logInvBG.recalculateInitialLevel();
0409:            }
0410:
0411:            public ShortfallInventory checkForShortfall(String invID,
0412:                    String unitOfIssue) {
0413:                return logInvBG.checkForShortfall(invID, unitOfIssue);
0414:            }
0415:
0416:            public String getItemName() {
0417:                return logInvBG.getItemName();
0418:            }
0419:
0420:            public LogisticsInventoryPGImpl(LogisticsInventoryPG original) {
0421:                theMei = original.getMei();
0422:                theResource = original.getResource();
0423:                theCapacity = original.getCapacity();
0424:                theFillToCapacity = original.getFillToCapacity();
0425:                theSupplierArrivalTime = original.getSupplierArrivalTime();
0426:                theInitialLevel = original.getInitialLevel();
0427:                theIsLevel2 = original.getIsLevel2();
0428:                theOrg = original.getOrg();
0429:            }
0430:
0431:            public boolean equals(Object other) {
0432:
0433:                if (!(other instanceof  LogisticsInventoryPG)) {
0434:                    return false;
0435:                }
0436:
0437:                LogisticsInventoryPG otherLogisticsInventoryPG = (LogisticsInventoryPG) other;
0438:
0439:                if (getMei() == null) {
0440:                    if (otherLogisticsInventoryPG.getMei() != null) {
0441:                        return false;
0442:                    }
0443:                } else if (!(getMei()
0444:                        .equals(otherLogisticsInventoryPG.getMei()))) {
0445:                    return false;
0446:                }
0447:
0448:                if (getResource() == null) {
0449:                    if (otherLogisticsInventoryPG.getResource() != null) {
0450:                        return false;
0451:                    }
0452:                } else if (!(getResource().equals(otherLogisticsInventoryPG
0453:                        .getResource()))) {
0454:                    return false;
0455:                }
0456:
0457:                if (!(getCapacity() == otherLogisticsInventoryPG.getCapacity())) {
0458:                    return false;
0459:                }
0460:
0461:                if (!(getFillToCapacity() == otherLogisticsInventoryPG
0462:                        .getFillToCapacity())) {
0463:                    return false;
0464:                }
0465:
0466:                if (!(getSupplierArrivalTime() == otherLogisticsInventoryPG
0467:                        .getSupplierArrivalTime())) {
0468:                    return false;
0469:                }
0470:
0471:                if (!(getInitialLevel() == otherLogisticsInventoryPG
0472:                        .getInitialLevel())) {
0473:                    return false;
0474:                }
0475:
0476:                if (!(getIsLevel2() == otherLogisticsInventoryPG.getIsLevel2())) {
0477:                    return false;
0478:                }
0479:
0480:                if (getOrg() == null) {
0481:                    if (otherLogisticsInventoryPG.getOrg() != null) {
0482:                        return false;
0483:                    }
0484:                } else if (!(getOrg()
0485:                        .equals(otherLogisticsInventoryPG.getOrg()))) {
0486:                    return false;
0487:                }
0488:
0489:                if (other instanceof  LogisticsInventoryPGImpl) {
0490:                    if (getLogInvBG() == null) {
0491:                        if (((LogisticsInventoryPGImpl) otherLogisticsInventoryPG)
0492:                                .getLogInvBG() != null) {
0493:                            return false;
0494:                        }
0495:                    } else if (!(getLogInvBG()
0496:                            .equals(((LogisticsInventoryPGImpl) otherLogisticsInventoryPG)
0497:                                    .getLogInvBG()))) {
0498:                        return false;
0499:                    }
0500:
0501:                }
0502:                return true;
0503:            }
0504:
0505:            public boolean hasDataQuality() {
0506:                return false;
0507:            }
0508:
0509:            public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
0510:                return null;
0511:            }
0512:
0513:            // static inner extension class for real DataQuality Support
0514:            public final static class DQ extends LogisticsInventoryPGImpl
0515:                    implements  org.cougaar.planning.ldm.dq.NewHasDataQuality {
0516:                public DQ() {
0517:                    super ();
0518:                }
0519:
0520:                public DQ(LogisticsInventoryPG original) {
0521:                    super (original);
0522:                }
0523:
0524:                public Object clone() {
0525:                    return new DQ(this );
0526:                }
0527:
0528:                private transient org.cougaar.planning.ldm.dq.DataQuality _dq = null;
0529:
0530:                public boolean hasDataQuality() {
0531:                    return (_dq != null);
0532:                }
0533:
0534:                public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
0535:                    return _dq;
0536:                }
0537:
0538:                public void setDataQuality(
0539:                        org.cougaar.planning.ldm.dq.DataQuality dq) {
0540:                    _dq = dq;
0541:                }
0542:
0543:                private void writeObject(ObjectOutputStream out)
0544:                        throws IOException {
0545:                    out.defaultWriteObject();
0546:                    if (out instanceof  org.cougaar.core.persist.PersistenceOutputStream)
0547:                        out.writeObject(_dq);
0548:                }
0549:
0550:                private void readObject(ObjectInputStream in)
0551:                        throws ClassNotFoundException, IOException {
0552:                    in.defaultReadObject();
0553:                    if (in instanceof  org.cougaar.core.persist.PersistenceInputStream)
0554:                        _dq = (org.cougaar.planning.ldm.dq.DataQuality) in
0555:                                .readObject();
0556:                }
0557:
0558:                private final static PropertyDescriptor properties[] = new PropertyDescriptor[1];
0559:                static {
0560:                    try {
0561:                        properties[0] = new PropertyDescriptor("dataQuality",
0562:                                DQ.class, "getDataQuality", null);
0563:                    } catch (Exception e) {
0564:                        e.printStackTrace();
0565:                    }
0566:                }
0567:
0568:                public PropertyDescriptor[] getPropertyDescriptors() {
0569:                    PropertyDescriptor[] pds = super .properties;
0570:                    PropertyDescriptor[] ps = new PropertyDescriptor[pds.length
0571:                            + properties.length];
0572:                    System.arraycopy(pds, 0, ps, 0, pds.length);
0573:                    System.arraycopy(properties, 0, ps, pds.length,
0574:                            properties.length);
0575:                    return ps;
0576:                }
0577:            }
0578:
0579:            private transient LogisticsInventoryPG _locked = null;
0580:
0581:            public PropertyGroup lock(Object key) {
0582:                if (_locked == null)
0583:                    _locked = new _Locked(key);
0584:                return _locked;
0585:            }
0586:
0587:            public PropertyGroup lock() {
0588:                return lock(null);
0589:            }
0590:
0591:            public NewPropertyGroup unlock(Object key) {
0592:                return this ;
0593:            }
0594:
0595:            public Object clone() throws CloneNotSupportedException {
0596:                LogisticsInventoryPGImpl _tmp = new LogisticsInventoryPGImpl(
0597:                        this );
0598:                if (logInvBG != null) {
0599:                    _tmp.logInvBG = (LogisticsInventoryBG) logInvBG.copy(_tmp);
0600:                }
0601:                return _tmp;
0602:            }
0603:
0604:            public PropertyGroup copy() {
0605:                try {
0606:                    return (PropertyGroup) clone();
0607:                } catch (CloneNotSupportedException cnse) {
0608:                    return null;
0609:                }
0610:            }
0611:
0612:            public Class getPrimaryClass() {
0613:                return primaryClass;
0614:            }
0615:
0616:            public String getAssetGetMethod() {
0617:                return assetGetter;
0618:            }
0619:
0620:            public String getAssetSetMethod() {
0621:                return assetSetter;
0622:            }
0623:
0624:            private final static PropertyDescriptor properties[] = new PropertyDescriptor[8];
0625:            static {
0626:                try {
0627:                    properties[0] = new PropertyDescriptor("mei",
0628:                            LogisticsInventoryPG.class, "getMei", null);
0629:                    properties[1] = new PropertyDescriptor("resource",
0630:                            LogisticsInventoryPG.class, "getResource", null);
0631:                    properties[2] = new PropertyDescriptor("capacity",
0632:                            LogisticsInventoryPG.class, "getCapacity", null);
0633:                    properties[3] = new PropertyDescriptor("fillToCapacity",
0634:                            LogisticsInventoryPG.class, "getFillToCapacity",
0635:                            null);
0636:                    properties[4] = new PropertyDescriptor(
0637:                            "supplierArrivalTime", LogisticsInventoryPG.class,
0638:                            "getSupplierArrivalTime", null);
0639:                    properties[5] = new PropertyDescriptor("initialLevel",
0640:                            LogisticsInventoryPG.class, "getInitialLevel", null);
0641:                    properties[6] = new PropertyDescriptor("isLevel2",
0642:                            LogisticsInventoryPG.class, "getIsLevel2", null);
0643:                    properties[7] = new PropertyDescriptor("org",
0644:                            LogisticsInventoryPG.class, "getOrg", null);
0645:                } catch (Exception e) {
0646:                    org.cougaar.util.log.Logging.getLogger(
0647:                            LogisticsInventoryPG.class).error(
0648:                            "Caught exception", e);
0649:                }
0650:            }
0651:
0652:            public PropertyDescriptor[] getPropertyDescriptors() {
0653:                return properties;
0654:            }
0655:
0656:            private final class _Locked extends java.beans.SimpleBeanInfo
0657:                    implements  LogisticsInventoryPG, Cloneable, LockedPG {
0658:                private transient Object theKey = null;
0659:
0660:                _Locked(Object key) {
0661:                    if (this .theKey == null)
0662:                        this .theKey = key;
0663:                }
0664:
0665:                public _Locked() {
0666:                }
0667:
0668:                public PropertyGroup lock() {
0669:                    return this ;
0670:                }
0671:
0672:                public PropertyGroup lock(Object o) {
0673:                    return this ;
0674:                }
0675:
0676:                public NewPropertyGroup unlock(Object key)
0677:                        throws IllegalAccessException {
0678:                    if (theKey.equals(key)) {
0679:                        return LogisticsInventoryPGImpl.this ;
0680:                    } else {
0681:                        throw new IllegalAccessException(
0682:                                "unlock: mismatched internal and provided keys!");
0683:                    }
0684:                }
0685:
0686:                public PropertyGroup copy() {
0687:                    try {
0688:                        return (PropertyGroup) clone();
0689:                    } catch (CloneNotSupportedException cnse) {
0690:                        return null;
0691:                    }
0692:                }
0693:
0694:                public Object clone() throws CloneNotSupportedException {
0695:                    LogisticsInventoryPGImpl _tmp = new LogisticsInventoryPGImpl(
0696:                            this );
0697:                    if (logInvBG != null) {
0698:                        _tmp.logInvBG = (LogisticsInventoryBG) logInvBG
0699:                                .copy(_tmp);
0700:                    }
0701:                    return _tmp;
0702:                }
0703:
0704:                public boolean equals(Object object) {
0705:                    return LogisticsInventoryPGImpl.this .equals(object);
0706:                }
0707:
0708:                public Asset getMei() {
0709:                    return LogisticsInventoryPGImpl.this .getMei();
0710:                }
0711:
0712:                public Asset getResource() {
0713:                    return LogisticsInventoryPGImpl.this .getResource();
0714:                }
0715:
0716:                public double getCapacity() {
0717:                    return LogisticsInventoryPGImpl.this .getCapacity();
0718:                }
0719:
0720:                public boolean getFillToCapacity() {
0721:                    return LogisticsInventoryPGImpl.this .getFillToCapacity();
0722:                }
0723:
0724:                public long getSupplierArrivalTime() {
0725:                    return LogisticsInventoryPGImpl.this 
0726:                            .getSupplierArrivalTime();
0727:                }
0728:
0729:                public double getInitialLevel() {
0730:                    return LogisticsInventoryPGImpl.this .getInitialLevel();
0731:                }
0732:
0733:                public boolean getIsLevel2() {
0734:                    return LogisticsInventoryPGImpl.this .getIsLevel2();
0735:                }
0736:
0737:                public Organization getOrg() {
0738:                    return LogisticsInventoryPGImpl.this .getOrg();
0739:                }
0740:
0741:                public void initialize(long today, long oplanEndTime,
0742:                        int critLevel, int reorderPeriod, int ost,
0743:                        long bucketSize, long now, boolean logToCSV,
0744:                        InventoryManager parentPlugin) {
0745:                    LogisticsInventoryPGImpl.this .initialize(today,
0746:                            oplanEndTime, critLevel, reorderPeriod, ost,
0747:                            bucketSize, now, logToCSV, parentPlugin);
0748:                }
0749:
0750:                public void addWithdrawProjection(Task task) {
0751:                    LogisticsInventoryPGImpl.this .addWithdrawProjection(task);
0752:                }
0753:
0754:                public double getProjectionTaskDemand(Task task, int bucket,
0755:                        long start, long end) {
0756:                    return LogisticsInventoryPGImpl.this 
0757:                            .getProjectionTaskDemand(task, bucket, start, end);
0758:                }
0759:
0760:                public void addWithdrawRequisition(Task task) {
0761:                    LogisticsInventoryPGImpl.this .addWithdrawRequisition(task);
0762:                }
0763:
0764:                public void removeWithdrawProjection(Task task) {
0765:                    LogisticsInventoryPGImpl.this 
0766:                            .removeWithdrawProjection(task);
0767:                }
0768:
0769:                public void removeWithdrawRequisition(Task task) {
0770:                    LogisticsInventoryPGImpl.this 
0771:                            .removeWithdrawRequisition(task);
0772:                }
0773:
0774:                public void addRefillRequisition(Task task) {
0775:                    LogisticsInventoryPGImpl.this .addRefillRequisition(task);
0776:                }
0777:
0778:                public int getLastWithdrawBucket() {
0779:                    return LogisticsInventoryPGImpl.this 
0780:                            .getLastWithdrawBucket();
0781:                }
0782:
0783:                public int getFirstProjectWithdrawBucket() {
0784:                    return LogisticsInventoryPGImpl.this 
0785:                            .getFirstProjectWithdrawBucket();
0786:                }
0787:
0788:                public int getLastRefillRequisition() {
0789:                    return LogisticsInventoryPGImpl.this 
0790:                            .getLastRefillRequisition();
0791:                }
0792:
0793:                public int getLastDemandBucket() {
0794:                    return LogisticsInventoryPGImpl.this .getLastDemandBucket();
0795:                }
0796:
0797:                public void addRefillProjection(Task task) {
0798:                    LogisticsInventoryPGImpl.this .addRefillProjection(task);
0799:                }
0800:
0801:                public void setEndOfLevelSixBucket(int bucket) {
0802:                    LogisticsInventoryPGImpl.this 
0803:                            .setEndOfLevelSixBucket(bucket);
0804:                }
0805:
0806:                public int getEndOfLevelSixBucket() {
0807:                    return LogisticsInventoryPGImpl.this 
0808:                            .getEndOfLevelSixBucket();
0809:                }
0810:
0811:                public void removeRefillProjection(Task task) {
0812:                    LogisticsInventoryPGImpl.this .removeRefillProjection(task);
0813:                }
0814:
0815:                public void removeRefillRequisition(Task task) {
0816:                    LogisticsInventoryPGImpl.this .removeRefillRequisition(task);
0817:                }
0818:
0819:                public List clearRefillTasks(Date now) {
0820:                    return LogisticsInventoryPGImpl.this .clearRefillTasks(now);
0821:                }
0822:
0823:                public List clearRefillProjectionTasks(long now) {
0824:                    return LogisticsInventoryPGImpl.this 
0825:                            .clearRefillProjectionTasks(now);
0826:                }
0827:
0828:                public List getOverlappingRefillProjections() {
0829:                    return LogisticsInventoryPGImpl.this 
0830:                            .getOverlappingRefillProjections();
0831:                }
0832:
0833:                public ArrayList getRefillRequisitions() {
0834:                    return LogisticsInventoryPGImpl.this 
0835:                            .getRefillRequisitions();
0836:                }
0837:
0838:                public ArrayList getRefillProjection(int bucket) {
0839:                    return LogisticsInventoryPGImpl.this 
0840:                            .getRefillProjection(bucket);
0841:                }
0842:
0843:                public double getCriticalLevel(int bucket) {
0844:                    return LogisticsInventoryPGImpl.this 
0845:                            .getCriticalLevel(bucket);
0846:                }
0847:
0848:                public double getLevel(int bucket) {
0849:                    return LogisticsInventoryPGImpl.this .getLevel(bucket);
0850:                }
0851:
0852:                public void setLevel(int bucket, double value) {
0853:                    LogisticsInventoryPGImpl.this .setLevel(bucket, value);
0854:                }
0855:
0856:                public void setTarget(int bucket, double value) {
0857:                    LogisticsInventoryPGImpl.this .setTarget(bucket, value);
0858:                }
0859:
0860:                public void updateRefillRequisition(Task task) {
0861:                    LogisticsInventoryPGImpl.this .updateRefillRequisition(task);
0862:                }
0863:
0864:                public void updateWithdrawRequisition(Task task) {
0865:                    LogisticsInventoryPGImpl.this 
0866:                            .updateWithdrawRequisition(task);
0867:                }
0868:
0869:                public void updateRefillProjection(Task task) {
0870:                    LogisticsInventoryPGImpl.this .updateRefillProjection(task);
0871:                }
0872:
0873:                public void updateWithdrawProjection(Task task) {
0874:                    LogisticsInventoryPGImpl.this 
0875:                            .updateWithdrawProjection(task);
0876:                }
0877:
0878:                public double getProjectedDemand(int bucket) {
0879:                    return LogisticsInventoryPGImpl.this 
0880:                            .getProjectedDemand(bucket);
0881:                }
0882:
0883:                public Collection getProjectedDemandTasks(int bucket) {
0884:                    return LogisticsInventoryPGImpl.this 
0885:                            .getProjectedDemandTasks(bucket);
0886:                }
0887:
0888:                public double getActualDemand(int bucket) {
0889:                    return LogisticsInventoryPGImpl.this 
0890:                            .getActualDemand(bucket);
0891:                }
0892:
0893:                public Collection getActualDemandTasks(int bucket) {
0894:                    return LogisticsInventoryPGImpl.this 
0895:                            .getActualDemandTasks(bucket);
0896:                }
0897:
0898:                public double getReorderPeriod() {
0899:                    return LogisticsInventoryPGImpl.this .getReorderPeriod();
0900:                }
0901:
0902:                public Collection getWithdrawTasks(int bucket) {
0903:                    return LogisticsInventoryPGImpl.this 
0904:                            .getWithdrawTasks(bucket);
0905:                }
0906:
0907:                public Collection getProjectWithdrawTasks(int bucket) {
0908:                    return LogisticsInventoryPGImpl.this 
0909:                            .getProjectWithdrawTasks(bucket);
0910:                }
0911:
0912:                public void rebuildCustomerHash() {
0913:                    LogisticsInventoryPGImpl.this .rebuildCustomerHash();
0914:                }
0915:
0916:                public long convertBucketToTime(int bucket) {
0917:                    return LogisticsInventoryPGImpl.this 
0918:                            .convertBucketToTime(bucket);
0919:                }
0920:
0921:                public int convertTimeToBucket(long time, boolean partialBuckets) {
0922:                    return LogisticsInventoryPGImpl.this .convertTimeToBucket(
0923:                            time, partialBuckets);
0924:                }
0925:
0926:                public long getBucketMillis() {
0927:                    return LogisticsInventoryPGImpl.this .getBucketMillis();
0928:                }
0929:
0930:                public long getStartTime() {
0931:                    return LogisticsInventoryPGImpl.this .getStartTime();
0932:                }
0933:
0934:                public int getStartBucket() {
0935:                    return LogisticsInventoryPGImpl.this .getStartBucket();
0936:                }
0937:
0938:                public HashMap getCustomerHash() {
0939:                    return LogisticsInventoryPGImpl.this .getCustomerHash();
0940:                }
0941:
0942:                public void logAllToCSVFile(long aCycleStamp) {
0943:                    LogisticsInventoryPGImpl.this .logAllToCSVFile(aCycleStamp);
0944:                }
0945:
0946:                public int getCriticalLevel() {
0947:                    return LogisticsInventoryPGImpl.this .getCriticalLevel();
0948:                }
0949:
0950:                public boolean getFailuresFlag() {
0951:                    return LogisticsInventoryPGImpl.this .getFailuresFlag();
0952:                }
0953:
0954:                public void setFailuresFlag(boolean value) {
0955:                    LogisticsInventoryPGImpl.this .setFailuresFlag(value);
0956:                }
0957:
0958:                public void setArrivalTime(long arrivalTime) {
0959:                    LogisticsInventoryPGImpl.this .setArrivalTime(arrivalTime);
0960:                }
0961:
0962:                public long getArrivalTime() {
0963:                    return LogisticsInventoryPGImpl.this .getArrivalTime();
0964:                }
0965:
0966:                public void setStartCDay(long startCTime) {
0967:                    LogisticsInventoryPGImpl.this .setStartCDay(startCTime);
0968:                }
0969:
0970:                public void Test() {
0971:                    LogisticsInventoryPGImpl.this .Test();
0972:                }
0973:
0974:                public void takeSnapshot(Inventory inventory) {
0975:                    LogisticsInventoryPGImpl.this .takeSnapshot(inventory);
0976:                }
0977:
0978:                public ArrayList getProjWithdrawList() {
0979:                    return LogisticsInventoryPGImpl.this .getProjWithdrawList();
0980:                }
0981:
0982:                public ArrayList getWithdrawList() {
0983:                    return LogisticsInventoryPGImpl.this .getWithdrawList();
0984:                }
0985:
0986:                public ArrayList getProjSupplyList() {
0987:                    return LogisticsInventoryPGImpl.this .getProjSupplyList();
0988:                }
0989:
0990:                public ArrayList getSupplyList() {
0991:                    return LogisticsInventoryPGImpl.this .getSupplyList();
0992:                }
0993:
0994:                public Schedule getBufferedCritLevels() {
0995:                    return LogisticsInventoryPGImpl.this 
0996:                            .getBufferedCritLevels();
0997:                }
0998:
0999:                public Schedule getBufferedInvLevels() {
1000:                    return LogisticsInventoryPGImpl.this .getBufferedInvLevels();
1001:                }
1002:
1003:                public Schedule getBufferedTargetLevels() {
1004:                    return LogisticsInventoryPGImpl.this 
1005:                            .getBufferedTargetLevels();
1006:                }
1007:
1008:                public ArrayList getActualDemandTasksList() {
1009:                    return LogisticsInventoryPGImpl.this 
1010:                            .getActualDemandTasksList();
1011:                }
1012:
1013:                public long getEffectiveProjectionStart(Task task, long start) {
1014:                    return LogisticsInventoryPGImpl.this 
1015:                            .getEffectiveProjectionStart(task, start);
1016:                }
1017:
1018:                public void reinitialize(boolean logToCSV,
1019:                        InventoryManager parentPlugin) {
1020:                    LogisticsInventoryPGImpl.this .reinitialize(logToCSV,
1021:                            parentPlugin);
1022:                }
1023:
1024:                public void clearTargetLevels(int startBucket) {
1025:                    LogisticsInventoryPGImpl.this 
1026:                            .clearTargetLevels(startBucket);
1027:                }
1028:
1029:                public void recalculateInitialLevel() {
1030:                    LogisticsInventoryPGImpl.this .recalculateInitialLevel();
1031:                }
1032:
1033:                public ShortfallInventory checkForShortfall(String invID,
1034:                        String unitOfIssue) {
1035:                    return LogisticsInventoryPGImpl.this .checkForShortfall(
1036:                            invID, unitOfIssue);
1037:                }
1038:
1039:                public String getItemName() {
1040:                    return LogisticsInventoryPGImpl.this .getItemName();
1041:                }
1042:
1043:                public final boolean hasDataQuality() {
1044:                    return LogisticsInventoryPGImpl.this .hasDataQuality();
1045:                }
1046:
1047:                public final org.cougaar.planning.ldm.dq.DataQuality getDataQuality() {
1048:                    return LogisticsInventoryPGImpl.this .getDataQuality();
1049:                }
1050:
1051:                public Class getPrimaryClass() {
1052:                    return primaryClass;
1053:                }
1054:
1055:                public String getAssetGetMethod() {
1056:                    return assetGetter;
1057:                }
1058:
1059:                public String getAssetSetMethod() {
1060:                    return assetSetter;
1061:                }
1062:
1063:                public PropertyDescriptor[] getPropertyDescriptors() {
1064:                    return properties;
1065:                }
1066:
1067:                public Class getIntrospectionClass() {
1068:                    return LogisticsInventoryPGImpl.class;
1069:                }
1070:
1071:            }
1072:
1073:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.