JOpt.SDK.Implementation
Class OptimizationResult

java.lang.Object
  extended byJOpt.SDK.Implementation.OptimizationResult
All Implemented Interfaces:
IOptimizationResult

public class OptimizationResult
extends java.lang.Object
implements IOptimizationResult


Constructor Summary
OptimizationResult()
           
 
Method Summary
 void addRoute(IRoute route)
           
 void addViolation(IViolation violation)
           
 java.util.GregorianCalendar getEnd()
           
 IRoute[] getRoutes()
           
 java.util.GregorianCalendar getStart()
           
 double getTimeBreak()
           
 double getTimeIdle()
           
 double getTimeStop()
           
 double getTimeTotal()
           
 double getTimeTrip()
           
 double getTotalCost()
           
 double getTotalDistance()
           
 IViolation[] getViolations()
           
 void setEnd(java.util.GregorianCalendar end)
           
 void setStart(java.util.GregorianCalendar start)
           
 void setTimeBreak(double timeBreak)
           
 void setTimeIdle(double timeIdle)
           
 void setTimeStop(double timeStop)
           
 void setTimeTotal(double timeTotal)
           
 void setTimeTrip(double timeTrip)
           
 void setTotalCost(double totalCost)
           
 void setTotalDistance(double totalDistance)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimizationResult

public OptimizationResult()
Method Detail

setTotalDistance

public void setTotalDistance(double totalDistance)
Specified by:
setTotalDistance in interface IOptimizationResult
Parameters:
totalDistance - the total distance that makes up the sum of all routes within this optimization run.

getTotalDistance

public double getTotalDistance()
Specified by:
getTotalDistance in interface IOptimizationResult
Returns:
the total distance that makes up the sum of all routes within this optimization run.

setTotalCost

public void setTotalCost(double totalCost)
Specified by:
setTotalCost in interface IOptimizationResult

getTotalCost

public double getTotalCost()
Specified by:
getTotalCost in interface IOptimizationResult
Returns:
the total cost that makes up the sum of all routes within this optimization run.

setStart

public void setStart(java.util.GregorianCalendar start)
Specified by:
setStart in interface IOptimizationResult
Parameters:
start - the start of the first route

getStart

public java.util.GregorianCalendar getStart()
Specified by:
getStart in interface IOptimizationResult
Returns:
the start of the first route

setEnd

public void setEnd(java.util.GregorianCalendar end)
Specified by:
setEnd in interface IOptimizationResult
Parameters:
end - the end of the last route

getEnd

public java.util.GregorianCalendar getEnd()
Specified by:
getEnd in interface IOptimizationResult
Returns:
the end of the last route

getRoutes

public IRoute[] getRoutes()
Specified by:
getRoutes in interface IOptimizationResult
Returns:
the routes that have been created within this optimization run

addRoute

public void addRoute(IRoute route)
Specified by:
addRoute in interface IOptimizationResult
Parameters:
route - a routes that has been created within this optimization run

setTimeTotal

public void setTimeTotal(double timeTotal)
Specified by:
setTimeTotal in interface IOptimizationResult
Parameters:
timeTotal - the total time consumed that makes up the sum of all routes within this optimization run.

getTimeTotal

public double getTimeTotal()
Specified by:
getTimeTotal in interface IOptimizationResult
Returns:
the total time consumed that makes up the sum of all routes within this optimization run.

setTimeStop

public void setTimeStop(double timeStop)
Specified by:
setTimeStop in interface IOptimizationResult
Parameters:
timeStop - the total time where the resources stay at the stop. This makes up the sum of all stops within this optimization run.

getTimeStop

public double getTimeStop()
Specified by:
getTimeStop in interface IOptimizationResult
Returns:
the total time where the resources stay at the stop. This makes up the sum of all stops within this optimization run.

setTimeTrip

public void setTimeTrip(double timeTrip)
Specified by:
setTimeTrip in interface IOptimizationResult
Parameters:
timeTrip - the total time where the resources are on the road. This makes up the sum of all road times within this optimization run.

getTimeTrip

public double getTimeTrip()
Specified by:
getTimeTrip in interface IOptimizationResult
Returns:
the total time where the resources are on the road. This makes up the sum of all road times within this optimization run.

setTimeBreak

public void setTimeBreak(double timeBreak)
Specified by:
setTimeBreak in interface IOptimizationResult

getTimeBreak

public double getTimeBreak()
Specified by:
getTimeBreak in interface IOptimizationResult
Returns:
the total time where the resources are having a break. This makes up the sum of all break times within this optimization run.

setTimeIdle

public void setTimeIdle(double timeIdle)
Specified by:
setTimeIdle in interface IOptimizationResult
Parameters:
timeIdle - the total time where the resources are waiting for a node to open. This makes up the sum of all waiting times within this optimization run.

getTimeIdle

public double getTimeIdle()
Specified by:
getTimeIdle in interface IOptimizationResult
Returns:
the total time where the resources are waiting for a node to open. This makes up the sum of all waiting times within this optimization run.

addViolation

public void addViolation(IViolation violation)
Specified by:
addViolation in interface IOptimizationResult

getViolations

public IViolation[] getViolations()
Specified by:
getViolations in interface IOptimizationResult
Returns:
the routes with at least one constaint violation