Class 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:
    1. Given an Object output (e.g. a List<String>), what Op(s) mutated that output?
    2. Given an Object op, what OpInfos were utilized to implement that Op's functionality?
    The answers to these two questions allow users to produce an entire List<Graph<OpInfo>>, containing all of the information needed to reproduce any Object output.

    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