diff --git a/src/SCClassicalPlanning.Documentation/wwwroot/md/getting-started.md b/src/SCClassicalPlanning.Documentation/wwwroot/md/getting-started.md index c39bbc9..ceaf89e 100644 --- a/src/SCClassicalPlanning.Documentation/wwwroot/md/getting-started.md +++ b/src/SCClassicalPlanning.Documentation/wwwroot/md/getting-started.md @@ -17,7 +17,7 @@ In this section, we use the ['blocks world'](https://en.wikipedia.org/wiki/Block ### Defining Problems as Code ``` -using SCClassicalPlanning; // for Problem, HashSetState, Goal, Action, Effect +using SCClassicalPlanning; // for HashSetState, Goal, Action, Effect, Problem using SCFirstOrderLogic; // for Constant, Term, Predicate, VariableDeclaration, EqualityIdentifier using static SCFirstOrderLogic.SentenceCreation.OperableSentenceFactory; // for OperablePredicate using Action = SCClassicalPlanning.Action; // an unfortunate clash with System.Action. I'd rather not rename it.. diff --git a/src/SCClassicalPlanning.ExampleDomains/AsCode/AirCargoOneAtATimeDomain.cs b/src/SCClassicalPlanning.ExampleDomains/AsCode/AirCargoOneAtATimeDomain.cs index cc8a7e3..af685e0 100644 --- a/src/SCClassicalPlanning.ExampleDomains/AsCode/AirCargoOneAtATimeDomain.cs +++ b/src/SCClassicalPlanning.ExampleDomains/AsCode/AirCargoOneAtATimeDomain.cs @@ -50,7 +50,7 @@ static AirCargoOneAtATimeDomain() IsAt(Cargo1, Airport2) & IsAt(Cargo2, Airport2) & IsAt(Cargo3, Airport2)), - actions: actionSchemas); + actionSchemas: actionSchemas); } public static Problem Problem { get; } diff --git a/src/SCClassicalPlanning/HashSetState.cs b/src/SCClassicalPlanning/HashSetState.cs index 4e2da5d..b18e35b 100644 --- a/src/SCClassicalPlanning/HashSetState.cs +++ b/src/SCClassicalPlanning/HashSetState.cs @@ -210,7 +210,7 @@ private class StateConstantFinder : RecursiveStateVisitor> } /// - /// Utility class to find instances within the elements of a , and add them to a given . + /// Utility class to find instances within the elements of a , and add them to a given . /// private class GoalConstantFinder : RecursiveGoalVisitor> { diff --git a/src/SCClassicalPlanning/Planning/Utilities/ProblemInspector.cs b/src/SCClassicalPlanning/Planning/Utilities/ProblemInspector.cs index c8fa368..afe5de2 100644 --- a/src/SCClassicalPlanning/Planning/Utilities/ProblemInspector.cs +++ b/src/SCClassicalPlanning/Planning/Utilities/ProblemInspector.cs @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -using SCClassicalPlanning.Planning.GraphPlan; using SCClassicalPlanning.ProblemManipulation; using SCFirstOrderLogic; using SCFirstOrderLogic.SentenceManipulation; diff --git a/src/SCClassicalPlanning/Problem.cs b/src/SCClassicalPlanning/Problem.cs index 94cf030..9537c8d 100644 --- a/src/SCClassicalPlanning/Problem.cs +++ b/src/SCClassicalPlanning/Problem.cs @@ -28,12 +28,12 @@ public class Problem /// /// The initial state of the problem. /// The end goal of the problem. - /// The actions that are available within the problem. - public Problem(IState initialState, Goal endGoal, IQueryable actions) + /// The schemas of the actions that are available within the problem. + public Problem(IState initialState, Goal endGoal, IQueryable actionSchemas) { InitialState = initialState; EndGoal = endGoal; - ActionSchemas = actions; + ActionSchemas = actionSchemas; } /// @@ -47,7 +47,7 @@ public Problem(IState initialState, Goal endGoal, IQueryable actions) public Goal EndGoal { get; } /// - /// Gets the actions that are available. + /// Gets the schemas of the actions that are available within the problem. /// public IQueryable ActionSchemas { get; }