fi.hut.tml.xsmiles.mlfc.xforms.constraint
Class DependencyGraph

java.lang.Object
  extended byfi.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

Constructor Summary
DependencyGraph()
           
 
Method Summary
 void addEdge(Vertex from, Vertex to)
           
 Vertex addVertex(InstanceNode n, ExpressionContainer container, XPathExpr xpath, short property)
          adds a new vertex to the graph.
 void addVertex(Vertex v)
           
 Vertex getVertex(InstanceNode n, short property)
           
 void printGraph()
           
 void recalculate()
          recalculates this graph.
 void removeNonZeroVertices()
           
 void removeVertex(Vertex v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyGraph

public DependencyGraph()
Method Detail

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