Class ProgressEngine
java.lang.Object
com.strategyquant.tradinglib.project.RunningStatusBase
com.strategyquant.tradinglib.project.StopPauseEngine
com.strategyquant.tradinglib.project.ProgressEngine
- All Implemented Interfaces:
IStopPauseStatus
public class ProgressEngine
extends com.strategyquant.tradinglib.project.StopPauseEngine
The type Progress engine.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
void
finish(long duration)
Finish.Gets log prefix.double
Gets max progress.void
printToLog(String message)
void
printToLogDebug(String message)
void
registerProgressListener(com.strategyquant.tradinglib.databank.IProgressListener progressListener)
Register progress listener.void
Reset.void
setLogPrefix(String logPrefix)
Sets log prefix.void
setProgress(long progress)
Sets progress.void
setProjectName(String projectName)
Sets project name.Methods inherited from class com.strategyquant.tradinglib.project.StopPauseEngine
checkPaused, checkRunning, done, error, isFinished, isPaused, isStopped, isStoppedNotFinished, pause, registerStatusListener, reset, resume, start, stop, stop, unregisterStatusListener
Methods inherited from class com.strategyquant.tradinglib.project.RunningStatusBase
getRunningStatus, setProjectStatusListener, setRunningStatus
-
Field Details
-
Log
public static final org.slf4j.Logger LogThe constant Log.
-
-
Constructor Details
-
ProgressEngine
Instantiates a new Progress engine.- Parameters:
projectName
- the project name
-
-
Method Details
-
printToLogDebug
- Overrides:
printToLogDebug
in classcom.strategyquant.tradinglib.project.StopPauseEngine
-
printToLog
- Overrides:
printToLog
in classcom.strategyquant.tradinglib.project.StopPauseEngine
-
reset
Reset.- Parameters:
taskName
- the task namemaxProgress
- the max progress
-
setProgress
public void setProgress(long progress)Sets progress.- Parameters:
progress
- the progress
-
getMaxProgress
public double getMaxProgress()Gets max progress.- Returns:
- the max progress
-
setLogPrefix
Sets log prefix.- Parameters:
logPrefix
- the log prefix
-
finish
public void finish()- Overrides:
finish
in classcom.strategyquant.tradinglib.project.StopPauseEngine
-
finish
public void finish(long duration)Finish.- Parameters:
duration
- the duration
-
registerProgressListener
public void registerProgressListener(com.strategyquant.tradinglib.databank.IProgressListener progressListener)Register progress listener.- Parameters:
progressListener
- the progress listener
-
getLogPrefix
Gets log prefix.- Returns:
- the log prefix
-
setProjectName
Sets project name.- Parameters:
projectName
- the project name
-