public abstract class ManualLogger
extends java.lang.Object
| Constructor and Description |
|---|
ManualLogger(int loggingInterval,
java.lang.String logFile,
java.io.File outputDir)
Constructs a new Manuallogger (abstract class, cannot be called directly)
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
advice(EnsembleSA sa)
Abstract method that allows the logger to intervene in the optimization process and perform actions when its advice is requested
|
void |
deleteFile() |
int |
getIterations()
Getter which return frequency of logging
|
int |
getIterationsSoFar()
Getter which return frequency of logging
|
java.lang.String |
getLogFile()
Getter which returns the log filename
|
boolean |
isFired()
Getter which returns if the logger is ready to send feedback
|
boolean |
isPositive()
Getter which returns if the logger is positive on the current optimization process
|
void |
log(NetworkSA getter) |
abstract ManualLogger |
makeCopy(java.lang.String suffix)
Copy constructor for this logger, with a new output filename
|
void |
setFired(boolean fired)
Setter to indicate if logger is ready to send feedback
|
void |
setLogFile(java.lang.String logFile)
Setter to set the log filename
|
void |
setPositive(boolean positive)
Setter which sets logger's opinion on optimization process
|
void |
toFile() |
public ManualLogger(int loggingInterval,
java.lang.String logFile,
java.io.File outputDir)
loggingInterval - perform logging action every 'loggingInterval' changes to the networklogFile - name of output fileoutputDir - name/path of the output directorypublic abstract void advice(EnsembleSA sa)
public abstract ManualLogger makeCopy(java.lang.String suffix)
public boolean isFired()
public boolean isPositive()
public void setPositive(boolean positive)
positive - logger's opinion on optimization processpublic void setFired(boolean fired)
fired - logger is ready to send feedbackpublic java.lang.String getLogFile()
public void setLogFile(java.lang.String logFile)
String - log filenamepublic int getIterations()
public int getIterationsSoFar()
public void log(NetworkSA getter)
public void deleteFile()
public void toFile()