Package net.sf.opendse.model
Class Function<T extends Task,D extends Dependency>
java.lang.Object
edu.uci.ics.jung.graph.AbstractGraph<T,D>
edu.uci.ics.jung.graph.SparseMultigraph<T,D>
net.sf.opendse.model.Graph<T,D>
net.sf.opendse.model.Function<T,D>
- 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addEdge
(D dependency, Collection<? extends T> vertices) boolean
boolean
<O> O
getAttribute
(String identifier) Returns the attributeReturns the attribute names.getAttributeParameter
(String identifier) Return the parameter definition ornull
if the attribute is not defined as parameter.Returns the map of all pairs of attributes.getId()
int
hashCode()
boolean
Tests whether an attribute is defined.void
setAttribute
(String identifier, Object object) Sets the attribute.Methods inherited from class net.sf.opendse.model.Graph
getEdge, getEdge, getVertex, getVertex, iterator, removeVertices
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, getInEdges, getNeighbors, getOutEdges, 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, inDegree, isIncident, isNeighbor, isPredecessor, isSuccessor, outDegree, toString
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Function
-
Function
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getId
-
setAttribute
Description copied from interface:IAttributes
Sets the attribute.- Specified by:
setAttribute
in interfaceIAttributes
- Parameters:
identifier
- the identifier of the attributeobject
- the value of the attribute
-
getAttribute
Description copied from interface:IAttributes
Returns the attribute- Specified by:
getAttribute
in interfaceIAttributes
- 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
Description copied from interface:IAttributes
Return the parameter definition ornull
if the attribute is not defined as parameter.- Specified by:
getAttributeParameter
in interfaceIAttributes
- Parameters:
identifier
- the identifier of the attribute- Returns:
- the parameter
-
getAttributes
Description copied from interface:IAttributes
Returns the map of all pairs of attributes.- Specified by:
getAttributes
in interfaceIAttributes
- Returns:
- the attribute map
-
getAttributeNames
Description copied from interface:IAttributes
Returns the attribute names.- Specified by:
getAttributeNames
in interfaceIAttributes
- Returns:
- the attribute names
-
addEdge
- Specified by:
addEdge
in interfaceHypergraph<T extends Task,
D extends Dependency> - Overrides:
addEdge
in classAbstractGraph<T extends Task,
D extends Dependency>
-
addEdge
- Overrides:
addEdge
in classAbstractGraph<T extends Task,
D extends Dependency>
-
addEdge
- Specified by:
addEdge
in interfaceGraph<T extends Task,
D extends Dependency> - Overrides:
addEdge
in classAbstractGraph<T extends Task,
D extends Dependency>
-
isDefined
Description copied from interface:IAttributes
Tests whether an attribute is defined.- Specified by:
isDefined
in interfaceIAttributes
- Parameters:
identifier
- the identifier of the attribute- Returns:
true
if defined
-