Class OptimizationProgress
java.lang.Object
com.dna.jopt.framework.outcomewrapper.AbstractOptimizationOutcome
com.dna.jopt.framework.outcomewrapper.OptimizationProgress
- All Implemented Interfaces:
IOptimizationOutcome
,IOptimizationProgress
,Serializable
public class OptimizationProgress
extends AbstractOptimizationOutcome
implements IOptimizationProgress
A way of accessing the current progress.
- Since:
- 03/08/2019
- Version:
- 03/08/2019
- Author:
- DNA
- See Also:
-
Constructor Summary
ConstructorDescriptionOptimizationProgress
(IEntity resultEntity, IOptimization optimization, String callerId, double currentProgress, String progressString) -
Method Summary
Modifier and TypeMethodDescriptionGets thecallerId
.int
Gets theoptimizationStage
, the default value is0
.double
Gets thecurrentProgress
, the default value is0.0
.Gets theprogressString
.toString()
Methods inherited from class com.dna.jopt.framework.outcomewrapper.AbstractOptimizationOutcome
distributeJobViolations2Nodes, getJobCost, getJobElementCount, getJobIdleTimeSeconds, getJobProductiveTimeSeconds, getJobRelationshipCost, getJobRouteCount, getJobSpecificViolationSummary, getJobTerminationTransitionDistanceMeter, getJobTerminationTransitionTimeSeconds, getJobTimeSeconds, getJobTransitionDistanceMeter, getJobTransitionTimeSeconds, getJobUtilizationPercent, getJobViolations, getJoinedViolationSummary, getResourceId, getResourceWorkingHours, getResultEntity, getRouteCost, getRouteId, getRouteIdleTimeSeconds, getRouteProductiveTimeSeconds, getRoutes, getRouteStartId, getRouteTerminationId, getRouteTerminationTransitionDistanceMeter, getRouteTerminationTransitionTimeSeconds, getRouteTimeSeconds, getRouteTransitionDistanceMeter, getRouteTransitionTimeSeconds, getRouteUtilizationPercent, getRouteViolations, getRouteViolationSummaries, getRouteViolationSummary, getUnassignedNodes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dna.jopt.framework.outcomewrapper.IOptimizationOutcome
getJobCost, getJobElementCount, getJobIdleTimeSeconds, getJobProductiveTimeSeconds, getJobRelationshipCost, getJobRouteCount, getJobSpecificViolationSummary, getJobTerminationTransitionDistanceMeter, getJobTerminationTransitionTimeSeconds, getJobTimeSeconds, getJobTransitionDistanceMeter, getJobTransitionTimeSeconds, getJobUtilizationPercent, getJobViolations, getJoinedViolationSummary, getResourceId, getResourceWorkingHours, getResultEntity, getRouteCost, getRouteId, getRouteIdleTimeSeconds, getRouteProductiveTimeSeconds, getRoutes, getRouteStartId, getRouteTerminationId, getRouteTerminationTransitionDistanceMeter, getRouteTerminationTransitionTimeSeconds, getRouteTimeSeconds, getRouteTransitionDistanceMeter, getRouteTransitionTimeSeconds, getRouteUtilizationPercent, getRouteViolations, getRouteViolationSummaries, getRouteViolationSummary, getUnassignedNodes
-
Constructor Details
-
OptimizationProgress
public OptimizationProgress(IEntity resultEntity, IOptimization optimization, String callerId, double currentProgress, String progressString)
-
-
Method Details
-
getCallerId
Description copied from interface:IOptimizationProgress
Gets thecallerId
.- Specified by:
getCallerId
in interfaceIOptimizationProgress
- Returns:
- the callerId
-
getOptimizatioIdent
- Specified by:
getOptimizatioIdent
in interfaceIOptimizationProgress
-
getProgress
public double getProgress()Description copied from interface:IOptimizationProgress
Gets thecurrentProgress
, the default value is0.0
.- Specified by:
getProgress
in interfaceIOptimizationProgress
- Returns:
- the current progress
-
getOptimizationStage
public int getOptimizationStage()Description copied from interface:IOptimizationProgress
Gets theoptimizationStage
, the default value is0
.- Specified by:
getOptimizationStage
in interfaceIOptimizationProgress
- Returns:
- the optimizationStage
-
getProgressString
Description copied from interface:IOptimizationProgress
Gets theprogressString
.- Specified by:
getProgressString
in interfaceIOptimizationProgress
- Returns:
- the progressString
-
toString
-