Class Function<T extends Task,D extends Dependency>

All Implemented Interfaces:
Graph<T,D>, Hypergraph<T,D>, MultiGraph<T,D>, Serializable, Iterable<T>, IAttributes

public class Function<T extends Task,D extends Dependency> extends Graph<T,D> implements IAttributes
See Also:
  • Constructor Details

    • Function

      public Function(String id)
    • Function

      public Function(Attributes attributes)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getId

      public String getId()
    • setAttribute

      public void setAttribute(String identifier, Object object)
      Description copied from interface: IAttributes
      Sets the attribute.
      Specified by:
      setAttribute in interface IAttributes
      Parameters:
      identifier - the identifier of the attribute
      object - the value of the attribute
    • getAttribute

      public <O> O getAttribute(String identifier)
      Description copied from interface: IAttributes
      Returns the attribute
      Specified by:
      getAttribute in interface IAttributes
      Type Parameters:
      O - the type of the attribute
      Parameters:
      identifier - the identifier of the attribute
      Returns:
      the value of the value of the attribute or null if this attribute is not set.
    • getAttributeParameter

      public Parameter getAttributeParameter(String identifier)
      Description copied from interface: IAttributes
      Return the parameter definition or null if the attribute is not defined as parameter.
      Specified by:
      getAttributeParameter in interface IAttributes
      Parameters:
      identifier - the identifier of the attribute
      Returns:
      the parameter
    • getAttributes

      public Attributes getAttributes()
      Description copied from interface: IAttributes
      Returns the map of all pairs of attributes.
      Specified by:
      getAttributes in interface IAttributes
      Returns:
      the attribute map
    • getAttributeNames

      public Set<String> getAttributeNames()
      Description copied from interface: IAttributes
      Returns the attribute names.
      Specified by:
      getAttributeNames in interface IAttributes
      Returns:
      the attribute names
    • addEdge

      public boolean addEdge(D dependency, Collection<? extends T> vertices)
      Specified by:
      addEdge in interface Hypergraph<T extends Task,D extends Dependency>
      Overrides:
      addEdge in class AbstractGraph<T extends Task,D extends Dependency>
    • addEdge

      public boolean addEdge(D dependency, Pair<? extends T> endpoints)
      Overrides:
      addEdge in class AbstractGraph<T extends Task,D extends Dependency>
    • addEdge

      public boolean addEdge(D dependency, T v1, T v2)
      Specified by:
      addEdge in interface Graph<T extends Task,D extends Dependency>
      Overrides:
      addEdge in class AbstractGraph<T extends Task,D extends Dependency>
    • isDefined

      public boolean isDefined(String identifier)
      Description copied from interface: IAttributes
      Tests whether an attribute is defined.
      Specified by:
      isDefined in interface IAttributes
      Parameters:
      identifier - the identifier of the attribute
      Returns:
      true if defined