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

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.constraint.Vertex
Direct Known Subclasses:
CalculateVertex, IsvalidVertex, ReadonlyVertex, RelevantVertex, RequiredVertex

public abstract class Vertex
extends java.lang.Object

The vertex for the calculation algorithm

Author:
Mikko Honkala

Field Summary
static short CALCULATE_VERTEX
           
static short ISVALID_VERTEX
           
static short READONLY_VERTEX
           
static short RELEVANT_VERTEX
           
static short REQUIRED_VERTEX
           
 boolean wasAlreadyInGraph
          a flag to notify that this vertex was already in graph
 
Constructor Summary
Vertex()
           
Vertex(InstanceNode n, ExpressionContainer expr, XPathExpr xpathExpr)
           
 
Method Summary
 void addDep(Vertex to)
           
abstract  void compute()
           
 org.w3c.dom.Node getContextNode()
           
 org.w3c.dom.Node getNamespaceContextNode()
           
abstract  short getVertexType()
           
 XPathExpr getXPath()
           
 void print(int level)
           
 java.lang.Object runXPath()
           
 java.lang.String runXPathAsString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALCULATE_VERTEX

public static final short CALCULATE_VERTEX
See Also:
Constant Field Values

RELEVANT_VERTEX

public static final short RELEVANT_VERTEX
See Also:
Constant Field Values

READONLY_VERTEX

public static final short READONLY_VERTEX
See Also:
Constant Field Values

REQUIRED_VERTEX

public static final short REQUIRED_VERTEX
See Also:
Constant Field Values

ISVALID_VERTEX

public static final short ISVALID_VERTEX
See Also:
Constant Field Values

wasAlreadyInGraph

public boolean wasAlreadyInGraph
a flag to notify that this vertex was already in graph

Constructor Detail

Vertex

public Vertex(InstanceNode n,
              ExpressionContainer expr,
              XPathExpr xpathExpr)

Vertex

public Vertex()
Method Detail

addDep

public void addDep(Vertex to)

print

public void print(int level)

compute

public abstract void compute()

getVertexType

public abstract short getVertexType()

getXPath

public XPathExpr getXPath()

getContextNode

public org.w3c.dom.Node getContextNode()

getNamespaceContextNode

public org.w3c.dom.Node getNamespaceContextNode()

runXPath

public java.lang.Object runXPath()

runXPathAsString

public java.lang.String runXPathAsString()


X-Smiles 1.2