Class RootProgressVisitor
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.utils.profiler.DefaultProgressVisitor
org.noise_planet.noisemodelling.pathfinder.utils.profiler.RootProgressVisitor
- All Implemented Interfaces:
org.h2gis.api.ProgressVisitor
-
Field Summary
Fields inherited from class org.noise_planet.noisemodelling.pathfinder.utils.profiler.DefaultProgressVisitor
subprocessDone, subprocessSizeFields inherited from interface org.h2gis.api.ProgressVisitor
PROPERTY_CANCELED -
Constructor Summary
ConstructorsConstructorDescriptionRootProgressVisitor(long subprocessSize, boolean logProgression, double minimumSecondsBetweenPrint) Create the RootProgressVisitor constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(String property, PropertyChangeListener listener) voidcancel()Allow to cancel the property of ProgressVisitorbooleancheck if the property is canceledprotected voidpushProgression(double incProg) voidMethods inherited from class org.noise_planet.noisemodelling.pathfinder.utils.profiler.DefaultProgressVisitor
endOfProgress, endStep, getProgression, getStepCount, setStep, subProcess
-
Constructor Details
-
RootProgressVisitor
public RootProgressVisitor(long subprocessSize, boolean logProgression, double minimumSecondsBetweenPrint) Create the RootProgressVisitor constructor- Parameters:
subprocessSize-logProgression-minimumSecondsBetweenPrint-
-
-
Method Details
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceorg.h2gis.api.ProgressVisitor- Overrides:
removePropertyChangeListenerin classDefaultProgressVisitor
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceorg.h2gis.api.ProgressVisitor- Overrides:
addPropertyChangeListenerin classDefaultProgressVisitor
-
pushProgression
protected void pushProgression(double incProg) - Overrides:
pushProgressionin classDefaultProgressVisitor- Parameters:
incProg-
-
isCanceled
public boolean isCanceled()check if the property is canceled- Specified by:
isCanceledin interfaceorg.h2gis.api.ProgressVisitor- Overrides:
isCanceledin classDefaultProgressVisitor- Returns:
- a boolen
-
cancel
public void cancel()Allow to cancel the property of ProgressVisitor- Specified by:
cancelin interfaceorg.h2gis.api.ProgressVisitor- Overrides:
cancelin classDefaultProgressVisitor
-