fi.hut.tml.xsmiles.mlfc.xforms.constraint
Class DependencyGraph
java.lang.Object
fi.hut.tml.xsmiles.mlfc.xforms.constraint.DependencyGraph
- Direct Known Subclasses:
- MainDependencyGraph, SubDependencyGraph
- public class DependencyGraph
- extends java.lang.Object
The vertex for the calculation algorithm
- Author:
- Mikko Honkala
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyGraph
public DependencyGraph()
recalculate
public void recalculate()
- recalculates this graph. Uses Vertex.recalculate to calculate
a single node.
addVertex
public Vertex addVertex(InstanceNode n,
ExpressionContainer container,
XPathExpr xpath,
short property)
throws XFormsBindingException
- adds a new vertex to the graph.
If the vertex v already exists in graph:
- if v.bind == null, then update v.bind = bind
This is called by MainDependencyGraph.addBind()
- Throws:
XFormsBindingException
getVertex
public Vertex getVertex(InstanceNode n,
short property)
addVertex
public void addVertex(Vertex v)
addEdge
public void addEdge(Vertex from,
Vertex to)
printGraph
public void printGraph()
removeNonZeroVertices
public void removeNonZeroVertices()
removeVertex
public void removeVertex(Vertex v)
X-Smiles 1.2