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:06 EDT 2007 from /u01/builds/cougaar/B12_4/B12_4/070927151721/src/albbn/src/org/cougaar/logistics/plugin/trans/properties.def - DO NOT HAND EDIT */
028: /** Abstract Asset Skeleton implementation
029: * Implements default property getters, and additional property
030: * lists.
031: * Intended to be extended by org.cougaar.planning.ldm.asset.Asset
032: **/package org.cougaar.logistics.plugin.trans;
033:
034: import org.cougaar.planning.ldm.measure.*;
035: import org.cougaar.planning.ldm.asset.*;
036: import org.cougaar.planning.ldm.plan.*;
037: import java.util.*;
038:
039: import org.cougaar.glm.ldm.asset.*;
040:
041: import java.io.Serializable;
042: import java.beans.PropertyDescriptor;
043: import java.beans.IndexedPropertyDescriptor;
044:
045: public abstract class AssetSkeleton extends
046: org.cougaar.planning.ldm.asset.AssetSkeletonBase {
047:
048: protected AssetSkeleton() {
049: }
050:
051: protected AssetSkeleton(AssetSkeleton prototype) {
052: super (prototype);
053: }
054:
055: /** Default PG accessors **/
056:
057: /** Search additional properties for a CargoCatCodeDimensionPG instance.
058: * @return instance of CargoCatCodeDimensionPG or null.
059: **/
060: public CargoCatCodeDimensionPG getCargoCatCodeDimensionPG() {
061: CargoCatCodeDimensionPG _tmp = (CargoCatCodeDimensionPG) resolvePG(CargoCatCodeDimensionPG.class);
062: return (_tmp == CargoCatCodeDimensionPG.nullPG) ? null : _tmp;
063: }
064:
065: /** Test for existence of a CargoCatCodeDimensionPG
066: **/
067: public boolean hasCargoCatCodeDimensionPG() {
068: return (getCargoCatCodeDimensionPG() != null);
069: }
070:
071: /** Set the CargoCatCodeDimensionPG property.
072: * The default implementation will create a new CargoCatCodeDimensionPG
073: * property and add it to the otherPropertyGroup list.
074: * Many subclasses override with local slots.
075: **/
076: public void setCargoCatCodeDimensionPG(
077: PropertyGroup aCargoCatCodeDimensionPG) {
078: if (aCargoCatCodeDimensionPG == null) {
079: removeOtherPropertyGroup(CargoCatCodeDimensionPG.class);
080: } else {
081: addOtherPropertyGroup(aCargoCatCodeDimensionPG);
082: }
083: }
084:
085: /** Search additional properties for a LowFidelityAssetPG instance.
086: * @return instance of LowFidelityAssetPG or null.
087: **/
088: public LowFidelityAssetPG getLowFidelityAssetPG() {
089: LowFidelityAssetPG _tmp = (LowFidelityAssetPG) resolvePG(LowFidelityAssetPG.class);
090: return (_tmp == LowFidelityAssetPG.nullPG) ? null : _tmp;
091: }
092:
093: /** Test for existence of a LowFidelityAssetPG
094: **/
095: public boolean hasLowFidelityAssetPG() {
096: return (getLowFidelityAssetPG() != null);
097: }
098:
099: /** Set the LowFidelityAssetPG property.
100: * The default implementation will create a new LowFidelityAssetPG
101: * property and add it to the otherPropertyGroup list.
102: * Many subclasses override with local slots.
103: **/
104: public void setLowFidelityAssetPG(PropertyGroup aLowFidelityAssetPG) {
105: if (aLowFidelityAssetPG == null) {
106: removeOtherPropertyGroup(LowFidelityAssetPG.class);
107: } else {
108: addOtherPropertyGroup(aLowFidelityAssetPG);
109: }
110: }
111:
112: }
|