pub struct ISignal(/* private fields */);
Expand description
Signal of the Interaction Layer
Implementations§
Source§impl ISignal
impl ISignal
Sourcepub fn set_datatype(
&self,
datatype: &SwBaseType,
) -> Result<(), AutosarAbstractionError>
pub fn set_datatype( &self, datatype: &SwBaseType, ) -> Result<(), AutosarAbstractionError>
set the data type for this signal
Sourcepub fn datatype(&self) -> Option<SwBaseType>
pub fn datatype(&self) -> Option<SwBaseType>
get the data type of this signal
Sourcepub fn set_length(&self, bit_length: u64) -> Result<(), AutosarAbstractionError>
pub fn set_length(&self, bit_length: u64) -> Result<(), AutosarAbstractionError>
set the length of this signal in bits
Sourcepub fn set_init_value<T: Into<ValueSpecification>>(
&self,
value_spec: Option<T>,
) -> Result<(), AutosarAbstractionError>
pub fn set_init_value<T: Into<ValueSpecification>>( &self, value_spec: Option<T>, ) -> Result<(), AutosarAbstractionError>
set the init value for this signal
only NumericalValueSpecification
, TextValueSpecification
or ArrayValueSpecification
are permitted here
Sourcepub fn init_value(&self) -> Option<ValueSpecification>
pub fn init_value(&self) -> Option<ValueSpecification>
get the init value for this signal
Sourcepub fn set_system_signal(
&self,
syssignal: &SystemSignal,
) -> Result<(), AutosarAbstractionError>
pub fn set_system_signal( &self, syssignal: &SystemSignal, ) -> Result<(), AutosarAbstractionError>
set the system signal that corresponds to this signal
Sourcepub fn system_signal(&self) -> Option<SystemSignal>
pub fn system_signal(&self) -> Option<SystemSignal>
get the system signal that corresponds to this isignal
Sourcepub fn mappings(&self) -> Vec<ISignalToIPduMapping>
pub fn mappings(&self) -> Vec<ISignalToIPduMapping>
an iterator over all ISignalToIPduMapping
for this signal
Usually a signal should only be mapped to a single PDU, so this iterator is expected to return either zero or one item in ordinary cases.
Sourcepub fn signal_group(&self) -> Option<ISignalGroup>
pub fn signal_group(&self) -> Option<ISignalGroup>
get the signal group that contains this signal, if any
Sourcepub fn signal_triggerings(&self) -> Vec<ISignalTriggering>
pub fn signal_triggerings(&self) -> Vec<ISignalTriggering>
list all ISignalTriggering
s that trigger this signal
Sourcepub fn add_data_transformation(
&self,
data_transformation: &DataTransformation,
) -> Result<(), AutosarAbstractionError>
pub fn add_data_transformation( &self, data_transformation: &DataTransformation, ) -> Result<(), AutosarAbstractionError>
add a data transformation to this signal
Sourcepub fn data_transformations(
&self,
) -> impl Iterator<Item = DataTransformation> + Send + 'static
pub fn data_transformations( &self, ) -> impl Iterator<Item = DataTransformation> + Send + 'static
get all data transformations that are applied to this signal
Sourcepub fn create_e2e_transformation_isignal_props(
&self,
transformer: &TransformationTechnology,
) -> Result<EndToEndTransformationISignalProps, AutosarAbstractionError>
pub fn create_e2e_transformation_isignal_props( &self, transformer: &TransformationTechnology, ) -> Result<EndToEndTransformationISignalProps, AutosarAbstractionError>
create E2E transformation properties for this signal
Sourcepub fn create_someip_transformation_isignal_props(
&self,
transformer: &TransformationTechnology,
) -> Result<SomeIpTransformationISignalProps, AutosarAbstractionError>
pub fn create_someip_transformation_isignal_props( &self, transformer: &TransformationTechnology, ) -> Result<SomeIpTransformationISignalProps, AutosarAbstractionError>
create SomeIp transformation properties for this signal
Sourcepub fn transformation_isignal_props(
&self,
) -> impl Iterator<Item = TransformationISignalProps> + Send + 'static
pub fn transformation_isignal_props( &self, ) -> impl Iterator<Item = TransformationISignalProps> + Send + 'static
get all transformation properties that are applied to this signal
Trait Implementations§
Source§impl AbstractionElement for ISignal
impl AbstractionElement for ISignal
impl Eq for ISignal
impl StructuralPartialEq for ISignal
Auto Trait Implementations§
impl Freeze for ISignal
impl !RefUnwindSafe for ISignal
impl Send for ISignal
impl Sync for ISignal
impl Unpin for ISignal
impl !UnwindSafe for ISignal
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.