pub struct Problem {
pub name: Name,
pub domain_name: Name,
pub requirements: Vec<Requirement>,
pub objects: TypedList<Name>,
pub init: Vec<InitElement>,
pub goal: Condition,
pub metric: Option<MetricSpec>,
pub constraints: Option<Condition>,
}Expand description
A parsed PDDL problem file.
Produced by super::parser::parse_problem / super::parser::parse_problem_str.
Fields§
§name: NameThe problem name from (problem <name>).
domain_name: NameThe domain this problem refers to, from (:domain <name>).
requirements: Vec<Requirement>Declared requirements (:requirements), if any.
objects: TypedList<Name>Typed object list (:objects).
init: Vec<InitElement>Initial state elements (:init).
goal: ConditionGoal condition (:goal).
metric: Option<MetricSpec>Optional optimization metric (:metric).
constraints: Option<Condition>Optional PDDL3 trajectory constraints (:constraints).
Implementations§
Source§impl Problem
impl Problem
Sourcepub fn sort_alphabetically(&mut self)
pub fn sort_alphabetically(&mut self)
Sort object lists and init elements alphabetically for deterministic ordering.
Trait Implementations§
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more