Skip to content

Add Hook for Filtering Atoms #568

Description

@monsterkrampe

For a student project, we need a feature to be able to filter derived facts according to some (quite involved) function.
It would be nice, if we could just pass this to the execution engine to be applied as another filter on top of the derived facts.
Basically, if l is the list of derived facts, we want to call l.filter(p) where p : Fact -> Bool is our predicate function that we pass to the execution engine.
That should already be all we need. I hope the description is clear enough :)

@aannleax It would help me, if you can create some stubs for functions that would be required for this. I'm not sure where the best place to inject this would be. I can then fill in the gaps if you want me to :)
Also feel free to add the appropriate labels to this issue since I'm not sure which layers would actually be affected here.

Metadata

Metadata

Assignees

Labels

Fields

No fields configured for Feature.

Projects

Status
Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions