Class RunnableLeafsMissionSupport


  • public abstract class RunnableLeafsMissionSupport
    extends java.lang.Object
    An abstract class which is intended to describe a tree of runnables, which can be used as simple test case for parallel tree execution.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      RunnableLeafsMission build()  
      protected io.molr.commons.domain.Block latestBlock()
      Retrieves the most recently created block.
      protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder)  
      protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)  
      protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)  
      protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)  
      protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder)  
      protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder, java.util.Set<T> allowedValues)  
      protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue)  
      protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder, T defaultValue, java.util.Set<T> allowedValues)  
      protected void parallel​(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
      Deprecated.
      protected OngoingRootBranch root​(java.lang.String missionName)  
      protected void sequential​(java.lang.String newName, java.util.function.Consumer<SimpleBranch> branchConsumer)
      Deprecated.
      • Methods inherited from class java.lang.Object

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

      • RunnableLeafsMissionSupport

        public RunnableLeafsMissionSupport()
    • Method Detail

      • sequential

        @Deprecated
        protected void sequential​(java.lang.String newName,
                                  java.util.function.Consumer<SimpleBranch> branchConsumer)
        Deprecated.
      • parallel

        @Deprecated
        protected void parallel​(java.lang.String newName,
                                java.util.function.Consumer<SimpleBranch> branchConsumer)
        Deprecated.
      • mandatory

        protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder)
      • mandatory

        protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                      java.util.Set<T> allowedValues)
      • mandatory

        protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                      T defaultValue)
      • mandatory

        protected <T> io.molr.commons.domain.Placeholder<T> mandatory​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                      T defaultValue,
                                                                      java.util.Set<T> allowedValues)
      • optional

        protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder)
      • optional

        protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                     java.util.Set<T> allowedValues)
      • optional

        protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                     T defaultValue)
      • optional

        protected <T> io.molr.commons.domain.Placeholder<T> optional​(io.molr.commons.domain.Placeholder<T> placeholder,
                                                                     T defaultValue,
                                                                     java.util.Set<T> allowedValues)
      • latestBlock

        protected io.molr.commons.domain.Block latestBlock()
        Retrieves the most recently created block. NOTE: This is only intended for internal testing purposes!
        Returns:
        the most recently added block.