Package pulse.search
Class SimpleResponse
- java.lang.Object
-
- pulse.search.SimpleResponse
-
- All Implemented Interfaces:
Serializable,Response
- Direct Known Subclasses:
PolylineOptimiser.PolylineResponse
public abstract class SimpleResponse extends Object implements Response
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleResponse(OptimiserStatistic rs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentaccessibleRange()OptimiserStatisticgetOptimiserStatistic()doubleobjectiveFunction(GeneralTask task)Calculates the value of the objective function used to identify the current state of the optimiser.voidsetOptimiserStatistic(OptimiserStatistic statistic)
-
-
-
Constructor Detail
-
SimpleResponse
public SimpleResponse(OptimiserStatistic rs)
-
-
Method Detail
-
getOptimiserStatistic
public final OptimiserStatistic getOptimiserStatistic()
- Specified by:
getOptimiserStatisticin interfaceResponse
-
setOptimiserStatistic
public final void setOptimiserStatistic(OptimiserStatistic statistic)
-
objectiveFunction
public double objectiveFunction(GeneralTask task)
Description copied from interface:ResponseCalculates the value of the objective function used to identify the current state of the optimiser.- Specified by:
objectiveFunctionin interfaceResponse- Returns:
- the value of the objective function in the current state
-
accessibleRange
public Segment accessibleRange()
- Specified by:
accessibleRangein interfaceResponse
-
-