pub struct SystemMapping(/* private fields */);
Expand description
A SystemMapping
contains mappings in the System
it contains mappings between SWCs and ECUs, as well as between ports and signals
Implementations§
Source§impl SystemMapping
impl SystemMapping
Sourcepub fn system(&self) -> Result<System, AutosarAbstractionError>
pub fn system(&self) -> Result<System, AutosarAbstractionError>
get the system that contains this mapping
Sourcepub fn map_swc_to_ecu(
&self,
name: &str,
component_prototype: &SwComponentPrototype,
ecu: &EcuInstance,
) -> Result<SwcToEcuMapping, AutosarAbstractionError>
pub fn map_swc_to_ecu( &self, name: &str, component_prototype: &SwComponentPrototype, ecu: &EcuInstance, ) -> Result<SwcToEcuMapping, AutosarAbstractionError>
create a new mapping between a SWC and an ECU
Sourcepub fn map_sender_receiver_to_signal<T: Into<PortPrototype> + Clone>(
&self,
signal: &SystemSignal,
data_element: &VariableDataPrototype,
port_prototype: &T,
context_components: &[&SwComponentPrototype],
root_composition_prototype: Option<&RootSwCompositionPrototype>,
) -> Result<(), AutosarAbstractionError>
pub fn map_sender_receiver_to_signal<T: Into<PortPrototype> + Clone>( &self, signal: &SystemSignal, data_element: &VariableDataPrototype, port_prototype: &T, context_components: &[&SwComponentPrototype], root_composition_prototype: Option<&RootSwCompositionPrototype>, ) -> Result<(), AutosarAbstractionError>
create a new mapping between a sender/receiver port and a signal
signal
: the system signal that the port is mapped to
data_element
: the data element that is mapped to the signal
port_prototype
: the port prototype that contains the data element
context_components
: a list of component prototypes from the root up to the component that directly contains the port.
This list may be empty, or it could only contain the final application component prototype containing the port.
root_composition_prototype
: the root composition prototype that contains the swc_prototype
.
Rarely required, but may be needed if multiple root compositions use the same composition/component hierarchy.
Trait Implementations§
Source§impl AbstractionElement for SystemMapping
impl AbstractionElement for SystemMapping
Source§impl Clone for SystemMapping
impl Clone for SystemMapping
Source§fn clone(&self) -> SystemMapping
fn clone(&self) -> SystemMapping
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SystemMapping
impl Debug for SystemMapping
Source§impl From<SystemMapping> for Element
impl From<SystemMapping> for Element
Source§fn from(val: SystemMapping) -> Self
fn from(val: SystemMapping) -> Self
Source§impl Hash for SystemMapping
impl Hash for SystemMapping
Source§impl PartialEq for SystemMapping
impl PartialEq for SystemMapping
Source§impl TryFrom<Element> for SystemMapping
impl TryFrom<Element> for SystemMapping
impl Eq for SystemMapping
impl StructuralPartialEq for SystemMapping
Auto Trait Implementations§
impl Freeze for SystemMapping
impl !RefUnwindSafe for SystemMapping
impl Send for SystemMapping
impl Sync for SystemMapping
impl Unpin for SystemMapping
impl !UnwindSafe for SystemMapping
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.