net.sf.opendse.model
Class Function<T extends Task,D extends Dependency>
java.lang.Object
edu.uci.ics.jung.graph.AbstractGraph<V,E>
edu.uci.ics.jung.graph.SparseMultigraph<V,E>
net.sf.opendse.model.Graph<T,D>
net.sf.opendse.model.Function<T,D>
- All Implemented Interfaces:
- edu.uci.ics.jung.graph.Graph<T,D>, edu.uci.ics.jung.graph.Hypergraph<T,D>, edu.uci.ics.jung.graph.MultiGraph<T,D>, java.io.Serializable, java.lang.Iterable<T>, IAttributes
public class Function<T extends Task,D extends Dependency>
- extends Graph<T,D>
- implements IAttributes
- See Also:
- Serialized Form
| Fields inherited from class edu.uci.ics.jung.graph.SparseMultigraph |
directedEdges, edges, vertices |
|
Method Summary |
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)
|
|
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. |
| Methods inherited from class edu.uci.ics.jung.graph.SparseMultigraph |
addEdge, 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, removeVertex |
| Methods inherited from class edu.uci.ics.jung.graph.AbstractGraph |
addEdge, addEdge, degree, findEdgeSet, getIncidentCount, getIncidentVertices, getNeighborCount, getOpposite, getPredecessorCount, getSuccessorCount, getValidatedEndpoints, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
attributes
protected final Attributes attributes
Function
public Function(java.lang.String id)
Function
public Function(Attributes attributes)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getId
public java.lang.String getId()
setAttribute
public void setAttribute(java.lang.String identifier,
java.lang.Object object)
- Description copied from interface:
IAttributes
- Sets the attribute.
- Specified by:
setAttribute in interface IAttributes
- Parameters:
identifier - the identifier of the attributeobject - the value of the attribute
getAttribute
public <O> O getAttribute(java.lang.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
getAttributeParameter
public Parameter getAttributeParameter(java.lang.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 java.util.Set<java.lang.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,
java.util.Collection<? extends T> vertices)
- Specified by:
addEdge in interface edu.uci.ics.jung.graph.Hypergraph<T extends Task,D extends Dependency>- Overrides:
addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>
addEdge
public boolean addEdge(D dependency,
edu.uci.ics.jung.graph.util.Pair<? extends T> endpoints)
- Overrides:
addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>
addEdge
public boolean addEdge(D dependency,
T v1,
T v2)
- Specified by:
addEdge in interface edu.uci.ics.jung.graph.Graph<T extends Task,D extends Dependency>- Overrides:
addEdge in class edu.uci.ics.jung.graph.AbstractGraph<T extends Task,D extends Dependency>
isDefined
public boolean isDefined(java.lang.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