prolog.implementation
Class MatchingStatement

java.lang.Object
  |
  +--prolog.implementation.Fact
        |
        +--prolog.implementation.MatchingStatement
All Implemented Interfaces:
IFact, IStatement
Direct Known Subclasses:
DemoMatchingStatement

public class MatchingStatement
extends Fact
implements IStatement

Title: MatchingStatement

Descrpition: a statement able to query a factlist or another statement. it is the most bottom class in the expression tree


Fields inherited from class prolog.implementation.Fact
name, relation
 
Constructor Summary
MatchingStatement(int name)
          constructor
MatchingStatement(int name, IRelation relation)
          constructor 2
 
Method Summary
 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.
 
Methods inherited from class prolog.implementation.Fact
addAttribute, genXml, getName, getRelation, toString, 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
 

Constructor Detail

MatchingStatement

public MatchingStatement(int name)
constructor

MatchingStatement

public MatchingStatement(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.
Specified by:
query in interface IStatement
Parameters:
f -  
l -  
constraints -  
Returns:
 
Throws:
ParameterMatchingError -