public class Function<T extends Task,D extends Dependency> extends Graph<T,D> implements IAttributes
| Modifier and Type | Field and Description |
|---|---|
protected Attributes |
attributes |
| Constructor and Description |
|---|
Function(Attributes attributes) |
Function(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdge(D dependency,
java.util.Collection<? extends T> vertices) |
boolean |
addEdge(D dependency,
edu.uci.ics.jung.graph.util.Pair<? extends T> endpoints) |
boolean |
addEdge(D dependency,
T v1,
T v2) |
boolean |
equals(java.lang.Object obj) |
<O> O |
getAttribute(java.lang.String identifier)
Returns the attribute
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the attribute names.
|
Parameter |
getAttributeParameter(java.lang.String identifier)
Return the parameter definition or
null if the attribute is not
defined as parameter. |
Attributes |
getAttributes()
Returns the map of all pairs of attributes.
|
java.lang.String |
getId() |
int |
hashCode() |
boolean |
isDefined(java.lang.String identifier)
Tests whether an attribute is defined.
|
void |
setAttribute(java.lang.String identifier,
java.lang.Object object)
Sets the attribute.
|
getEdge, getEdge, getVertex, getVertex, iterator, removeVerticesaddEdge, addVertex, containsEdge, containsVertex, findEdge, getDefaultEdgeType, getDest, getEdgeCount, getEdgeCount, getEdges, getEdges, getEdgeType, getEndpoints, getFactory, getIncidentEdges, getIncoming_internal, getInEdges, getNeighbors, getOutEdges, getOutgoing_internal, getPredecessors, getSource, getSuccessors, getVertexCount, getVertices, isDest, isSource, removeEdge, removeVertexaddEdge, addEdge, degree, findEdgeSet, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toStringprotected final Attributes attributes
public Function(java.lang.String id)
public Function(Attributes attributes)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getId()
public void setAttribute(java.lang.String identifier,
java.lang.Object object)
IAttributessetAttribute in interface IAttributesidentifier - the identifier of the attributeobject - the value of the attributepublic <O> O getAttribute(java.lang.String identifier)
IAttributesgetAttribute in interface IAttributesO - the type of the attributeidentifier - the identifier of the attributepublic Parameter getAttributeParameter(java.lang.String identifier)
IAttributesnull if the attribute is not
defined as parameter.getAttributeParameter in interface IAttributesidentifier - the identifier of the attributepublic Attributes getAttributes()
IAttributesgetAttributes in interface IAttributespublic java.util.Set<java.lang.String> getAttributeNames()
IAttributesgetAttributeNames in interface IAttributespublic boolean addEdge(D dependency, java.util.Collection<? extends T> vertices)
addEdge in interface edu.uci.ics.jung.graph.Hypergraph<T extends Task,D extends Dependency>addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>public boolean addEdge(D dependency, edu.uci.ics.jung.graph.util.Pair<? extends T> endpoints)
addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>public boolean addEdge(D dependency, T v1, T v2)
addEdge in interface edu.uci.ics.jung.graph.Graph<T extends Task,D extends Dependency>addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>public boolean isDefined(java.lang.String identifier)
IAttributesisDefined in interface IAttributesidentifier - the identifier of the attributetrue if defined