All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dakusui.actionunit.actions.Concurrent Maven / Gradle / Ivy

There is a newer version: 6.1.5
Show newest version
package com.github.dakusui.actionunit.actions;

import com.github.dakusui.actionunit.Action;

/**
 * An interface that represents a sequence of actions to be executed concurrently.
 */
public interface Concurrent extends Composite {
  /**
   * A class that represents a collection of actions that should be executed concurrently.
   */
  class Base extends Composite.Base implements Concurrent {
    public Base(Iterable actions) {
      super("Concurrent", actions);
    }

    @Override
    public void accept(Visitor visitor) {
      visitor.visit(this);
    }
  }

  enum Factory implements Composite.Factory {
    INSTANCE;

    @Override
    public Concurrent create(Iterable actions) {
      return new Base(actions);
    }

    /**
     * {@inheritDoc}
     */
    public String toString() {
      return "Concurrent";
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy