Trait gmt_dos_clients_fem::fem_io::GetOut

source ·
pub trait GetOut: SetRange + Debug + Send + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn get_out(&self, fem: &FEM) -> Option<DMatrix<f64>>;
    fn trim_out(&self, fem: &FEM, matrix: &DMatrix<f64>) -> Option<DMatrix<f64>>;
    fn fem_type(&self) -> String;
    fn range(&self) -> Range<usize>;
    fn position(&self, outputs: &Vec<Option<Outputs>>) -> Option<usize>;
}
Expand description

Interface between the FEM Outputs and the DOS actors outputs

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

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

Returns the outputs to modes matrix for a given output

source

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

Trims the outputs to modes matrix to the given output

source

fn fem_type(&self) -> String

Returns the actors type

source

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

Sets the output range of indices

source

fn position(&self, outputs: &Vec<Option<Outputs>>) -> Option<usize>

Returns the output position in the FEM Outputs vector

Trait Implementations§

§

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

§

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 GetOut>

§

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 GetOut>

§

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> GetOut for SplitFem<U>
where Vec<Option<Outputs>>: FemIo<U>,