pub enum TimedGoalDescription {
At(TimeSpecifier, GoalDescription),
Over(Interval, GoalDescription),
}Expand description
Variants§
At(TimeSpecifier, GoalDescription)
§at start
An expression or predicate with at start prefixed to it means that the condition
must be true at the start of the action in order for the action to be applied. e.g.
(at start (at ?rover ?from-waypoint))expresses that at start the given rover is at the from-waypoint.
Confusingly in this particular domain, the at is a predicate representing the
location of an object at a point, whilst at start is a keyword.
at start is usually applied per predicate.
§at end
An expression or predicate with at end prefixed to it means that the condition
must be true at the end of the action in order for the action to be applied e.g.
(at end (>= (battery-amount ?rover) 0))expresses that whilst this fact doesn’t have to be true at the start or during the action, it must be true at the end. In this case, we’re expressing that the battery amount at the end of the action must be greater than zero.
Over(Interval, GoalDescription)
§over all
An expression or predicate with an overall prefixed to it, means that the condition must be true throughout the action, including at the start and end. e.g.
(over all (can-move ?from-waypoint ?to-waypoint))At all points in the execution of the action the given expression must evaluate to true. In the case above, we are expressing that it must be possible to move from the from waypoint to the to waypoint all the way through the action. I.e. we don’t want to get half way through the action to find that after a certain point a path has become blocked.
Implementations§
Source§impl TimedGoalDescription
impl TimedGoalDescription
Sourcepub const fn at(time: TimeSpecifier, gd: GoalDescription) -> Self
pub const fn at(time: TimeSpecifier, gd: GoalDescription) -> Self
Creates an (at <time-specifier> <GD>) goal, e.g. (at start <GD>).
Sourcepub const fn new_at(time: TimeSpecifier, gd: GoalDescription) -> Self
👎Deprecated since 0.2.0: Use at instead
pub const fn new_at(time: TimeSpecifier, gd: GoalDescription) -> Self
Use at instead
Deprecated alias for Self::at.
Sourcepub const fn over(interval: Interval, gd: GoalDescription) -> Self
pub const fn over(interval: Interval, gd: GoalDescription) -> Self
Creates an (over <interval> <GD>) goal, e.g. (over all <GD>).
Sourcepub const fn new_over(interval: Interval, gd: GoalDescription) -> Self
👎Deprecated since 0.2.0: Use over instead
pub const fn new_over(interval: Interval, gd: GoalDescription) -> Self
Use over instead
Deprecated alias for Self::over.
Trait Implementations§
Source§impl Clone for TimedGoalDescription
impl Clone for TimedGoalDescription
Source§impl Debug for TimedGoalDescription
impl Debug for TimedGoalDescription
Source§impl<'de> Deserialize<'de> for TimedGoalDescription
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TimedGoalDescription
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl From<(Interval, GoalDescription)> for TimedGoalDescription
impl From<(Interval, GoalDescription)> for TimedGoalDescription
Source§fn from(value: (Interval, GoalDescription)) -> Self
fn from(value: (Interval, GoalDescription)) -> Self
Source§impl From<(TimeSpecifier, GoalDescription)> for TimedGoalDescription
impl From<(TimeSpecifier, GoalDescription)> for TimedGoalDescription
Source§fn from(value: (TimeSpecifier, GoalDescription)) -> Self
fn from(value: (TimeSpecifier, GoalDescription)) -> Self
Source§impl From<TimedGoalDescription> for PreferenceTimedGoalDescription
impl From<TimedGoalDescription> for PreferenceTimedGoalDescription
Source§fn from(value: TimedGoalDescription) -> Self
fn from(value: TimedGoalDescription) -> Self
Source§impl Parser for TimedGoalDescription
Available on crate feature parser only.
impl Parser for TimedGoalDescription
parser only.Source§type Item = TimedGoalDescription
type Item = TimedGoalDescription
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for TimedGoalDescription
impl PartialEq for TimedGoalDescription
Source§impl Serialize for TimedGoalDescription
Available on crate feature serde only.
impl Serialize for TimedGoalDescription
serde only.impl StructuralPartialEq for TimedGoalDescription
Source§impl Visitor<TimedGoalDescription, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<TimedGoalDescription, RcDoc<'static>> for PrettyRenderer
pretty only.Source§fn visit(&self, value: &TimedGoalDescription) -> RcDoc<'static>
fn visit(&self, value: &TimedGoalDescription) -> RcDoc<'static>
value and returns the result.Auto Trait Implementations§
impl Forget for TimedGoalDescription
impl Freeze for TimedGoalDescription
impl Move for TimedGoalDescription
impl RefUnwindSafe for TimedGoalDescription
impl Send for TimedGoalDescription
impl Sync for TimedGoalDescription
impl Unpin for TimedGoalDescription
impl UnsafeUnpin for TimedGoalDescription
impl UnwindSafe for TimedGoalDescription
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.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Pretty for Twhere
T: PrettyVisit,
impl<T> Pretty for Twhere
T: PrettyVisit,
Source§impl<T> PrettyVisit for T
impl<T> PrettyVisit for T
Source§fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
fn to_doc(&self, r: &PrettyRenderer) -> RcDoc<'static>
pretty only.self with the renderer r.