org.cougaar.tutorial.booksonline.assets
Class PricePGImpl

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

public class PricePGImpl
extends java.beans.SimpleBeanInfo
implements NewPricePG, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class PricePGImpl.DQ
           
 
Nested classes inherited from class org.cougaar.tutorial.booksonline.assets.PricePG
PricePG.Future, PricePG.Null_PricePG
 
Field Summary
 
Fields inherited from interface org.cougaar.tutorial.booksonline.assets.PricePG
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
PricePGImpl()
           
PricePGImpl(PricePG original)
           
 
Method Summary
 java.lang.Object clone()
           
 org.cougaar.planning.ldm.asset.PropertyGroup copy()
           
 java.lang.String getAssetGetMethod()
           
 java.lang.String getAssetSetMethod()
           
 org.cougaar.planning.ldm.dq.DataQuality getDataQuality()
           
 long getEndDateOfDiscount()
          Date special pricing ends, if ever
 float getListPrice()
          suggested price by Publisher
 float getOurPrice()
          price we charge
 java.lang.Class getPrimaryClass()
           
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
           
 boolean hasDataQuality()
           
 org.cougaar.planning.ldm.asset.PropertyGroup lock()
           
 org.cougaar.planning.ldm.asset.PropertyGroup lock(java.lang.Object key)
           
 void setEndDateOfDiscount(long endDateOfDiscount)
           
 void setListPrice(float listPrice)
           
 void setOurPrice(float ourPrice)
           
 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

PricePGImpl

public PricePGImpl()

PricePGImpl

public PricePGImpl(PricePG original)
Method Detail

getListPrice

public float getListPrice()
Description copied from interface: PricePG
suggested price by Publisher

Specified by:
getListPrice in interface PricePG

setListPrice

public void setListPrice(float listPrice)
Specified by:
setListPrice in interface NewPricePG

getOurPrice

public float getOurPrice()
Description copied from interface: PricePG
price we charge

Specified by:
getOurPrice in interface PricePG

setOurPrice

public void setOurPrice(float ourPrice)
Specified by:
setOurPrice in interface NewPricePG

getEndDateOfDiscount

public long getEndDateOfDiscount()
Description copied from interface: PricePG
Date special pricing ends, if ever

Specified by:
getEndDateOfDiscount in interface PricePG

setEndDateOfDiscount

public void setEndDateOfDiscount(long endDateOfDiscount)
Specified by:
setEndDateOfDiscount in interface NewPricePG

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