pub struct RunnableEntity(/* private fields */);
Expand description
A RunnableEntity
is a function that can be executed by the RTE
Implementations§
Source§impl RunnableEntity
impl RunnableEntity
Sourcepub fn swc_internal_behavior(&self) -> Option<SwcInternalBehavior>
pub fn swc_internal_behavior(&self) -> Option<SwcInternalBehavior>
Get the SwcInternalBehavior
that contains the RunnableEntity
Sourcepub fn events(&self) -> Vec<RTEEvent>
pub fn events(&self) -> Vec<RTEEvent>
Iterate over all events that can trigger the RunnableEntity
Sourcepub fn create_data_read_access<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
data_element: &VariableDataPrototype,
context_port: &T,
) -> Result<VariableAccess, AutosarAbstractionError>
pub fn create_data_read_access<T: Into<PortPrototype> + Clone>( &self, name: &str, data_element: &VariableDataPrototype, context_port: &T, ) -> Result<VariableAccess, AutosarAbstractionError>
add implicit read access to a data element of a sender-receiver PortPrototype
this results in Rte_IRead_<port>_<data_element>
being generated
Sourcepub fn data_read_accesses(
&self,
) -> impl Iterator<Item = VariableAccess> + Send + 'static
pub fn data_read_accesses( &self, ) -> impl Iterator<Item = VariableAccess> + Send + 'static
iterate over all data read accesses
Sourcepub fn create_data_write_access<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
data_element: &VariableDataPrototype,
context_port: &T,
) -> Result<VariableAccess, AutosarAbstractionError>
pub fn create_data_write_access<T: Into<PortPrototype> + Clone>( &self, name: &str, data_element: &VariableDataPrototype, context_port: &T, ) -> Result<VariableAccess, AutosarAbstractionError>
add implicit write access to a data element of a sender-receiver PortPrototype
this results in Rte_IWrite_<port>_<data_element>
being generated
Sourcepub fn data_write_accesses(
&self,
) -> impl Iterator<Item = VariableAccess> + Send + 'static
pub fn data_write_accesses( &self, ) -> impl Iterator<Item = VariableAccess> + Send + 'static
iterate over all data write accesses
Sourcepub fn create_data_send_point<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
data_element: &VariableDataPrototype,
context_port: &T,
) -> Result<VariableAccess, AutosarAbstractionError>
pub fn create_data_send_point<T: Into<PortPrototype> + Clone>( &self, name: &str, data_element: &VariableDataPrototype, context_port: &T, ) -> Result<VariableAccess, AutosarAbstractionError>
add a data send point to a data element of a sender-receiver PortPrototype
Sourcepub fn data_send_points(
&self,
) -> impl Iterator<Item = VariableAccess> + Send + 'static
pub fn data_send_points( &self, ) -> impl Iterator<Item = VariableAccess> + Send + 'static
iterate over all data send points
Sourcepub fn create_data_receive_point_by_argument<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
data_element: &VariableDataPrototype,
context_port: &T,
) -> Result<VariableAccess, AutosarAbstractionError>
pub fn create_data_receive_point_by_argument<T: Into<PortPrototype> + Clone>( &self, name: &str, data_element: &VariableDataPrototype, context_port: &T, ) -> Result<VariableAccess, AutosarAbstractionError>
add explicit read access by argument to a data element of a sender-receiver PortPrototype
this results in Rte_Read_<port>_<data_element>(DataType* data)
being generated
Sourcepub fn data_receive_points_by_argument(
&self,
) -> impl Iterator<Item = VariableAccess> + Send + 'static
pub fn data_receive_points_by_argument( &self, ) -> impl Iterator<Item = VariableAccess> + Send + 'static
iterate over all data receive points by argument
Sourcepub fn create_data_receive_point_by_value<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
data_element: &VariableDataPrototype,
context_port: &T,
) -> Result<VariableAccess, AutosarAbstractionError>
pub fn create_data_receive_point_by_value<T: Into<PortPrototype> + Clone>( &self, name: &str, data_element: &VariableDataPrototype, context_port: &T, ) -> Result<VariableAccess, AutosarAbstractionError>
add explicit read access by value to a data element of a sender-receiver PortPrototype
Sourcepub fn data_receive_points_by_value(
&self,
) -> impl Iterator<Item = VariableAccess> + Send + 'static
pub fn data_receive_points_by_value( &self, ) -> impl Iterator<Item = VariableAccess> + Send + 'static
iterate over all data receive points by value
Sourcepub fn create_synchronous_server_call_point(
&self,
name: &str,
client_server_operation: &ClientServerOperation,
context_r_port: &RPortPrototype,
) -> Result<SynchronousServerCallPoint, AutosarAbstractionError>
pub fn create_synchronous_server_call_point( &self, name: &str, client_server_operation: &ClientServerOperation, context_r_port: &RPortPrototype, ) -> Result<SynchronousServerCallPoint, AutosarAbstractionError>
create a synchronous server call point that allows the runnable to call a server operation
Sourcepub fn synchronous_server_call_points(
&self,
) -> impl Iterator<Item = SynchronousServerCallPoint> + Send + 'static
pub fn synchronous_server_call_points( &self, ) -> impl Iterator<Item = SynchronousServerCallPoint> + Send + 'static
iterate over all synchronous server call points
Sourcepub fn create_mode_access_point<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
mode_group: &ModeGroup,
context_port: &T,
) -> Result<ModeAccessPoint, AutosarAbstractionError>
pub fn create_mode_access_point<T: Into<PortPrototype> + Clone>( &self, name: &str, mode_group: &ModeGroup, context_port: &T, ) -> Result<ModeAccessPoint, AutosarAbstractionError>
create a mode access point that allows the runnable to access the current mode of a ModeDeclarationGroup
Sourcepub fn mode_access_points(
&self,
) -> impl Iterator<Item = ModeAccessPoint> + Send + 'static
pub fn mode_access_points( &self, ) -> impl Iterator<Item = ModeAccessPoint> + Send + 'static
iterate over all mode access points
Sourcepub fn create_mode_switch_point<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
mode_group: &ModeGroup,
context_port: &T,
) -> Result<ModeSwitchPoint, AutosarAbstractionError>
pub fn create_mode_switch_point<T: Into<PortPrototype> + Clone>( &self, name: &str, mode_group: &ModeGroup, context_port: &T, ) -> Result<ModeSwitchPoint, AutosarAbstractionError>
create a mode switch point that allows the runnable to switch modes in a ModeDeclarationGroup
Sourcepub fn mode_switch_points(
&self,
) -> impl Iterator<Item = ModeSwitchPoint> + Send + 'static
pub fn mode_switch_points( &self, ) -> impl Iterator<Item = ModeSwitchPoint> + Send + 'static
iterate over all mode switch points
Trait Implementations§
Source§impl AbstractionElement for RunnableEntity
impl AbstractionElement for RunnableEntity
Source§impl Clone for RunnableEntity
impl Clone for RunnableEntity
Source§fn clone(&self) -> RunnableEntity
fn clone(&self) -> RunnableEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RunnableEntity
impl Debug for RunnableEntity
Source§impl From<RunnableEntity> for Element
impl From<RunnableEntity> for Element
Source§fn from(val: RunnableEntity) -> Self
fn from(val: RunnableEntity) -> Self
Source§impl Hash for RunnableEntity
impl Hash for RunnableEntity
Source§impl PartialEq for RunnableEntity
impl PartialEq for RunnableEntity
Source§impl TryFrom<Element> for RunnableEntity
impl TryFrom<Element> for RunnableEntity
impl Eq for RunnableEntity
impl StructuralPartialEq for RunnableEntity
Auto Trait Implementations§
impl Freeze for RunnableEntity
impl !RefUnwindSafe for RunnableEntity
impl Send for RunnableEntity
impl Sync for RunnableEntity
impl Unpin for RunnableEntity
impl !UnwindSafe for RunnableEntity
Blanket Implementations§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.