Class TreeMissionExecutor

  • All Implemented Interfaces:
    MissionExecutor

    public class TreeMissionExecutor
    extends java.lang.Object
    implements MissionExecutor
    Keeps track of the state of the execution of one mission instance. It assumes a tree of execution blocks, can execute them and keeps track of cursor positions within strands.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void abort()  
      void dispose()  
      io.molr.commons.domain.Strand getRootStrand()
      Deprecated.
      StrandFactoryImpl getStrandFactory()
      Deprecated.
      void instruct​(io.molr.commons.domain.Strand strand, io.molr.commons.domain.StrandCommand command)  
      void instructBlock​(java.lang.String blockId, io.molr.commons.domain.BlockCommand command)  
      void instructRoot​(io.molr.commons.domain.StrandCommand command)  
      reactor.core.publisher.Flux<io.molr.commons.domain.MissionOutput> outputs()  
      reactor.core.publisher.Flux<io.molr.commons.domain.MissionRepresentation> representations()  
      reactor.core.publisher.Flux<io.molr.commons.domain.MissionState> states()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TreeMissionExecutor

        public TreeMissionExecutor​(TreeStructure treeStructure,
                                   LeafExecutor leafExecutor,
                                   Tracker<io.molr.commons.domain.Result> resultTracker,
                                   MissionOutputCollector outputCollector,
                                   TreeTracker<io.molr.commons.domain.RunState> runStateTracker,
                                   io.molr.commons.domain.ExecutionStrategy executionStrategy)
    • Method Detail

      • getRootStrand

        @Deprecated
        public io.molr.commons.domain.Strand getRootStrand()
        Deprecated.
      • getStrandFactory

        @Deprecated
        public StrandFactoryImpl getStrandFactory()
        Deprecated.
      • states

        public reactor.core.publisher.Flux<io.molr.commons.domain.MissionState> states()
        Specified by:
        states in interface MissionExecutor
      • outputs

        public reactor.core.publisher.Flux<io.molr.commons.domain.MissionOutput> outputs()
        Specified by:
        outputs in interface MissionExecutor
      • representations

        public reactor.core.publisher.Flux<io.molr.commons.domain.MissionRepresentation> representations()
        Specified by:
        representations in interface MissionExecutor
      • instruct

        public void instruct​(io.molr.commons.domain.Strand strand,
                             io.molr.commons.domain.StrandCommand command)
        Specified by:
        instruct in interface MissionExecutor
      • instructRoot

        public void instructRoot​(io.molr.commons.domain.StrandCommand command)
        Specified by:
        instructRoot in interface MissionExecutor
      • instructBlock

        public void instructBlock​(java.lang.String blockId,
                                  io.molr.commons.domain.BlockCommand command)
        Specified by:
        instructBlock in interface MissionExecutor
      • abort

        public void abort()