01: /*
02: * <copyright>
03: *
04: * Copyright 1997-2004 BBNT Solutions, LLC
05: * under sponsorship of the Defense Advanced Research Projects
06: * Agency (DARPA).
07: *
08: * You can redistribute this software and/or modify it under the
09: * terms of the Cougaar Open Source License as published on the
10: * Cougaar Open Source Website (www.cougaar.org).
11: *
12: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
13: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
14: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
15: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
16: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23: *
24: * </copyright>
25: */
26:
27: /* @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 */
28: /** Abstract Asset Skeleton implementation
29: * Implements default property getters, and additional property
30: * lists.
31: * Intended to be extended by org.cougaar.planning.ldm.asset.Asset
32: **/package org.cougaar.logistics.plugin.inventory;
33:
34: import org.cougaar.planning.ldm.measure.*;
35: import org.cougaar.planning.ldm.asset.*;
36: import org.cougaar.planning.ldm.plan.*;
37: import java.util.*;
38:
39: import org.cougaar.logistics.plugin.inventory.InventoryPlugin;
40: import org.cougaar.logistics.plugin.inventory.InventoryManager;
41: import org.cougaar.glm.ldm.asset.Inventory;
42: import org.cougaar.glm.ldm.asset.Organization;
43:
44: import java.io.Serializable;
45: import java.beans.PropertyDescriptor;
46: import java.beans.IndexedPropertyDescriptor;
47:
48: public abstract class AssetSkeleton extends
49: org.cougaar.planning.ldm.asset.Asset {
50:
51: protected AssetSkeleton() {
52: }
53:
54: protected AssetSkeleton(AssetSkeleton prototype) {
55: super (prototype);
56: }
57:
58: /** Default PG accessors **/
59:
60: /** Search additional properties for a LogisticsInventoryPG instance.
61: * @return instance of LogisticsInventoryPG or null.
62: **/
63: public LogisticsInventoryPG getLogisticsInventoryPG() {
64: LogisticsInventoryPG _tmp = (LogisticsInventoryPG) resolvePG(LogisticsInventoryPG.class);
65: return (_tmp == LogisticsInventoryPG.nullPG) ? null : _tmp;
66: }
67:
68: /** Test for existence of a LogisticsInventoryPG
69: **/
70: public boolean hasLogisticsInventoryPG() {
71: return (getLogisticsInventoryPG() != null);
72: }
73:
74: /** Set the LogisticsInventoryPG property.
75: * The default implementation will create a new LogisticsInventoryPG
76: * property and add it to the otherPropertyGroup list.
77: * Many subclasses override with local slots.
78: **/
79: public void setLogisticsInventoryPG(
80: PropertyGroup aLogisticsInventoryPG) {
81: if (aLogisticsInventoryPG == null) {
82: removeOtherPropertyGroup(LogisticsInventoryPG.class);
83: } else {
84: addOtherPropertyGroup(aLogisticsInventoryPG);
85: }
86: }
87:
88: }
|