- java.lang.Object
-
- org.scijava.ops.engine.impl.DefaultOpHistory
-
- All Implemented Interfaces:
Comparable<OpHistory>,OpHistory,Prioritized<OpHistory>
public class DefaultOpHistory extends Object implements OpHistory
Log describing each execution of an Op. This class is designed to answer two questions:- Given an
Objectoutput (e.g. aList<String>), what Op(s) mutated that output? - Given an
Objectop, whatOpInfos were utilized to implement that Op's functionality?
List<Graph<OpInfo>>, containing all of the information needed to reproduce anyObjectoutput.Note that SciJava Ops is responsible for logging the returns to any matching calls here, but with some effort the user or other applications could also contribute their algorithms to the history.
- Author:
- Gabriel Selzer
-
-
Constructor Summary
Constructors Constructor Description DefaultOpHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RichOp<?>>executionsUpon(Object o)Returns the list of executions onObjectorecorded in the historyvoidlogOutput(RichOp<?> op, Object output)doublepriority()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.priority.Prioritized
compareTo
-
-
-
-
Method Detail
-
executionsUpon
public List<RichOp<?>> executionsUpon(Object o)
Returns the list of executions onObjectorecorded in the history- Specified by:
executionsUponin interfaceOpHistory- Parameters:
o- theObjectof interest- Returns:
- an
Iterableof all executions upono
-
priority
public double priority()
- Specified by:
priorityin interfacePrioritized<OpHistory>
-
-