SharpPDDL 1.1.0
dotnet add package SharpPDDL --version 1.1.0
NuGet\Install-Package SharpPDDL -Version 1.1.0
<PackageReference Include="SharpPDDL" Version="1.1.0" />
<PackageVersion Include="SharpPDDL" Version="1.1.0" />
<PackageReference Include="SharpPDDL" />
paket add SharpPDDL --version 1.1.0
#r "nuget: SharpPDDL, 1.1.0"
#:package SharpPDDL@1.1.0
#addin nuget:?package=SharpPDDL&version=1.1.0
#tool nuget:?package=SharpPDDL&version=1.1.0
This is the class library based on PDDL intellection, but it uses C# language to explain a problem. In effect of them it's a implementation of GOAP (Goal Oriented Action Planning) algorithm. It was made as decision-maker and optimizer for IIoT (as part of MES) small environment, but it could be use as other problems solver too. It uses only C# 7.2 standard library, without third party dependencies. Values inside classes using to find a solution have to be a ValueType only (most numeric, like: int, short etc., char, bool), or be the another class added to domain problem. You can to use previously defined classes which are using in other part of your program. At this version you can use single instance of algorithm to solve single problem.
How to use:
Include the library namespace with using SharpPDDL and use methods of it.
| Method | What does it do? |
|---|---|
new DomainPDDL() |
Creates the instance of algorithm. |
DomainPDDL.AddAction() |
Adds action to domain. |
DomainPDDL.domainObjects |
Objects' collection manned by library. |
DomainPDDL.AddGoal() |
Adds goal to realization. |
DomainPDDL.DefineTrace() |
Defines TraceSource to trace the program run. |
DomainPDDL.planGenerated |
delegate of List<List<string>> type. It shows a generated plan. |
DomainPDDL.SetExecutionOptions() |
Defines options of plan realization. |
DomainPDDL.GenerateDiagrams() |
Types of diagram to generate and path of saving them. |
DomainPDDL.Start() |
Starts the algorithm. |
new ActionPDDL() |
Creates the action to use in domein. |
ActionPDDL.AddPrecondition() |
Adds precondition of action doing. |
ActionPDDL.AddEffect() |
Adds effect of action doing. |
ActionPDDL.DefineActionCost() |
Defines action cost. |
ActionPDDL.AddPartOfActionSententia() |
Adds description of action in generated plan. |
ActionPDDL.AddExecution() |
Adds action execution of the algorithm realization. |
new GoalPDDL() |
Creates the goal of algorithm run. |
GoalPDDL.AddExpectedObjectState() |
Defines a state of one of obj. manned by library as alg. goal. |
Possible applications:
TIP First time of use of it would seem to be a little unintuitive. Get familiar with ready examples.
- 15 puzzle
- Gripper
- River crossing puzzle
- Tower of Hanoi
- Travelling salesman problem
- Triangular peg solitaire
- Water pouring puzzle
License: Creative Commons Attribution-NonCommercial-ShareAlike4.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
- the goal definition can to take cognisance of properties of a few associated objects