mil.af.afit.router
Class UVRSite

java.lang.Object
  |
  +--mil.af.afit.router.UVRSite
All Implemented Interfaces:
mil.af.afit.uvr.HOrder

public class UVRSite
extends java.lang.Object
implements mil.af.afit.uvr.HOrder

Sites are converted to this for the Universal Vehicle Router. You can get back to the original site by calling getParentSite().

Since:
1.0
See Also:
Site, HOrder

Constructor Summary
UVRSite(Site fromThis)
          This constructor makes a UVRSite, which implements HOrder, from a Site.
 
Method Summary
 int getAmountNeeded()
          Returns amount needed.
 double getEarliestArrivalTime()
          Returns beginning of time window.
 double getEarliestRestrictedTime()
          Returns beginning of time wall.
 int getID()
          Returns id.
 double getLatestDepartureTime()
          Returns end of time window.
 double getLatestRestrictedTime()
          Returns end of time wall.
 int getOrderType()
          Returns order type (requirement type)
 Site getParentSite()
          Returns parent Site object.
 int getPriority()
          Returns priority.
 int getServiceTime()
          Returns service time
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UVRSite

public UVRSite(Site fromThis)
This constructor makes a UVRSite, which implements HOrder, from a Site.
Method Detail

getID

public final int getID()
Returns id.
Returns:
id
Since:
1.0

getParentSite

public final Site getParentSite()
Returns parent Site object.
Returns:
parent site
Since:
1.0
See Also:
Site

getServiceTime

public final int getServiceTime()
Returns service time
Returns:
service time
Since:
1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOrderType

public int getOrderType()
Returns order type (requirement type)
Returns:
service time
Since:
1.0

getPriority

public int getPriority()
Returns priority.
Specified by:
getPriority in interface mil.af.afit.uvr.HOrder
Returns:
priority
Since:
1.0

getEarliestArrivalTime

public double getEarliestArrivalTime()
Returns beginning of time window.
Specified by:
getEarliestArrivalTime in interface mil.af.afit.uvr.HOrder
Returns:
beginning of time window
Since:
1.0

getLatestDepartureTime

public double getLatestDepartureTime()
Returns end of time window.
Specified by:
getLatestDepartureTime in interface mil.af.afit.uvr.HOrder
Returns:
end of time window
Since:
1.0

getEarliestRestrictedTime

public double getEarliestRestrictedTime()
Returns beginning of time wall.
Specified by:
getEarliestRestrictedTime in interface mil.af.afit.uvr.HOrder
Returns:
beginning of time wall
Since:
1.0

getLatestRestrictedTime

public double getLatestRestrictedTime()
Returns end of time wall.
Specified by:
getLatestRestrictedTime in interface mil.af.afit.uvr.HOrder
Returns:
end of time wall
Since:
1.0

getAmountNeeded

public int getAmountNeeded()
Returns amount needed. Not used.
Specified by:
getAmountNeeded in interface mil.af.afit.uvr.HOrder
Returns:
amount needed
Since:
1.0