mil.af.afit.router
Class Solution

java.lang.Object
  |
  +--mil.af.afit.router.Solution

public class Solution
extends java.lang.Object

A solution represents a suggested route for the vehicles to visit the sites.

Since:
1.0
See Also:
Vehicle, Site, UVRVehicle, UVRSite

Constructor Summary
Solution(mil.af.afit.uvr.HSolution solution, PriorityModel priorityModel)
          Constructs a new solution based on the HSolution and the priority model that was used to get there.
 
Method Summary
 int countSitesVisited()
          Returns the number of sites that are visited.
 long getCreationMillis()
          Get time stamp for the creation of this solution.
 mil.af.afit.uvr.HSolution getHSolution()
          Returns the HSolution.
 int getMissionLength()
          Returns the total mission length in minutes.
 java.lang.String getMissionLengthString()
          Returns the mission length in a string format.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Solution

public Solution(mil.af.afit.uvr.HSolution solution,
                PriorityModel priorityModel)
Constructs a new solution based on the HSolution and the priority model that was used to get there.
Parameters:
solution - HSolution (from UVR)
priorityModel - model used to get the solution
Since:
1.0
See Also:
HSolution, PriorityModel
Method Detail

getHSolution

public final mil.af.afit.uvr.HSolution getHSolution()
Returns the HSolution.
Returns:
the HSolution
Since:
1.0
See Also:
HSolution

getCreationMillis

public final long getCreationMillis()
Get time stamp for the creation of this solution.
Returns:
time stamp as millis at point of creation
Since:
1.0

getMissionLength

public final int getMissionLength()
Returns the total mission length in minutes. This is the first takeoff to that last landing.
Since:
1.0

getMissionLengthString

public final java.lang.String getMissionLengthString()
Returns the mission length in a string format.
Since:
1.0

countSitesVisited

public final int countSitesVisited()
Returns the number of sites that are visited.
Returns:
number of sites that are visited
Since:
1.0

toString

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