Teloid

Struct Teloid 

Source
pub struct Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,
{ /* private fields */ }

Implementations§

Source§

impl<D, S, T, ST, SYM, VS, VT> Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Source

pub fn id(&self) -> TeloidID

Returns the unique identifier of the teloid.

§Returns

A TeloidID representing the teloid’s unique identifier.

Source

pub fn action_identifier(&self) -> &str

Returns a reference to the action identifier string of the teloid.

§Returns

A string slice (&str) representing the action identifier.

Source

pub fn activation_predicate( &self, ) -> Option<fn(&Context<D, S, T, ST, SYM, VS, VT>, &ProposedAction) -> bool>

Returns the deterministic activation predicate function of the teloid, if it exists.

§Returns

An Option containing a function pointer fn(&Context<D, S, T, ST, SYM, VS, VT>, &ProposedAction) -> bool that represents the activation predicate.

Source

pub fn uncertain_activation_predicate( &self, ) -> Option<UncertainActivationPredicate<D, S, T, ST, SYM, VS, VT>>

Returns the uncertain activation predicate function of the teloid, if it exists.

§Returns

An Option containing a UncertainActivationPredicate function pointer.

Source

pub fn uncertain_parameter(&self) -> Option<UncertainParameter>

Returns the uncertain parameter of the teloid, if it exists.

§Returns

An Option containing an UncertainParameter struct. Returns None if no uncertain parameter is present.

Source

pub fn modality(&self) -> TeloidModal

Returns the modality of the teloid.

§Returns

A TeloidModal enum variant representing the teloid’s modality.

Source

pub fn timestamp(&self) -> u64

Returns the timestamp of the teloid.

§Returns

A u64 representing the teloid’s timestamp.

Source

pub fn specificity(&self) -> u32

Returns the specificity of the teloid.

Specificity is a measure of how precise or detailed the teloid is. Higher values indicate greater specificity.

§Returns

A u32 representing the teloid’s specificity.

Source

pub fn priority(&self) -> u32

Returns the priority of the teloid.

§Returns

A u32 representing the teloid’s priority.

Source

pub fn tags(&self) -> &Vec<TeloidTag>

Returns a reference to the vector of tags associated with the teloid.

§Returns

A reference to a Vec<TeloidTag> representing the teloid’s tags.

Source

pub fn metadata(&self) -> &Option<HashMap<String, String>>

Returns a reference to the optional metadata associated with the teloid.

§Returns

A reference to an Option<TeloidMetaData> representing the teloid’s metadata. Returns None if no metadata is present.

Source§

impl<D, S, T, ST, SYM, VS, VT> Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Source

pub fn new_deterministic( id: TeloidID, action_identifier: String, activation_predicate: fn(&Context<D, S, T, ST, SYM, VS, VT>, &ProposedAction) -> bool, modality: TeloidModal, timestamp: u64, specificity: u32, priority: u32, tags: Vec<TeloidTag>, metadata: Option<HashMap<String, String>>, ) -> Self

Creates a new Teloid with a deterministic predicate. This represents a complete, computable norm with a hard, boolean activation condition.

Source

pub fn new_uncertain( id: TeloidID, action_identifier: String, uncertain_activation_predicate: UncertainActivationPredicate<D, S, T, ST, SYM, VS, VT>, predicate_parameter: UncertainParameter, modality: TeloidModal, timestamp: u64, specificity: u32, priority: u32, tags: Vec<TeloidTag>, metadata: Option<HashMap<String, String>>, ) -> Self

Creates a new Teloid with an uncertain predicate. This represents a complete, computable norm with a soft, probabilistic activation condition.

Trait Implementations§

Source§

impl<D, S, T, ST, SYM, VS, VT> Clone for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone + Clone, S: Spatial<VS> + Clone + Clone, T: Temporal<VT> + Clone + Clone, ST: SpaceTemporal<VS, VT> + Clone + Clone, SYM: Symbolic + Clone + Clone, VS: Clone + Clone, VT: Clone + Clone,

Source§

fn clone(&self) -> Teloid<D, S, T, ST, SYM, VS, VT>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<D, S, T, ST, SYM, VS, VT> Debug for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone + Debug, S: Spatial<VS> + Clone + Debug, T: Temporal<VT> + Clone + Debug, ST: SpaceTemporal<VS, VT> + Clone + Debug, SYM: Symbolic + Clone + Debug, VS: Clone + Debug, VT: Clone + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D, S, T, ST, SYM, VS, VT> Display for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D, S, T, ST, SYM, VS, VT> Identifiable for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Source§

fn id(&self) -> u64

Source§

impl<D, S, T, ST, SYM, VS, VT> PartialEq for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D, S, T, ST, SYM, VS, VT> Eq for Teloid<D, S, T, ST, SYM, VS, VT>
where D: Datable + Clone, S: Spatial<VS> + Clone, T: Temporal<VT> + Clone, ST: SpaceTemporal<VS, VT> + Clone, SYM: Symbolic + Clone, VS: Clone, VT: Clone,

Auto Trait Implementations§

§

impl<D, S, T, ST, SYM, VS, VT> Freeze for Teloid<D, S, T, ST, SYM, VS, VT>

§

impl<D, S, T, ST, SYM, VS, VT> RefUnwindSafe for Teloid<D, S, T, ST, SYM, VS, VT>

§

impl<D, S, T, ST, SYM, VS, VT> Send for Teloid<D, S, T, ST, SYM, VS, VT>

§

impl<D, S, T, ST, SYM, VS, VT> Sync for Teloid<D, S, T, ST, SYM, VS, VT>

§

impl<D, S, T, ST, SYM, VS, VT> Unpin for Teloid<D, S, T, ST, SYM, VS, VT>

§

impl<D, S, T, ST, SYM, VS, VT> UnwindSafe for Teloid<D, S, T, ST, SYM, VS, VT>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.