public class DependencyGraph extends java.lang.Object implements IDependencyGraph
Constructor and Description |
---|
DependencyGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(INode fromNode,
INode toNode,
EdgeType type,
org.eclipse.emf.ecore.EModelElement modelElement,
int numOfElements) |
void |
addNode(DSETransformationRule<?,?> transformationRule) |
void |
addNode(PatternWithCardinality pattern,
NodeType nodeType) |
java.util.Collection<INode> |
getConstraintNodes() |
IEdge |
getEdge(INode fromNode,
INode toNode) |
java.util.Set<IEdge> |
getEdges() |
java.util.Collection<INode> |
getGoalNodes() |
INode |
getNodeByConstraint(PatternWithCardinality pattern) |
INode |
getNodeByGoalPattern(PatternWithCardinality pattern) |
INode |
getNodeByTransformationRule(DSETransformationRule<?,?> rule) |
java.util.Set<INode> |
getNodes() |
java.util.Collection<INode> |
getRuleNodes() |
void |
save(java.lang.String filename) |
public void addNode(DSETransformationRule<?,?> transformationRule)
addNode
in interface IDependencyGraph
public void addNode(PatternWithCardinality pattern, NodeType nodeType)
addNode
in interface IDependencyGraph
public void addEdge(INode fromNode, INode toNode, EdgeType type, org.eclipse.emf.ecore.EModelElement modelElement, int numOfElements)
addEdge
in interface IDependencyGraph
public IEdge getEdge(INode fromNode, INode toNode)
getEdge
in interface IDependencyGraph
public java.util.Set<INode> getNodes()
getNodes
in interface IDependencyGraph
public java.util.Set<IEdge> getEdges()
getEdges
in interface IDependencyGraph
public INode getNodeByTransformationRule(DSETransformationRule<?,?> rule)
getNodeByTransformationRule
in interface IDependencyGraph
public INode getNodeByGoalPattern(PatternWithCardinality pattern)
getNodeByGoalPattern
in interface IDependencyGraph
public INode getNodeByConstraint(PatternWithCardinality pattern)
getNodeByConstraint
in interface IDependencyGraph
public java.util.Collection<INode> getRuleNodes()
getRuleNodes
in interface IDependencyGraph
public java.util.Collection<INode> getGoalNodes()
getGoalNodes
in interface IDependencyGraph
public java.util.Collection<INode> getConstraintNodes()
getConstraintNodes
in interface IDependencyGraph
public void save(java.lang.String filename)
save
in interface IDependencyGraph