Class DefaultProgressVisitor
java.lang.Object
org.noise_planet.noisemodelling.pathfinder.utils.profiler.DefaultProgressVisitor
- All Implemented Interfaces:
org.h2gis.api.ProgressVisitor
- Direct Known Subclasses:
RootProgressVisitor
-
Field Summary
FieldsFields inherited from interface org.h2gis.api.ProgressVisitor
PROPERTY_CANCELED -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProgressVisitor(long subprocessSize, DefaultProgressVisitor parentProcess) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(String s, PropertyChangeListener propertyChangeListener) voidcancel()allow to cancel a processvoidvoidendStep()doubleintbooleancheck if the process is cancel or notprotected voidpushProgression(double incProg) voidremovePropertyChangeListener(PropertyChangeListener propertyChangeListener) voidsetStep(int i) org.h2gis.api.ProgressVisitorsubProcess(int i)
-
Field Details
-
subprocessSize
protected long subprocessSize -
subprocessDone
protected double subprocessDone
-
-
Constructor Details
-
DefaultProgressVisitor
-
-
Method Details
-
subProcess
public org.h2gis.api.ProgressVisitor subProcess(int i) - Specified by:
subProcessin interfaceorg.h2gis.api.ProgressVisitor- Returns:
- an instance of the interface ProgressVisitor
-
endStep
public void endStep()- Specified by:
endStepin interfaceorg.h2gis.api.ProgressVisitor
-
pushProgression
protected void pushProgression(double incProg) -
setStep
public void setStep(int i) - Specified by:
setStepin interfaceorg.h2gis.api.ProgressVisitor
-
getStepCount
public int getStepCount()- Specified by:
getStepCountin interfaceorg.h2gis.api.ProgressVisitor
-
endOfProgress
public void endOfProgress()- Specified by:
endOfProgressin interfaceorg.h2gis.api.ProgressVisitor
-
getProgression
public double getProgression()- Specified by:
getProgressionin interfaceorg.h2gis.api.ProgressVisitor
-
isCanceled
public boolean isCanceled()check if the process is cancel or not- Specified by:
isCanceledin interfaceorg.h2gis.api.ProgressVisitor- Returns:
- a boolean
-
cancel
public void cancel()allow to cancel a process- Specified by:
cancelin interfaceorg.h2gis.api.ProgressVisitor
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfaceorg.h2gis.api.ProgressVisitor
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfaceorg.h2gis.api.ProgressVisitor
-