pub trait GetIn: SetRange + Debug + Send + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn get_in(&self, fem: &FEM) -> Option<DMatrix<f64>>;
    fn trim_in(&self, fem: &FEM, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>;
    fn fem_type(&self) -> String;
    fn range(&self) -> Range<usize>;
    fn len(&self) -> usize;
    fn position(&self, fem: &Vec<Option<Inputs>>) -> Option<usize>;
}
Expand description

Interface between the FEM Inputs and the DOS actors inputs

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

fn get_in(&self, fem: &FEM) -> Option<DMatrix<f64>>

Returns the inputs to modes matrix for a given input

source

fn trim_in(&self, fem: &FEM, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>

Trims the inputs to modes matrix to the given input

source

fn fem_type(&self) -> String

Returns the actors type

source

fn range(&self) -> Range<usize>

Gets the input range of indices

source

fn len(&self) -> usize

Gets the input length

source

fn position(&self, fem: &Vec<Option<Inputs>>) -> Option<usize>

Returns the input position in the FEM Inputs vector

Trait Implementations§

§

impl<'de> Deserialize<'de> for Box<dyn GetIn>

§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for Box<dyn GetIn>

§

fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<String> for Box<dyn GetIn>

§

type Error = FemError

The type returned in the event of a conversion error.
§

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.

Implementors§

source§

impl<U: 'static + UniqueIdentifier + Send + Sync> GetIn for SplitFem<U>
where Vec<Option<Inputs>>: FemIo<U>,