Class ACSolution
java.lang.Object
es.urjc.etsii.grafo.solution.Solution<ACSolution,ACInstance>
es.urjc.etsii.grafo.autoconfigtests.model.ACSolution
Test solution to validate autoconfig behaviour, each component will add or remove some arbitrary quantity from its score
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Solution
lastModifiedTime, lastMoves
-
Constructor Summary
ConstructorsConstructorDescriptionACSolution
(ACInstance instance) Build a new solution to validate the autoconfig behaviourACSolution
(ACSolution other) -
Method Summary
Modifier and TypeMethodDescriptionClone the current solution.double
double
getScore()
void
setMultiplier
(double multiplier) toString()
Resume this solution Generate a toString method using your IDEMethods inherited from class es.urjc.etsii.grafo.solution.Solution
customProperties, getInstance, getLastModifiedTime, getVersion, lastExecutesMoves, lastExecutesMovesAsString, notifyUpdate, notifyUpdate
-
Constructor Details
-
ACSolution
Build a new solution to validate the autoconfig behaviour- Parameters:
instance
- test instance
-
ACSolution
-
-
Method Details
-
cloneSolution
Description copied from class:Solution
Clone the current solution. Deep clone mutable data or you will regret it.- Specified by:
cloneSolution
in classSolution<ACSolution,
ACInstance> - Returns:
- A deep clone of the current solution
-
getScore
public double getScore() -
toString
Description copied from class:Solution
Resume this solution Generate a toString method using your IDE- Specified by:
toString
in classSolution<ACSolution,
ACInstance> - Returns:
- string representation of the current solution
-
setMultiplier
public void setMultiplier(double multiplier) -
getMultiplier
public double getMultiplier()
-