File tree Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Expand file tree Collapse file tree 4 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 115
115
<Compile Include =" logic\fol\domain\FOLDomainListener.cs" />
116
116
<Compile Include =" logic\fol\domain\FOLDomainSkolemConstantAddedEvent.cs" />
117
117
<Compile Include =" logic\fol\domain\FOLDomainSkolemFunctionAddedEvent.cs" />
118
+ <Compile Include =" logic\fol\inference\ClauseFilter.cs" />
119
+ <Compile Include =" logic\fol\inference\ClauseSimplifier.cs" />
120
+ <Compile Include =" logic\fol\inference\LightestClauseHeuristic.cs" />
118
121
<Compile Include =" logic\fol\kb\data\Chain.cs" />
119
122
<Compile Include =" logic\fol\kb\data\Clause.cs" />
120
123
<Compile Include =" logic\fol\kb\data\CNF.cs" />
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using aima . core . logic . fol . kb . data ;
4
+
5
+ namespace aima . core . logic . fol . inference . otter
6
+ {
7
+ /**
8
+ * @author Ciaran O'Reilly
9
+ *
10
+ */
11
+ public interface ClauseFilter
12
+ {
13
+ HashSet < Clause > filter ( HashSet < Clause > clauses ) ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using aima . core . logic . fol . kb . data ;
4
+
5
+ namespace aima . core . logic . fol . inference . otter
6
+ {
7
+ /**
8
+ * @author Ciaran O'Reilly
9
+ *
10
+ */
11
+ public interface ClauseSimplifier
12
+ {
13
+ Clause simplify ( Clause c ) ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using aima . core . logic . fol . kb . data ;
4
+
5
+ namespace aima . core . logic . fol . inference . otter
6
+ {
7
+ /**
8
+ * Heuristic for selecting lightest clause from SOS. To avoid recalculating the
9
+ * lightest clause on every call, the interface supports defining the initial
10
+ * sos and updates to that set so that it can maintain its own internal data
11
+ * structures to allow for incremental re-calculation of the lightest clause.
12
+ *
13
+ * @author Ciaran O'Reilly
14
+ *
15
+ */
16
+ public interface LightestClauseHeuristic
17
+ {
18
+ /**
19
+ * Get the lightest clause from the SOS
20
+ *
21
+ * @return the lightest clause.
22
+ */
23
+ Clause getLightestClause ( ) ;
24
+
25
+ /**
26
+ * SOS life-cycle methods allowing implementations of this interface to
27
+ * incrementally update the calculation of the lightest clause as opposed to
28
+ * having to recalculate each time.
29
+ *
30
+ * @param clauses
31
+ */
32
+ void initialSOS ( HashSet < Clause > clauses ) ;
33
+
34
+ void addedClauseToSOS ( Clause clause ) ;
35
+
36
+ void removedClauseFromSOS ( Clause clause ) ;
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments