Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcondon committed Oct 7, 2022
1 parent 04ff702 commit f174445
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
20 changes: 11 additions & 9 deletions src/SCClassicalPlanning/Planning/ProblemInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ IEnumerable<VariableSubstitution> MatchWithState(IEnumerable<Literal> goalElemen
}

/// <summary>
/// Gets the (ground) actions that are applicable from a given state in a given problem.
/// Gets the ground actions that are applicable from a given state in a given problem.
/// </summary>
/// <param name="problem">The problem being solved.</param>
/// <param name="state">The state to retrieve the applicable actions for.</param>
Expand All @@ -133,11 +133,12 @@ public static IEnumerable<Action> GetApplicableActions(Problem problem, State st
}

/// <summary>
/// Gets the (action schema, ground variable substitution) pairings that represent actions that are relevant to a given goal in a given problem.
/// Gets the (action schema, *ground* variable substitution) pairings that represent actions that are relevant to a given goal in a given problem.
/// <para/>
/// TODO/NB: All the results here are ground results - which is rather (potentially extremely) inefficient if the problem is large.
/// NB: All the results here are ground results - which is of course rather (potentially extremely) inefficient if the problem is large.
/// It'd be nice to be able to have an equivalent nethod (in <see cref="Domain"/>) that can return <see cref="Action"/>s that have
/// some (potentially constrained) variable references in them. That's a TODO..
/// some variable references in them, with constraints on the substitutions that can be made if necessary. Having played with this idea a little
/// though, there are.. some subtleties - which go some some to explaining why even the earliest versions of PDDL have things like axioms and types..
/// </summary>
/// <param name="problem">The problem being solved.</param>
/// <param name="goal">The goal to retrieve the relevant actions for.</param>
Expand Down Expand Up @@ -216,9 +217,9 @@ IEnumerable<VariableSubstitution> MatchWithGoal(IEnumerable<Literal> effectEleme

foreach (var schema in problem.Domain.Actions)
{
foreach (var potentialSubsitution in MatchWithGoal(schema.Effect.Elements))
foreach (var potentialSubstitution in MatchWithGoal(schema.Effect.Elements))
{
foreach (var substitution in UnmatchWithGoalNegation(schema.Effect.Elements, potentialSubsitution))
foreach (var substitution in UnmatchWithGoalNegation(schema.Effect.Elements, potentialSubstitution))
{
yield return (schema, substitution);
}
Expand All @@ -227,11 +228,12 @@ IEnumerable<VariableSubstitution> MatchWithGoal(IEnumerable<Literal> effectEleme
}

/// <summary>
/// Gets the (ground) actions that are relevant to a given goal in a given problem.
/// Gets the *ground* actions that are relevant to a given goal in a given problem.
/// <para/>
/// TODO/NB: All the results here are ground results - which is rather (potentially extremely) inefficient if the problem is large.
/// NB: All the results here are ground results - which is of course rather (potentially extremely) inefficient if the problem is large.
/// It'd be nice to be able to have an equivalent nethod (in <see cref="Domain"/>) that can return <see cref="Action"/>s that have
/// some (potentially constrained) variable references in them. That's a TODO..
/// some variable references in them, with constraints on the substitutions that can be made if necessary. Having played with this idea a little
/// though, there are.. some subtleties - which go some some to explaining why even the earliest versions of PDDL have things like axioms and types..
/// </summary>
/// <param name="problem">The problem being solved.</param>
/// <param name="goal">The goal to retrieve the relevant actions for.</param>
Expand Down
7 changes: 1 addition & 6 deletions src/SCClassicalPlanning/SCClassicalPlanning.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageIcon>SCClassicalPlanning.png</PackageIcon>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<None Include="SCClassicalPlanning.md" Pack="true" PackagePath="README.md" />
<None Include="..\SCClassicalPlanning.png" Pack="true" PackagePath="\" />
Expand All @@ -33,10 +33,5 @@
<PackageReference Include="SCFirstOrderLogic" Version="2.1.0" />
<PackageReference Include="SCGraphTheory.Search" Version="2.3.2" />
</ItemGroup>

<ItemGroup>
<Folder Include="ProblemFormatting\" />
<Folder Include="StateStorage\" />
</ItemGroup>

</Project>

0 comments on commit f174445

Please sign in to comment.