Skip to main content

Crate pddl_core

Crate pddl_core 

Source
Expand description

The types and the parser behind the pddl crate.

Depend on pddl instead: it re-exports everything in this crate and adds the compile-time domain!, problem! and pddl! macros behind its macros feature. This crate exists so that pddl-macros can use the parser without depending on pddl, which re-exports it.

Re-exports§

pub use parsers::ParseError;parser
pub use parsers::Parser;parser
pub use pretty_print::Pretty;pretty
pub use pretty_print::PrettyPrinted;pretty
pub use pretty_print::PrettyRenderer;pretty

Modules§

codegencodegen
Loads a Problem for planning code that pddl-codegen generated from a domain.
parsersparser
Provides the Parser trait and the ParseError it reports.
pretty_printpretty
Renders PDDL types back to PDDL text, wrapped to a target line width.
sas_plussas-plus
Grounds a PDDL domain and problem into a Fast Downward SAS+ task.
serdeserde
Serde support: PDDL domains and problems as JSON, YAML, TOML, NOVA or any other self-describing format.
syntaxparser
The untyped syntax tree of PDDL text: atoms, parenthesized lists and comments, each with its byte range in the input.
visitor
Visitor traits for traversing PDDL structures.

Structs§

ActionDefinition
An action definition.
ActionSymbol
An action symbol name.
AtomicFormulaSkeleton
An atomic formula skeleton.
AtomicFunctionSkeleton
A numeric fluent, similar to a predicate, is a variable which applies to zero or more objects and maintains a value throughout the duration of the plan.
BasicFunctionTerm
Usage
Constants
A set of constants.
DerivedPredicate
A derived predicate.
Domain
The Domain type specifies a problem domain in which to plan.
DomainConstraintsDef
A domain constraints definition; wraps a ConstraintGoalDescription.
DurativeActionDefinition
A durative action represents an action which takes an amount of time to complete. The amount of time is expressible as either a value or as an inequality (allow for both fixed duration and ranged duration actions).
DurativeActionFunctionAssignment
An timed effect assignment operation. Will perform the specified assignment at TimeSpecifier when NumericFluents is allowed.
DurativeActionSymbol
A durative action symbol.
Effects
An effect. Occurs e.g. in a ActionDefinition.
EqualityAtomicFormula
An equality atomic formula, (= <t> <t>).
FluentComparison
A fluent comparison used as part of a GoalDescription when NumericFluents is allowed.
ForallConditionalEffect
Applies the specified effects for all listed variables.
FunctionSymbol
A function symbol name.
FunctionTerm
A function term.
FunctionType
A function type.
FunctionTyped
A typed function element.
FunctionTypedList
A list of typed elements.
Functions
A set of functions.
InitElements
A wrapper around a list of InitElement values.
LengthSpec
Deprecated since PDDL 2.1.
MetricSpec
A metric specification.
Name
A name.
NotAMultiOp
A BinaryOp that has no MultiOp equivalent: - or /.
Number
A number.
Objects
A list of objects.
PddlFile
A PDDL file containing zero or more domains and problems.
PreconditionGoalDescriptions
Zero, one or many precondition goal descriptions.
Predicate
A predicate name.
PredicateAtomicFormula
A predicate atomic formula, (<predicate> <t>*).
PredicateDefinitions
A set of predicate definitions.
Preference
A preference.
PreferenceConstraintGoalDescriptions
A list of PreferenceConstraintGoalDescription values. This represents the (and ...) variant of the PDDL definition, modeling cases of zero, one or many values.
PreferenceName
A name of a preference.
PrimitiveType
A primitive type.
Problem
A domain-specific problem declaration.
ProblemConstraintsDef
A problem constraints definition; wraps a PreferenceConstraintGoalDescriptions.
ProblemGoalDescription
A problem goal description; wraps a PreconditionGoalDescriptions.
ProcessDefinition
A PDDL+ process: continuous change that runs whenever its precondition holds.
Requirements
A set of domain requirements.
StructureDefs
A set of structure definitions.
Timeless
A timeless predicate.
Typed
A typed element.
TypedList
A list of typed elements.
Types
A set of types.
UnknownKeyword
A string that is not one of the keywords of a PDDL type, e.g. "incr" for an AssignOp.
Variable
A variable name.
WhenConditionalEffect
Applies the specified effects for all listed variables.

Enums§

