#[non_exhaustive]pub enum ViolationKind {
Show 23 variants
PlanSyntax(PlanError),
UnknownAction(String),
Arity {
expected: usize,
found: usize,
},
UnknownObject {
parameter: String,
object: String,
},
TypeMismatch {
parameter: String,
object: String,
expected: String,
},
PreconditionUnsatisfied(Unmet),
GoalUnsatisfied(Unmet),
Undefined(Atom),
DivisionByZero(String),
NonFinite(String),
ConflictingUpdates(Atom),
MissingTimestamp,
MissingDuration,
UnexpectedDuration,
NonPositiveDuration(f64),
InvalidTime(f64),
DurationConstraint(Unmet),
SelfOverlap {
other: usize,
},
StartConditionUnsatisfied(Unmet),
EndConditionUnsatisfied(Unmet),
InvariantViolated {
time: f64,
unmet: Unmet,
},
Interference {
event: String,
other: String,
time: f64,
separation: f64,
},
EventCascade {
time: f64,
limit: usize,
},
}Expand description
The kinds of Violation. All names are in ASCII lowercase.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PlanSyntax(PlanError)
The plan text cannot be read.
UnknownAction(String)
The step names an action the domain does not define.
Arity
The step passes the wrong number of arguments.
Fields
UnknownObject
The step passes an object that neither the domain nor the problem declares.
Fields
TypeMismatch
The step passes an object of the wrong type.
Fields
PreconditionUnsatisfied(Unmet)
The precondition does not hold in the state before the step.
GoalUnsatisfied(Unmet)
The final state does not satisfy the goal.
Undefined(Atom)
An effect, or a condition whose truth value depends on it, reads a numeric fluent that has no value.
DivisionByZero(String)
The rendered expression divides by zero.
NonFinite(String)
The rendered expression has no finite value.
ConflictingUpdates(Atom)
The step updates the fluent with assign, scale-up or scale-down together
with another update, so the result would depend on their order.
MissingTimestamp
A timestamped plan has a step without a timestamp.
MissingDuration
A durative action has no [duration].
UnexpectedDuration
An instantaneous action has a [duration].
NonPositiveDuration(f64)
The duration is not positive (at most 1e-9), not finite, or rounds away when added to a huge start time.
InvalidTime(f64)
A start or end time that is negative or not finite.
DurationConstraint(Unmet)
The duration violates the action’s :duration constraint; left is the duration.
SelfOverlap
The step runs while an earlier step of the same action with the same arguments still runs. Following the formal semantics of PDDL 2.1 the validator is built on (Abdulaziz and Koller, 2022), a ground durative action must not overlap itself: its end could belong to either start.
Fields
other: usizeThe 1-based number of the other step, as StepRef::number.
StartConditionUnsatisfied(Unmet)
An at start condition does not hold when the action starts.
EndConditionUnsatisfied(Unmet)
An at end condition does not hold when the action ends.
InvariantViolated
An over all condition fails at time, strictly between the action’s start and
end.
Interference
The event interferes with another one at the same time or less than the
separation epsilon apart (PDDL 2.1 mutex): one changes what the other reads or
changes.
Fields
EventCascade
PDDL+ events kept triggering each other at time: after limit rounds of firing,
one was still enabled, typically an event whose effect leaves its own precondition
true.
Trait Implementations§
Source§impl Clone for ViolationKind
impl Clone for ViolationKind
Source§impl Debug for ViolationKind
impl Debug for ViolationKind
Source§impl Display for ViolationKind
impl Display for ViolationKind
Source§impl PartialEq for ViolationKind
impl PartialEq for ViolationKind
impl StructuralPartialEq for ViolationKind
Auto Trait Implementations§
impl Forget for ViolationKind
impl Freeze for ViolationKind
impl Move for ViolationKind
impl RefUnwindSafe for ViolationKind
impl Send for ViolationKind
impl Sync for ViolationKind
impl Unpin for ViolationKind
impl UnsafeUnpin for ViolationKind
impl UnwindSafe for ViolationKind
Blanket Implementations§
Source§impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
impl<V, T, O> AcceptMut<V, T, O> for Twhere
V: VisitorMut<T, O>,
Source§fn accept_mut(&self, v: &mut V) -> O
fn accept_mut(&self, v: &mut V) -> O
v visit self.