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:26:05 EDT 2007 from /u01/builds/cougaar/B12_4/B12_4/070927151721/src/albbn/src/org/cougaar/logistics/ldm/asset/consumerprops.def - DO NOT HAND EDIT */
028: /** AbstractFactory implementation for Properties.
029: * Prevents clients from needing to know the implementation
030: * class(es) of any of the properties.
031: **/package org.cougaar.logistics.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.logistics.ldm.MEIPrototypeProvider;
039: import org.cougaar.logistics.ldm.ClassIConsumerPrototypeProvider;
040: import org.cougaar.util.TimeSpan;
041:
042: public class PropertyGroupFactory {
043: // brand-new instance factory
044: public static NewRationPG newRationPG() {
045: return new RationPGImpl();
046: }
047:
048: // instance from prototype factory
049: public static NewRationPG newRationPG(RationPG prototype) {
050: return new RationPGImpl(prototype);
051: }
052:
053: // brand-new instance factory
054: public static NewPackagedPOLConsumerPG newPackagedPOLConsumerPG() {
055: return new PackagedPOLConsumerPGImpl();
056: }
057:
058: // instance from prototype factory
059: public static NewPackagedPOLConsumerPG newPackagedPOLConsumerPG(
060: PackagedPOLConsumerPG prototype) {
061: return new PackagedPOLConsumerPGImpl(prototype);
062: }
063:
064: // brand-new instance factory
065: public static NewRepairPartConsumerPG newRepairPartConsumerPG() {
066: return new RepairPartConsumerPGImpl();
067: }
068:
069: // instance from prototype factory
070: public static NewRepairPartConsumerPG newRepairPartConsumerPG(
071: RepairPartConsumerPG prototype) {
072: return new RepairPartConsumerPGImpl(prototype);
073: }
074:
075: // brand-new instance factory
076: public static NewSubsistenceConsumerPG newSubsistenceConsumerPG() {
077: return new SubsistenceConsumerPGImpl();
078: }
079:
080: // instance from prototype factory
081: public static NewSubsistenceConsumerPG newSubsistenceConsumerPG(
082: SubsistenceConsumerPG prototype) {
083: return new SubsistenceConsumerPGImpl(prototype);
084: }
085:
086: // brand-new instance factory
087: public static NewAmmoConsumerPG newAmmoConsumerPG() {
088: return new AmmoConsumerPGImpl();
089: }
090:
091: // instance from prototype factory
092: public static NewAmmoConsumerPG newAmmoConsumerPG(
093: AmmoConsumerPG prototype) {
094: return new AmmoConsumerPGImpl(prototype);
095: }
096:
097: // brand-new instance factory
098: public static NewFuelConsumerPG newFuelConsumerPG() {
099: return new FuelConsumerPGImpl();
100: }
101:
102: // instance from prototype factory
103: public static NewFuelConsumerPG newFuelConsumerPG(
104: FuelConsumerPG prototype) {
105: return new FuelConsumerPGImpl(prototype);
106: }
107:
108: /** Abstract introspection information.
109: * Tuples are {<classname>, <factorymethodname>}
110: * return value of <factorymethodname> is <classname>.
111: * <factorymethodname> takes zero or one (prototype) argument.
112: **/
113: public static String properties[][] = {
114: { "org.cougaar.logistics.ldm.asset.RationPG", "newRationPG" },
115: { "org.cougaar.logistics.ldm.asset.PackagedPOLConsumerPG",
116: "newPackagedPOLConsumerPG" },
117: { "org.cougaar.logistics.ldm.asset.RepairPartConsumerPG",
118: "newRepairPartConsumerPG" },
119: { "org.cougaar.logistics.ldm.asset.SubsistenceConsumerPG",
120: "newSubsistenceConsumerPG" },
121: { "org.cougaar.logistics.ldm.asset.AmmoConsumerPG",
122: "newAmmoConsumerPG" },
123: { "org.cougaar.logistics.ldm.asset.FuelConsumerPG",
124: "newFuelConsumerPG" }, };
125: }
|