AssignOp
An assignment operation.
AtomicFormula
An atomic formula.
BinaryComparison
A binary comparison operation.
BinaryOp
A binary operation.
ConditionalEffect
A (potentially conditional) effect. Occurs as part of Effects.
ConstraintGoalDescription
A constraint goal description.
ConstraintGoalDescriptionInner
A type that represents either a GoalDescription or an embedded ConstraintGoalDescription.
Definition
A single (define ...) block: either a domain or a problem.
DurationConstraint
Usage
DurationOperator
Usage
DurationValue
A duration value, either a Number or a FluentExpression.
DurativeActionEffect
A durative action effect used in DurativeActionDefinition.
DurativeActionFluentExpression
Usage
DurativeActionGoalDescription
A durative action goal description.
EffectCondition
An effect condition as used by WhenConditionalEffect::effect and TimedEffect::Conditional.
FluentExpression
A function/fluent expression used e.g. in a DurationValue.
FunctionHead
A function declaration.
GoalDescription
A goal description.
InitElement
Usage
Interval
An interval used in TimedGD::Over.
Literal
An AtomicFormula or its negated value.
MetricFluentExpression
A metric function expression.
MultiOp
An operation with multiple operands.
NumberError
An error constructing or parsing a Number.
Optimization
An optimization instruction.
PreconditionGoalDescription
A precondition goal description.
PreferenceConstraintGoalDescription
Requirements
PreferenceGoalDescription
A goal description that may be a preference, <pref-GD>.
PreferenceTimedGoalDescription
A timed goal description that may be a preference, <pref-timed-GD>.
PrimitiveEffect
A primitive effect. Occurs as part of a ConditionalEffect via its Effect variant, or nested within an EffectCondition inside when clauses.
Requirement
Domain requirements.
SimpleDurationConstraint
A simple duration constraint.
StructureDef
A domain structure definition.
Term
A term, i.e. a Name, Variable or FunctionTerm.
TimeSpecifier
A time specifier used in e.g. TimedGD::At and TimedEffect.
TimedAssignOperator
An assignment operation.
TimedEffect
A timed effect, either conditional, continuous or derived from a fluent, e.g. DurativeActionEffect.
TimedFluentExpression
An f-exp-t.
TimedGoalDescription
A timed goal description.
Type
A type selection from <primitive-type> | (either <primitive-type>).

Traits§

ToTyped
Converts a value into a Typed value.

Type Aliases§

AssignOpTDeprecated
Alias for TimedAssignOperator; matches BNF <assign-op-t>.
BinaryCompDeprecated
Alias for BinaryComparison.
CEffectDeprecated
Alias for ConditionalEffect; matches BNF <c-effect>.
Con2GDDeprecated
Alias for ConstraintGoalDescriptionInner; matches BNF <con2-GD>.
ConGDDeprecated
Alias for ConstraintGoalDescription; matches BNF <con-GD>.
ConstraintGoalDefinitionDeprecated
Former name of ConstraintGoalDescription.
ConstraintGoalDefinitionInnerDeprecated
Former name of ConstraintGoalDescriptionInner.
DOpDeprecated
Alias for DurationOperator; matches BNF <d-op>.
DurativeActionGoalDefinitionDeprecated
Former name of DurativeActionGoalDescription.
FAssignDaDeprecated
Alias for DurativeActionFunctionAssignment; matches BNF <f-assign-da>.
FCompDeprecated
Alias for FluentComparison; matches BNF <f-comp>.
FExpDeprecated
Alias for FluentExpression; matches BNF <f-exp>.
FExpDaDeprecated
Alias for DurativeActionFluentExpression; matches BNF <f-exp-da>.
FExpTDeprecated
Alias for TimedFluentExpression; matches BNF <f-exp-t>.
FHeadDeprecated
Alias for FunctionHead; matches BNF <f-head>.
ForallCEffectDeprecated
Alias for ForallConditionalEffect; matches BNF <c-effect> (forall variant).
GoalDefDeprecated
Alias for ProblemGoalDescription.
GoalDefinitionDeprecated
Former name of GoalDescription.
MetricFExpDeprecated
Alias for MetricFluentExpression; matches BNF <metric-f-exp>.
NameLiteral
A literal over names.
PEffectDeprecated
Alias for PrimitiveEffect; matches BNF <p-effect>.
PreconditionGoalDefinitionDeprecated
Former name of PreconditionGoalDescription.
PreconditionGoalDefinitionsDeprecated
Former name of PreconditionGoalDescriptions.
PrefConGDDeprecated
Alias for PreferenceConstraintGoalDescription; matches BNF <pref-con-GD>.
PrefConGDsDeprecated
Alias for PreferenceConstraintGoalDescriptions; matches BNF <pref-con-GD> (list form).
PrefTimedGDDeprecated
Alias for PreferenceTimedGoalDescription; matches BNF <pref-timed-GD>.
PreferenceConstraintGoalDefinitionDeprecated
Former name of PreferenceConstraintGoalDescription.
PreferenceConstraintGoalDefinitionsDeprecated
Former name of PreferenceConstraintGoalDescriptions.
PreferenceGDDeprecated
Alias for PreferenceGoalDescription; matches BNF <pref-GD>.
PreferenceGoalDefinitionDeprecated
Former name of PreferenceGoalDescription.
PreferenceTimedGoalDefinitionDeprecated
Former name of PreferenceTimedGoalDescription.
ProblemGoalDefinitionDeprecated
Former name of ProblemGoalDescription.
TermLiteral
A literal over terms.
TimedGDDeprecated
Alias for TimedGoalDescription; matches BNF <timed-GD>.
TimedGoalDefinitionDeprecated
Former name of TimedGoalDescription.
TypedNames
A list of typed names, e.g. objects or constants t1 t2 - truck.
TypedVariables
A list of typed variables, e.g. action parameters ?x - truck ?l - location.
WhenCEffectDeprecated
Alias for WhenConditionalEffect; matches BNF <c-effect> (when variant).