pub struct ReactionSystem {
pub reference: Option<Reference>,
pub species: IndexMap<String, Species>,
pub parameters: IndexMap<String, Parameter>,
pub reactions: Vec<Reaction>,
pub constraint_equations: Option<Vec<Equation>>,
pub discrete_events: Option<Vec<DiscreteEvent>>,
pub continuous_events: Option<Vec<ContinuousEvent>>,
pub subsystems: Option<IndexMap<String, Value>>,
pub tolerance: Option<Tolerance>,
pub tests: Option<Vec<ModelTest>>,
pub analyses: Option<Vec<ModelAnalysis>>,
}Expand description
Reaction network component
Fields§
§reference: Option<Reference>Academic citation or data source reference
species: IndexMap<String, Species>Chemical species, keyed by species name
parameters: IndexMap<String, Parameter>Named parameters (rate constants, temperature, photolysis rates, etc.)
reactions: Vec<Reaction>Chemical reactions
constraint_equations: Option<Vec<Equation>>Additional algebraic or ODE constraints
discrete_events: Option<Vec<DiscreteEvent>>Discrete events
continuous_events: Option<Vec<ContinuousEvent>>Continuous events
subsystems: Option<IndexMap<String, Value>>Named child reaction systems (subsystems), keyed by unique identifier
tolerance: Option<Tolerance>System-level default numerical tolerance for inline tests (schema
ReactionSystem.tolerance, the Model::tolerance counterpart);
previously unmodelled here and so dropped on round trip — as were
tests and analyses below.
tests: Option<Vec<ModelTest>>Inline validation tests that exercise this reaction system in
isolation (schema ReactionSystem.tests, same Test entries as
Model::tests).
analyses: Option<Vec<ModelAnalysis>>Inline illustrative analyses of how to run this reaction system
(schema ReactionSystem.analyses, same Analysis entries as
Model::analyses).
Trait Implementations§
Source§impl Clone for ReactionSystem
impl Clone for ReactionSystem
Source§impl Debug for ReactionSystem
impl Debug for ReactionSystem
Source§impl Default for ReactionSystem
impl Default for ReactionSystem
Source§impl<'de> Deserialize<'de> for ReactionSystem
impl<'de> Deserialize<'de> for ReactionSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ReactionSystem
impl Display for ReactionSystem
Source§impl ExpressionGraphInput for ReactionSystem
impl ExpressionGraphInput for ReactionSystem
Source§fn build_expression_graph(&self) -> ExpressionGraph
fn build_expression_graph(&self) -> ExpressionGraph
Source§fn build_expression_graph_with_options(
&self,
_options: &ExpressionGraphOptions,
) -> ExpressionGraph
fn build_expression_graph_with_options( &self, _options: &ExpressionGraphOptions, ) -> ExpressionGraph
options. The default implementation ignores
them: only EsmFile carries a coupling list for merge_coupled to
fold in.Auto Trait Implementations§
impl Freeze for ReactionSystem
impl RefUnwindSafe for ReactionSystem
impl Send for ReactionSystem
impl Sync for ReactionSystem
impl Unpin for ReactionSystem
impl UnsafeUnpin for ReactionSystem
impl UnwindSafe for ReactionSystem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Context for T
impl<T> Context for T
fn vector_from_element<V>(&self, len: usize, value: <V as VectorCommon>::T) -> Vwhere
V: Vector<C = Self>,
fn vector_from_vec<V>(&self, vec: Vec<<V as VectorCommon>::T>) -> Vwhere
V: Vector<C = Self>,
fn vector_zeros<V>(&self, len: usize) -> Vwhere
V: Vector<C = Self>,
fn dense_mat_zeros<V>(
&self,
rows: usize,
cols: usize,
) -> <V as DefaultDenseMatrix>::Mwhere
V: Vector<C = Self> + DefaultDenseMatrix,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.