pub struct AtomicFunctionSkeleton { /* private fields */ }Expand description
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.
It is declared with a name followed by the object type to which it applies. For example, the function declaration
(battery-level ?r - rover)means that every rover object in the domain has a variable which maintains a value for
battery-level. A function can apply to zero or more objects, meaning we could also use it
to represent a numeric value between two values, for example a distance.
(distance ?wp1 - waypoint ?wp2 - waypoint)Numeric fluents can be altered through the effects of both actions
(ActionDefinition) and durative actions
(DurativeActionDefinition).
There are a number of supported effects for numeric fluents, e.g.
BinaryOp and AssignOp.
§Usage
Used by Functions.
Implementations§
Source§impl AtomicFunctionSkeleton
impl AtomicFunctionSkeleton
Sourcepub const fn new(symbol: FunctionSymbol, variables: TypedVariables) -> Self
pub const fn new(symbol: FunctionSymbol, variables: TypedVariables) -> Self
Creates a new function skeleton from its symbol and typed parameter list.
Sourcepub const fn symbol(&self) -> &FunctionSymbol
pub const fn symbol(&self) -> &FunctionSymbol
Gets a reference to the function symbol.
Sourcepub fn variables(&self) -> &TypedVariables
pub fn variables(&self) -> &TypedVariables
Gets a reference to the variables.
Trait Implementations§
Source§impl Clone for AtomicFunctionSkeleton
impl Clone for AtomicFunctionSkeleton
Source§impl Debug for AtomicFunctionSkeleton
impl Debug for AtomicFunctionSkeleton
Source§impl<'de> Deserialize<'de> for AtomicFunctionSkeleton
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AtomicFunctionSkeleton
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>
impl Eq for AtomicFunctionSkeleton
Source§impl From<(FunctionSymbol, TypedList<Variable>)> for AtomicFunctionSkeleton
impl From<(FunctionSymbol, TypedList<Variable>)> for AtomicFunctionSkeleton
Source§fn from(value: (FunctionSymbol, TypedVariables)) -> Self
fn from(value: (FunctionSymbol, TypedVariables)) -> Self
Source§impl From<(FunctionSymbol, Vec<Typed<Variable>>)> for AtomicFunctionSkeleton
impl From<(FunctionSymbol, Vec<Typed<Variable>>)> for AtomicFunctionSkeleton
Source§impl Parser for AtomicFunctionSkeleton
Available on crate feature parser only.
impl Parser for AtomicFunctionSkeleton
parser only.Source§type Item = AtomicFunctionSkeleton
type Item = AtomicFunctionSkeleton
Self except for
DurationConstraint, which may be empty.Source§impl PartialEq for AtomicFunctionSkeleton
impl PartialEq for AtomicFunctionSkeleton
Source§impl Serialize for AtomicFunctionSkeleton
Available on crate feature serde only.
impl Serialize for AtomicFunctionSkeleton
serde only.impl StructuralPartialEq for AtomicFunctionSkeleton
Source§impl Visitor<AtomicFunctionSkeleton, RcDoc<'static>> for PrettyRenderer
Available on crate feature pretty only.
impl Visitor<AtomicFunctionSkeleton, RcDoc<'static>> for PrettyRenderer
pretty only.Source§fn visit(&self, value: &AtomicFunctionSkeleton) -> RcDoc<'static>
fn visit(&self, value: &AtomicFunctionSkeleton) -> RcDoc<'static>
value and returns the result.Auto Trait Implementations§
impl Forget for AtomicFunctionSkeleton
impl Freeze for AtomicFunctionSkeleton
impl Move for AtomicFunctionSkeleton
impl RefUnwindSafe for AtomicFunctionSkeleton
impl Send for AtomicFunctionSkeleton
impl Sync for AtomicFunctionSkeleton
impl Unpin for AtomicFunctionSkeleton
impl UnsafeUnpin for AtomicFunctionSkeleton
impl UnwindSafe for AtomicFunctionSkeleton
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.