org.cougaar.tutorial.booksonline.shipper
Class GISBehavior

java.lang.Object
  extended byjava.beans.SimpleBeanInfo
      extended byorg.cougaar.planning.ldm.asset.AssetSkeletonBase
          extended byorg.cougaar.planning.ldm.asset.AssetSkeleton
              extended byorg.cougaar.planning.ldm.asset.Asset
                  extended byorg.cougaar.tutorial.booksonline.shipper.GISBehavior
All Implemented Interfaces:
java.beans.BeanInfo, java.lang.Cloneable, org.cougaar.planning.ldm.asset.PGDelegate, org.cougaar.core.blackboard.Publishable, java.io.Serializable, org.cougaar.core.util.UniqueObject

public class GISBehavior
extends org.cougaar.planning.ldm.asset.Asset
implements org.cougaar.planning.ldm.asset.PGDelegate

Version:
$Revision: 1.2 $
Author:
$author$
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.cougaar.planning.ldm.asset.Asset
org.cougaar.planning.ldm.asset.Asset.AssetChangeReport
 
Field Summary
 
Fields inherited from class org.cougaar.planning.ldm.asset.Asset
pcs
 
Fields inherited from class org.cougaar.planning.ldm.asset.AssetSkeletonBase
UNSPECIFIED_TIME
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
GISBehavior(GISPG pg)
           
 
Method Summary
 double calcETA(java.lang.String destDepot)
           
 org.cougaar.planning.ldm.asset.PGDelegate copy(org.cougaar.planning.ldm.asset.PropertyGroup pg)
           
 java.lang.String getNearestDepot(java.lang.String destCity, java.lang.String destState)
          Gets the nearest depot
 int getRouteNumber(java.lang.String destDepot)
          Get the route number for a destination depot
 
Methods inherited from class org.cougaar.planning.ldm.asset.Asset
addPropertyChangeListener, bindToLDM, clone, copy, createAggregate, createInstance, createInstance, equals, fetchAllProperties, fetchAllProperties, getBoundLDM, getCapabilities, getItemIdentificationPG, getKey, getName, getPropertyDescriptors, getPrototype, getRoleSchedule, getTypeIdentificationPG, getUID, hashCode, instanceForCopy, isPersistable, isPGLocal, isPGLocal, isPGScheduleLocal, registerWithLDM, removePropertyChangeListener, resolvePG, resolvePGSchedule, searchForPropertyGroupSchedule, setItemIdentificationPG, setPropertyGroup, setPrototype, setTypeIdentificationPG, setUID, toString
 
Methods inherited from class org.cougaar.planning.ldm.asset.AssetSkeleton
getClusterPG, getCommunityPG, getCommunityPG, getCommunityPGSchedule, getEntityPG, getLocationSchedulePG, getRelationshipPG, hasClusterPG, hasCommunityPG, hasCommunityPG, hasEntityPG, hasItemIdentificationPG, hasLocationSchedulePG, hasRelationshipPG, hasTypeIdentificationPG, setClusterPG, setCommunityPG, setCommunityPGSchedule, setEntityPG, setLocationSchedulePG, setRelationshipPG
 
Methods inherited from class org.cougaar.planning.ldm.asset.AssetSkeletonBase
addOtherPropertyGroup, addOtherPropertyGroupSchedule, getOtherProperties, hasOtherTimePhasedProperties, lateBindPG, removeOtherPropertyGroup, removeOtherPropertyGroup, removeOtherPropertyGroupSchedule, removeOtherPropertyGroupSchedule, replaceOtherPropertyGroup, replaceOtherPropertyGroupSchedule, resolvePG, searchForPropertyGroup, searchForPropertyGroup, searchForPropertyGroup, searchForPropertyGroup, searchForPropertyGroupSchedule
 
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GISBehavior

public GISBehavior(GISPG pg)
Method Detail

calcETA

public double calcETA(java.lang.String destDepot)

getNearestDepot

public java.lang.String getNearestDepot(java.lang.String destCity,
                                        java.lang.String destState)
Gets the nearest depot

Parameters:
destCity - Destination city
destState - Destination state
Returns:
nearest depot

getRouteNumber

public int getRouteNumber(java.lang.String destDepot)
Get the route number for a destination depot

Parameters:
destDepot - destinaton depot
Returns:
route number

copy

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