org.cougaar.tutorial.booksonline.assets
Class VehiclePGImpl

java.lang.Object
  extended byjava.beans.SimpleBeanInfo
      extended byorg.cougaar.tutorial.booksonline.assets.VehiclePGImpl
All Implemented Interfaces:
java.beans.BeanInfo, java.lang.Cloneable, org.cougaar.planning.ldm.dq.HasDataQuality, org.cougaar.planning.ldm.asset.NewPropertyGroup, NewVehiclePG, org.cougaar.planning.ldm.asset.PropertyGroup, java.io.Serializable, VehiclePG
Direct Known Subclasses:
VehiclePGImpl.DQ

public class VehiclePGImpl
extends java.beans.SimpleBeanInfo
implements NewVehiclePG, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class VehiclePGImpl.DQ
           
 
Nested classes inherited from class org.cougaar.tutorial.booksonline.assets.VehiclePG
VehiclePG.Future, VehiclePG.Null_VehiclePG
 
Field Summary
 
Fields inherited from interface org.cougaar.tutorial.booksonline.assets.VehiclePG
assetGetter, assetSetter, factoryClass, factoryMethod, mutableClass, nullPG, primaryClass
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
VehiclePGImpl()
           
VehiclePGImpl(VehiclePG original)
           
 
Method Summary
 java.lang.Object clone()
           
 org.cougaar.planning.ldm.asset.PropertyGroup copy()
           
 java.lang.String getAssetGetMethod()
           
 java.lang.String getAssetSetMethod()
           
 int getCapacity()
          How much can it hold
 int getContainers()
          number of loads waiting for this asset
 org.cougaar.planning.ldm.dq.DataQuality getDataQuality()
           
 boolean getFree()
          vehicle availability
 int getLoad()
          current load
 java.lang.Class getPrimaryClass()
           
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
           
 java.lang.String getRegion()
          what region the vehicle serves
 java.lang.String getType()
          type of vehicle(plane or truck)
 java.lang.String getVid()
          Vehicle ID
 boolean hasDataQuality()
           
 org.cougaar.planning.ldm.asset.PropertyGroup lock()
           
 org.cougaar.planning.ldm.asset.PropertyGroup lock(java.lang.Object key)
           
 void setCapacity(int capacity)
           
 void setContainers(int containers)
           
 void setFree(boolean free)
           
 void setLoad(int load)
           
 void setRegion(java.lang.String region)
           
 void setType(java.lang.String type)
           
 void setVid(java.lang.String vid)
           
 org.cougaar.planning.ldm.asset.NewPropertyGroup unlock(java.lang.Object key)
           
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehiclePGImpl

public VehiclePGImpl()

VehiclePGImpl

public VehiclePGImpl(VehiclePG original)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: VehiclePG
type of vehicle(plane or truck)

Specified by:
getType in interface VehiclePG

setType

public void setType(java.lang.String type)
Specified by:
setType in interface NewVehiclePG

getCapacity

public int getCapacity()
Description copied from interface: VehiclePG
How much can it hold

Specified by:
getCapacity in interface VehiclePG

setCapacity

public void setCapacity(int capacity)
Specified by:
setCapacity in interface NewVehiclePG

getRegion

public java.lang.String getRegion()
Description copied from interface: VehiclePG
what region the vehicle serves

Specified by:
getRegion in interface VehiclePG

setRegion

public void setRegion(java.lang.String region)
Specified by:
setRegion in interface NewVehiclePG

getLoad

public int getLoad()
Description copied from interface: VehiclePG
current load

Specified by:
getLoad in interface VehiclePG

setLoad

public void setLoad(int load)
Specified by:
setLoad in interface NewVehiclePG

getVid

public java.lang.String getVid()
Description copied from interface: VehiclePG
Vehicle ID

Specified by:
getVid in interface VehiclePG

setVid

public void setVid(java.lang.String vid)
Specified by:
setVid in interface NewVehiclePG

getFree

public boolean getFree()
Description copied from interface: VehiclePG
vehicle availability

Specified by:
getFree in interface VehiclePG

setFree

public void setFree(boolean free)
Specified by:
setFree in interface NewVehiclePG

getContainers

public int getContainers()
Description copied from interface: VehiclePG
number of loads waiting for this asset

Specified by:
getContainers in interface VehiclePG

setContainers

public void setContainers(int containers)
Specified by:
setContainers in interface NewVehiclePG

hasDataQuality

public boolean hasDataQuality()
Specified by:
hasDataQuality in interface org.cougaar.planning.ldm.asset.PropertyGroup

getDataQuality

public org.cougaar.planning.ldm.dq.DataQuality getDataQuality()
Specified by:
getDataQuality in interface org.cougaar.planning.ldm.dq.HasDataQuality

lock

public org.cougaar.planning.ldm.asset.PropertyGroup lock(java.lang.Object key)
Specified by:
lock in interface org.cougaar.planning.ldm.asset.PropertyGroup

lock

public org.cougaar.planning.ldm.asset.PropertyGroup lock()
Specified by:
lock in interface org.cougaar.planning.ldm.asset.PropertyGroup

unlock

public org.cougaar.planning.ldm.asset.NewPropertyGroup unlock(java.lang.Object key)
Specified by:
unlock in interface org.cougaar.planning.ldm.asset.PropertyGroup

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Specified by:
clone in interface org.cougaar.planning.ldm.asset.PropertyGroup
Throws:
java.lang.CloneNotSupportedException

copy

public org.cougaar.planning.ldm.asset.PropertyGroup copy()
Specified by:
copy in interface org.cougaar.planning.ldm.asset.PropertyGroup

getPrimaryClass

public java.lang.Class getPrimaryClass()
Specified by:
getPrimaryClass in interface org.cougaar.planning.ldm.asset.PropertyGroup

getAssetGetMethod

public java.lang.String getAssetGetMethod()
Specified by:
getAssetGetMethod in interface org.cougaar.planning.ldm.asset.PropertyGroup

getAssetSetMethod

public java.lang.String getAssetSetMethod()
Specified by:
getAssetSetMethod in interface org.cougaar.planning.ldm.asset.PropertyGroup

getPropertyDescriptors

public java.beans.PropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface java.beans.BeanInfo