dlvhex
2.5.0
|
Public Member Functions | |
TestCAtom () | |
virtual void | retrieve (const ComfortQuery &query, ComfortAnswer &answer) |
Retrieve answer to a query (external computation happens here). |
Definition at line 128 of file TestPlugin.cpp.
TestCAtom::TestCAtom | ( | ) | [inline] |
Definition at line 132 of file TestPlugin.cpp.
References PluginAtom::addInputPredicate(), and PluginAtom::setOutputArity().
virtual void TestCAtom::retrieve | ( | const ComfortQuery & | q, |
ComfortAnswer & | a | ||
) | [inline, virtual] |
Retrieve answer to a query (external computation happens here).
This function implements the external atom computation. See also documentation of Query and Answer classes.
Answer tuples must conform to the content of the pattern tuple in Query:
q | See ComfortPluginAtom::ComfortQuery. |
a | See ComfortPluginAtom::ComfortAnswer. |
Implements ComfortPluginAtom.
Definition at line 139 of file TestPlugin.cpp.
References ComfortPluginAtom::ComfortQuery::input, ComfortPluginAtom::ComfortQuery::interpretation, ComfortInterpretation::matchPredicate(), and ComfortAtom::tuple.