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>
impl<D, S, T, ST, SYM, VS, VT> Teloid<D, S, T, ST, SYM, VS, VT>
Sourcepub fn id(&self) -> TeloidID
pub fn id(&self) -> TeloidID
Returns the unique identifier of the teloid.
§Returns
A TeloidID representing the teloid’s unique identifier.
Sourcepub fn action_identifier(&self) -> &str
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.
Sourcepub fn activation_predicate(
&self,
) -> Option<fn(&Context<D, S, T, ST, SYM, VS, VT>, &ProposedAction) -> bool>
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.
Sourcepub fn uncertain_activation_predicate(
&self,
) -> Option<UncertainActivationPredicate<D, S, T, ST, SYM, VS, VT>>
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.
Sourcepub fn uncertain_parameter(&self) -> Option<UncertainParameter>
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.
Sourcepub fn modality(&self) -> TeloidModal
pub fn modality(&self) -> TeloidModal
Returns the modality of the teloid.
§Returns
A TeloidModal enum variant representing the teloid’s modality.
Sourcepub fn specificity(&self) -> u32
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.
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§impl<D, S, T, ST, SYM, VS, VT> Teloid<D, S, T, ST, SYM, VS, VT>
impl<D, S, T, ST, SYM, VS, VT> Teloid<D, S, T, ST, SYM, VS, VT>
Sourcepub 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
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.
Sourcepub 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
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.