public class EnsembleSA
extends java.lang.Object
Constructor and Description |
---|
EnsembleSA(Netter net)
Constructs a new EnsembleSa, started by the main class Netter
|
Modifier and Type | Method and Description |
---|---|
void |
alterAndRecalculateTemperatureSettings(double coef)
Method that changes the temperature settings
|
void |
ensembleSA(NetworkFileBackedWrapper network,
int totalIterations)
Main method.
|
int |
getIterations() |
java.util.ArrayList<NetworkSA> |
getThreadPool() |
int |
getWorkersInProgress() |
boolean |
isFinished() |
boolean |
isRestarting() |
boolean |
isRestartPossible() |
boolean |
isSettingParameters() |
boolean |
isStopping() |
void |
setEligible() |
void |
setFinished(boolean finished) |
void |
setIterations(int iterations) |
void |
setRestarting(boolean restarting) |
void |
setRestartPossible(boolean restartPossible) |
void |
setSettingParameters(boolean settingParameters) |
void |
setStopping(boolean stopping) |
void |
setThreadPool(java.util.ArrayList<NetworkSA> threadPool) |
void |
setWorkersInProgress(int workersInProgress) |
void |
workerReportingPositive()
Method which a thread can use to signal
|
boolean |
workerRequestingRestart(NetworkSA networkSA)
Method which a thread can use to signal it thinks temperature settings should change
|
void |
workerSignalingCrash(NetworkSA networkSA)
Method which a thread can use to signal it crashed.
|
void |
workerSignalingFinish(NetworkSA worker)
Method which a thread can use to signal it finished.
|
void |
workerSignalingRestart(NetworkSA networkSA)
Method which a thread can use to signal it crashed.
|
public EnsembleSA(Netter net)
net
- public void ensembleSA(NetworkFileBackedWrapper network, int totalIterations)
network
- the network/ranking to be re-rankedtotalIterations
- Total amount of mutations that should be performed before stoppingpublic void workerSignalingFinish(NetworkSA worker)
worker
- The thread/optimization procedure that wants to signalpublic void workerSignalingCrash(NetworkSA networkSA)
worker
- The thread/optimization procedure that wants to signalpublic boolean workerRequestingRestart(NetworkSA networkSA)
worker
- The thread/optimization procedure that wants to signalpublic void workerSignalingRestart(NetworkSA networkSA)
worker
- The thread/optimization procedure that wants to signalpublic void workerReportingPositive()
worker
- The thread/optimization procedure that wants to signalpublic void alterAndRecalculateTemperatureSettings(double coef)
coef
- factor to change withpublic void setEligible()
public boolean isFinished()
public void setFinished(boolean finished)
public boolean isStopping()
public void setStopping(boolean stopping)
public int getIterations()
public void setIterations(int iterations)
public boolean isRestartPossible()
public void setRestartPossible(boolean restartPossible)
public boolean isRestarting()
public void setRestarting(boolean restarting)
public boolean isSettingParameters()
public void setSettingParameters(boolean settingParameters)
public int getWorkersInProgress()
public void setWorkersInProgress(int workersInProgress)
public java.util.ArrayList<NetworkSA> getThreadPool()
public void setThreadPool(java.util.ArrayList<NetworkSA> threadPool)