- java.lang.Object
-
- org.scijava.ops.tutorial.ReportingProgress
-
public class ReportingProgress extends Object
Long-running Ops can be confusing for users. By defining and then reporting progress, Ops can tell the user how far it has gotten in the computation.At the heart of progress reporting is the
Progressclass, responsible for conveying Ops' progress to users. SciJava Progress defines progress on a scale of [0, 1], where:- 0 defines work that has not yet started
- 1 defines work that has been completed
- values in between define work in progress
Ops tell the
Progressa few things:- The number of "elements" in a computation, as well as "subtasks", i.e. dependent Ops
- When each "element" has been completed
Note the difference between an "element" of computation, and a "subtask"
- elementss are pieces of computation done by the Op
- subtasks are phases of computation done by other Ops
Consumer<Task>s.- Author:
- Gabriel Selzer
-
-
Constructor Summary
Constructors Constructor Description ReportingProgress()
-
-
-
Method Detail
-
main
public static void main(String... args)
-
-