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

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.constraint.DependencyGraph
      extended byfi.hut.tml.xsmiles.mlfc.xforms.constraint.MainDependencyGraph

public class MainDependencyGraph
extends DependencyGraph

The dependency graph for the calculation algorithm

Author:
Mikko Honkala

Field Summary
 boolean calculated
           
protected  LookupResult result
           
protected  ModelElementImpl xform
           
 
Constructor Summary
MainDependencyGraph()
           
 
Method Summary
 void addBindToGraph(BindElement bind, ModelContext modelContext)
          Adds a single bind's ref nodes to the Main Graph called by MainDependencyGraph.constructMainGraph()
 void addRefNodeToGraph(InstanceNode n, ExpressionContainer container, XPathExpr xpath, short type, ModelContext modelContext)
          Adds a single bind's ref node to the Main Graph called by MainDependencyGraph.addBindToGraph()
protected  void addTypeToInstanceNode(InstanceNode n, BindElement bind)
          this method checks for xforms: type attributes and adds type information to the relevant node.
protected  XPathExpr createExpression(java.lang.String s, ModelContext m)
           
 void recalculate()
          Extends DependencyGraph.recalculate().
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.constraint.DependencyGraph
addEdge, addVertex, addVertex, getVertex, printGraph, removeNonZeroVertices, removeVertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xform

protected ModelElementImpl xform

calculated

public boolean calculated

result

protected LookupResult result
Constructor Detail

MainDependencyGraph

public MainDependencyGraph()
Method Detail

addBindToGraph

public void addBindToGraph(BindElement bind,
                           ModelContext modelContext)
                    throws XFormsBindingException,
                           java.lang.Exception
Adds a single bind's ref nodes to the Main Graph called by MainDependencyGraph.constructMainGraph()

Throws:
XFormsBindingException
java.lang.Exception

createExpression

protected XPathExpr createExpression(java.lang.String s,
                                     ModelContext m)

addTypeToInstanceNode

protected void addTypeToInstanceNode(InstanceNode n,
                                     BindElement bind)
this method checks for xforms: type attributes and adds type information to the relevant node. Note that type is not calculated property, so it is not added as an vertex!


addRefNodeToGraph

public void addRefNodeToGraph(InstanceNode n,
                              ExpressionContainer container,
                              XPathExpr xpath,
                              short type,
                              ModelContext modelContext)
                       throws java.lang.Exception,
                              XFormsBindingException
Adds a single bind's ref node to the Main Graph called by MainDependencyGraph.addBindToGraph()

Throws:
java.lang.Exception
XFormsBindingException

recalculate

public void recalculate()
Extends DependencyGraph.recalculate(). Restores the vertices vector after recalc

Overrides:
recalculate in class DependencyGraph


X-Smiles 1.2