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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddEdge(D dependency, Collection<? extends T> vertices) booleanboolean<O> OgetAttribute(String identifier) Returns the attributeReturns the attribute names.getAttributeParameter(String identifier) Return the parameter definition ornullif the attribute is not defined as parameter.Returns the map of all pairs of attributes.getId()inthashCode()booleanTests whether an attribute is defined.voidsetAttribute(String identifier, Object object) Sets the attribute.Methods inherited from class net.sf.opendse.model.Graph
getEdge, getEdge, getVertex, getVertex, iterator, removeVerticesMethods 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, removeVertexMethods 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, toStringMethods 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:IAttributesSets the attribute.- Specified by:
setAttributein interfaceIAttributes- Parameters:
identifier- the identifier of the attributeobject- the value of the attribute
-
getAttribute
Description copied from interface:IAttributesReturns the attribute- Specified by:
getAttributein 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
nullif this attribute is not set.
-
getAttributeParameter
Description copied from interface:IAttributesReturn the parameter definition ornullif the attribute is not defined as parameter.- Specified by:
getAttributeParameterin interfaceIAttributes- Parameters:
identifier- the identifier of the attribute- Returns:
- the parameter
-
getAttributes
Description copied from interface:IAttributesReturns the map of all pairs of attributes.- Specified by:
getAttributesin interfaceIAttributes- Returns:
- the attribute map
-
getAttributeNames
Description copied from interface:IAttributesReturns the attribute names.- Specified by:
getAttributeNamesin interfaceIAttributes- Returns:
- the attribute names
-
addEdge
- Specified by:
addEdgein interfaceHypergraph<T extends Task,D extends Dependency> - Overrides:
addEdgein classAbstractGraph<T extends Task,D extends Dependency>
-
addEdge
- Overrides:
addEdgein classAbstractGraph<T extends Task,D extends Dependency>
-
addEdge
- Specified by:
addEdgein interfaceGraph<T extends Task,D extends Dependency> - Overrides:
addEdgein classAbstractGraph<T extends Task,D extends Dependency>
-
isDefined
Description copied from interface:IAttributesTests whether an attribute is defined.- Specified by:
isDefinedin interfaceIAttributes- Parameters:
identifier- the identifier of the attribute- Returns:
trueif defined
-