Class OngoingExecutionStrategyConfiguration


  • public class OngoingExecutionStrategyConfiguration
    extends java.lang.Object
    • Method Detail

      • defaultsTo

        public OngoingExecutionStrategyConfiguration defaultsTo​(io.molr.commons.domain.ExecutionStrategy executionStrategy)
        Sets the default ExecutionStrategy for this mission. If none default ExecutionStrategy is specified molr will either use the global default or the one and only allowed strategy if and only if exactly one strategy has been specified by allowed(io.molr.commons.domain.ExecutionStrategy...). If multiple allowed strategies have been specified the default strategy must be a member of the allowed strategies.
        Parameters:
        executionStrategy - to be setup as default strategy
        Returns:
        the configuration object configured with default execution strategy
      • allowed

        public OngoingExecutionStrategyConfiguration allowed​(io.molr.commons.domain.ExecutionStrategy... strategies)
        Sets the allowed strategies the mission can be configured with.
        Parameters:
        strategies - to be set up as allowed strategies
        Returns:
        the configuration object configured with allowed strategies
      • allowAll

        public OngoingExecutionStrategyConfiguration allowAll()
        Allow for all strategies to be used with this mission.
        Returns:
        the configuration object with all strategies as allowed strategies