prolog.model
Interface IStatement
- All Superinterfaces:
- IFact
- All Known Implementing Classes:
- AbstractStatement, ConstraintStatement, MatchingStatement, NodeStatement
- public interface IStatement
- extends IFact
IStatement is the base interface for a constraint,
a interface to query facts. The extension of the spuerinterface IFact
is used to store the parameters in the relation and providing a name
query
public IFactList query(IFact f,
IFactDb l,
IStatementMap constraints)
throws ParameterMatchingError
- Querries the statement for all Facts matching the given fact.
For this purpose, the factdatabase and the statementmap is required.
- Parameters:
f - is the fact pattern to search forl - is the fact databaseconstraints - is the map containing statements to resolve external symbols- Returns:
- a collection of facts matching the given fact
- Throws:
ParameterMatchingError -