public class SimulatedAnnealing.PlacementThread
extends java.lang.Object
implements java.util.concurrent.Callable<java.lang.Double>
Constructor and Description |
---|
SimulatedAnnealing.PlacementThread(int numSteps,
java.util.List<PlacementFrame.PlacementNode> allNodes,
java.util.List<PlacementFrame.PlacementNetwork> allNetworks)
Creates this.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
call() |
SimulatedAnnealing.IncrementalState |
getIncState()
Returns the
IncrementalState object of this runnable |
void |
reset()
Resets the state.
|
public SimulatedAnnealing.PlacementThread(int numSteps, java.util.List<PlacementFrame.PlacementNode> allNodes, java.util.List<PlacementFrame.PlacementNetwork> allNetworks)
numSteps
- the number of iterations which this runnable will do.allNodes
- a list of all PlacementNode
sallNetworks
- a list of all PlacementNetwork
s.public java.lang.Double call() throws java.lang.Exception
call
in interface java.util.concurrent.Callable<java.lang.Double>
java.lang.Exception
Callable.call();
public SimulatedAnnealing.IncrementalState getIncState()
IncrementalState
object of this runnableIncrementalState
object of this runnablepublic void reset()