com.github.dakusui.actionunit.actions.Concurrent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of actionunit Show documentation
Show all versions of actionunit Show documentation
A library to build 'action' structure for testing
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 extends Action> actions) {
super("Concurrent", actions);
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
}
enum Factory implements Composite.Factory {
INSTANCE;
@Override
public Concurrent create(Iterable extends Action> actions) {
return new Base(actions);
}
/**
* {@inheritDoc}
*/
public String toString() {
return "Concurrent";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy