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

org.testng.IDynamicGraph Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * Represents the graphical representative capabilities of an entity.
 * The entities could be either a {@link ISuite} or an {@link ITestNGMethod} object which are
 * usually the logical units of work that TestNG deals with.
 */
public interface IDynamicGraph {

  boolean addNode(T node);

  void addEdge(int weight, T from, T to);

  void setVisualisers(Set listener);

  void addEdges(int weight, T from, Iterable tos);

  List getFreeNodes();

  List getDependenciesFor(T node);

  void setStatus(Collection nodes, Status status);

  void setStatus(T node, Status status);

  int getNodeCount();

  int getNodeCountWithStatus(Status status);

  Set getNodesWithStatus(Status status);

  String toDot();

  enum Status {
    READY,
    RUNNING,
    FINISHED
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy