net.sf.opendse.model
Class Function<T extends Task,D extends Dependency>

java.lang.Object
  extended by edu.uci.ics.jung.graph.AbstractGraph<V,E>
      extended by edu.uci.ics.jung.graph.SparseGraph<V,E>
          extended by net.sf.opendse.model.Graph<T,D>
              extended by 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>, 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

Field Summary
protected  Attributes attributes
           
 
Fields inherited from class edu.uci.ics.jung.graph.SparseGraph
directed_edges, INCIDENT, INCOMING, OUTGOING, undirected_edges, vertex_maps
 
Constructor Summary
Function(Attributes attributes)
           
Function(java.lang.String id)
           
 
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)
           
<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.
 
Methods inherited from class net.sf.opendse.model.Graph
getEdge, getEdge, getVertex, getVertex, iterator, removeVertices
 
Methods inherited from class edu.uci.ics.jung.graph.SparseGraph
addEdge, addVertex, containsEdge, containsVertex, findEdge, findEdgeSet, 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, 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
 
Methods inherited from interface edu.uci.ics.jung.graph.Graph
addEdge, getOpposite, getPredecessorCount, getSuccessorCount, inDegree, isPredecessor, isSuccessor, outDegree
 
Methods inherited from interface edu.uci.ics.jung.graph.Hypergraph
addEdge, degree, getIncidentCount, getIncidentVertices, getNeighborCount, isIncident, isNeighbor
 

Field Detail

attributes

protected final Attributes attributes
Constructor Detail

Function

public Function(java.lang.String id)

Function

public Function(Attributes attributes)
Method Detail

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 attribute
object - 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