Skip to content

Commit 48d9bd3

Browse files
committed
Added a total fact count to the SASDecl
1 parent 88c0b0c commit 48d9bd3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Models/SAS/SASDecl.cs

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public class SASDecl
99
public HashSet<Fact> Goal;
1010
public HashSet<Fact> Init;
1111

12+
public int Facts;
13+
1214
private Dictionary<int, Operator> _operatorDict;
1315
private Dictionary<int, Fact> _factDict;
1416

@@ -46,6 +48,8 @@ public SASDecl(HashSet<string> domainVariables, List<Operator> operators, HashSe
4648
_factDict.Add(del.ID, del);
4749
}
4850
}
51+
52+
Facts = _factDict.Keys.Count;
4953
}
5054

5155
public SASDecl() : this(new HashSet<string>(), new List<Operator>(), new HashSet<Fact>(), new HashSet<Fact>())

PDDLSharp/PDDLSharp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<PropertyGroup>
1717
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
18-
<Version>1.6.7</Version>
18+
<Version>1.6.8</Version>
1919
</PropertyGroup>
2020

2121
<PropertyGroup>

0 commit comments

Comments
 (0)