Class Chain<State>


  • public class Chain<State>
    extends java.lang.Object
    Generic class to perform any chain of computation jobs, which can be ordered as a partially ordered graph.
    Author:
    sander
    • Constructor Detail

      • Chain

        public Chain​(State state,
                     org.processmining.framework.plugin.ProMCanceller globalCanceller,
                     java.util.concurrent.Executor executor)
    • Method Detail

      • getOnChange

        public java.lang.Runnable getOnChange()
      • setOnChange

        public void setOnChange​(java.lang.Runnable onChange)
      • execute

        public void execute​(java.lang.Class<? extends ChainLink<State,​?,​?>> clazz)
        Not thread safe. Only call from the main event thread.
        Parameters:
        clazz -
      • executeNext

        public void executeNext​(ChainLink<State,​?,​?> chainLink)
        Thread safe.
        Parameters:
        chainLink -
      • canExecute

        public boolean canExecute​(ChainLink<State,​?,​?> chainLink)
      • toDot

        public org.processmining.plugins.InductiveMiner.Pair<org.processmining.plugins.graphviz.dot.Dot,​java.util.Map<ChainLink<State,​?,​?>,​org.processmining.plugins.graphviz.dot.DotNode>> toDot()
      • getChainLinks

        public java.util.Collection<ChainLink<State,​?,​?>> getChainLinks()
      • getCompletedChainLinks

        public java.util.Set<ChainLink<State,​?,​?>> getCompletedChainLinks()