prolog.demonstration
Class DemoMatchingStatement

java.lang.Object
  |
  +--prolog.implementation.Fact
        |
        +--prolog.implementation.MatchingStatement
              |
              +--prolog.demonstration.DemoMatchingStatement
All Implemented Interfaces:
IDemoStatement, IFact, IStatement

public class DemoMatchingStatement
extends MatchingStatement
implements IDemoStatement


Field Summary
protected  Node thisNode
          the parent of this node in animation tree
protected  Tree tree
          the animation tree
 
Fields inherited from class prolog.implementation.Fact
name, relation
 
Constructor Summary
DemoMatchingStatement(Tree tree, int name)
          constructor
DemoMatchingStatement(Tree tree, int name, IRelation relation)
          constructor 2
 
Method Summary
 Node getNode()
           
 IFactList query(IFact f, IFactDb l, IStatementMap constraints)
          querries the fact database for a entity that can handle the querry. this can be a factlist or another statement.
 void resetNode()
          clears the cached node
 java.lang.String toString()
           
 
Methods inherited from class prolog.implementation.Fact
addAttribute, genXml, getName, getRelation, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface prolog.model.IFact
genXml, getName, getRelation, toString
 

Field Detail

tree

protected Tree tree
the animation tree

thisNode

protected Node thisNode
the parent of this node in animation tree
Constructor Detail

DemoMatchingStatement

public DemoMatchingStatement(Tree tree,
                             int name)
constructor

DemoMatchingStatement

public DemoMatchingStatement(Tree tree,
                             int name,
                             IRelation relation)
constructor 2
Parameters:
f - - the fact from which to take the parameters
Method Detail

query

public IFactList query(IFact f,
                       IFactDb l,
                       IStatementMap constraints)
                throws ParameterMatchingError
querries the fact database for a entity that can handle the querry. this can be a factlist or another statement.
Overrides:
query in class MatchingStatement
Parameters:
f -  
l -  
constraints -  
Returns:
 
Throws:
ParameterMatchingError -  

getNode

public Node getNode()
Specified by:
getNode in interface IDemoStatement
Returns:
the node in the demo tree

resetNode

public void resetNode()
clears the cached node
Specified by:
resetNode in interface IDemoStatement

toString

public java.lang.String toString()
Overrides:
toString in class Fact
Following copied from class: prolog.implementation.Fact
Returns:
a string representation of this fact