pub struct SwcInternalBehavior(/* private fields */);
Expand description
The SwcInternalBehavior
of a software component type describes the
details that are needed to generate the RTE.
Implementations§
Source§impl SwcInternalBehavior
impl SwcInternalBehavior
Sourcepub fn sw_component_type(&self) -> Option<SwComponentType>
pub fn sw_component_type(&self) -> Option<SwComponentType>
Get the software component type that contains the SwcInternalBehavior
Sourcepub fn create_runnable_entity(
&self,
name: &str,
) -> Result<RunnableEntity, AutosarAbstractionError>
pub fn create_runnable_entity( &self, name: &str, ) -> Result<RunnableEntity, AutosarAbstractionError>
Create a new RunnableEntity
in the SwcInternalBehavior
Sourcepub fn runnable_entities(
&self,
) -> impl Iterator<Item = RunnableEntity> + Send + 'static
pub fn runnable_entities( &self, ) -> impl Iterator<Item = RunnableEntity> + Send + 'static
Get an iterator over all RunnableEntities
in the SwcInternalBehavior
Sourcepub fn add_data_type_mapping_set(
&self,
data_type_mapping_set: &DataTypeMappingSet,
) -> Result<(), AutosarAbstractionError>
pub fn add_data_type_mapping_set( &self, data_type_mapping_set: &DataTypeMappingSet, ) -> Result<(), AutosarAbstractionError>
Add a reference to a DataTypeMappingSet
to the SwcInternalBehavior
Sourcepub fn data_type_mapping_sets(
&self,
) -> impl Iterator<Item = DataTypeMappingSet> + Send + 'static
pub fn data_type_mapping_sets( &self, ) -> impl Iterator<Item = DataTypeMappingSet> + Send + 'static
create an iterator over all DataTypeMappingSet
references in the SwcInternalBehavior
Sourcepub fn create_init_event(
&self,
name: &str,
runnable: &RunnableEntity,
) -> Result<InitEvent, AutosarAbstractionError>
pub fn create_init_event( &self, name: &str, runnable: &RunnableEntity, ) -> Result<InitEvent, AutosarAbstractionError>
Create a new InitEvent
in the SwcInternalBehavior
Sourcepub fn create_operation_invoked_event(
&self,
name: &str,
runnable: &RunnableEntity,
client_server_operation: &ClientServerOperation,
context_p_port: &PPortPrototype,
) -> Result<OperationInvokedEvent, AutosarAbstractionError>
pub fn create_operation_invoked_event( &self, name: &str, runnable: &RunnableEntity, client_server_operation: &ClientServerOperation, context_p_port: &PPortPrototype, ) -> Result<OperationInvokedEvent, AutosarAbstractionError>
Create a new OperationInvokedEvent
in the SwcInternalBehavior
when a server operation is invoked
Sourcepub fn create_timing_event(
&self,
name: &str,
runnable: &RunnableEntity,
period: f64,
) -> Result<TimingEvent, AutosarAbstractionError>
pub fn create_timing_event( &self, name: &str, runnable: &RunnableEntity, period: f64, ) -> Result<TimingEvent, AutosarAbstractionError>
Create a timing event that triggers a runnable in the SwcInternalBehavior
based on a timer
Sourcepub fn create_background_event(
&self,
name: &str,
runnable: &RunnableEntity,
) -> Result<BackgroundEvent, AutosarAbstractionError>
pub fn create_background_event( &self, name: &str, runnable: &RunnableEntity, ) -> Result<BackgroundEvent, AutosarAbstractionError>
create a background event that triggers a runnable in the SwcInternalBehavior
for background processing
Sourcepub fn create_data_received_event<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
runnable: &RunnableEntity,
variable_data_prototype: &VariableDataPrototype,
context_port: &T,
) -> Result<DataReceivedEvent, AutosarAbstractionError>
pub fn create_data_received_event<T: Into<PortPrototype> + Clone>( &self, name: &str, runnable: &RunnableEntity, variable_data_prototype: &VariableDataPrototype, context_port: &T, ) -> Result<DataReceivedEvent, AutosarAbstractionError>
create a data received event that triggers a runnable in the SwcInternalBehavior
when data is received
Sourcepub fn create_os_task_execution_event(
&self,
name: &str,
runnable: &RunnableEntity,
) -> Result<OsTaskExecutionEvent, AutosarAbstractionError>
pub fn create_os_task_execution_event( &self, name: &str, runnable: &RunnableEntity, ) -> Result<OsTaskExecutionEvent, AutosarAbstractionError>
create an os task execution event that triggers a runnable in the SwcInternalBehavior
every time the task is executed
Sourcepub fn create_mode_switch_event<T: Into<PortPrototype> + Clone>(
&self,
name: &str,
runnable: &RunnableEntity,
activation: ModeActivationKind,
context_port: &T,
mode_declaration: &ModeDeclaration,
second_mode_declaration: Option<&ModeDeclaration>,
) -> Result<SwcModeSwitchEvent, AutosarAbstractionError>
pub fn create_mode_switch_event<T: Into<PortPrototype> + Clone>( &self, name: &str, runnable: &RunnableEntity, activation: ModeActivationKind, context_port: &T, mode_declaration: &ModeDeclaration, second_mode_declaration: Option<&ModeDeclaration>, ) -> Result<SwcModeSwitchEvent, AutosarAbstractionError>
create a mode switch event that triggers a runnable in the SwcInternalBehavior
when the mode is switched
Trait Implementations§
Source§impl Clone for SwcInternalBehavior
impl Clone for SwcInternalBehavior
Source§fn clone(&self) -> SwcInternalBehavior
fn clone(&self) -> SwcInternalBehavior
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SwcInternalBehavior
impl Debug for SwcInternalBehavior
Source§impl From<SwcInternalBehavior> for Element
impl From<SwcInternalBehavior> for Element
Source§fn from(val: SwcInternalBehavior) -> Self
fn from(val: SwcInternalBehavior) -> Self
Source§impl Hash for SwcInternalBehavior
impl Hash for SwcInternalBehavior
Source§impl PartialEq for SwcInternalBehavior
impl PartialEq for SwcInternalBehavior
Source§impl TryFrom<Element> for SwcInternalBehavior
impl TryFrom<Element> for SwcInternalBehavior
impl Eq for SwcInternalBehavior
impl StructuralPartialEq for SwcInternalBehavior
Auto Trait Implementations§
impl Freeze for SwcInternalBehavior
impl !RefUnwindSafe for SwcInternalBehavior
impl Send for SwcInternalBehavior
impl Sync for SwcInternalBehavior
impl Unpin for SwcInternalBehavior
impl !UnwindSafe for SwcInternalBehavior
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.