Skip to main content

Crate biodivine_lib_io_bma

Crate biodivine_lib_io_bma 

Source
Expand description

Rust library for working with models in BMA format.

Modules§

update_function
Structures and utilities for parsing/evaluating update functions.

Structs§

BmaLayout
A layout describing positions and types of variables and containers. Most fields are optional, as the layout contains mostly complementary information.
BmaLayoutContainer
Layout information about a container.
BmaLayoutVariable
Additional layout information regarding a crate::BmaVariable.
BmaModel
Main structure with all the important parts of a BMA model. We distinguish between three parts tracked in the BMA format:
BmaNetwork
Named model with several BmaVariable objects that are connected through various BmaRelationship objects. The model name can be blank.
BmaRelationship
A relationship of a given RelationshipType between two BmaVariable objects.
BmaVariable
A discrete variable identified by an integer id. Each BmaVariable consists of a name (can be blank), its value range (inclusive), and an BmaUpdateFunction function formula (optional) which describes its evolution in time.
ReporterWrapper
A simple ErrorReporter implementation that defers to an internal ErrorReporter by performing type conversion from E1 into E2 using Into.
VecReporter
A simple ErrorReporter implementation that collects all errors into a vector.

Enums§

BmaLayoutContainerError
BmaLayoutError
Possible validation errors for BmaLayout.
BmaLayoutVariableError
Possible validation errors for BmaLayoutVariable.
BmaModelError
BmaNetworkError
Possible validation errors for BmaNetwork.
BmaRelationshipError
Possible validation errors for BmaRelationship.
BmaVariableError
Possible validation errors for BmaVariable.
RelationshipType
The type of BmaRelationship between two variables in a BmaNetwork.
VariableType

Traits§

ContextualValidation
Contextual validation trait is implemented by objects that can only be validated against a certain context. Usually, this happens when a certain type needs extra information to infer that all of its invariants are satisfied.
ErrorReporter
Error reporter is any object that can be used to collect errors during validation by Validation or ContextualValidation traits.
Validation
Validation trait is implemented by objects that can be validated.