pub struct BddParameterEncoder {
    pub bdd_variables: BddVariableSet,
    /* private fields */
}
Expand description

Handles the translation between parameters of the BooleanNetwork and BddVariables.

There are two types of parameters in the BooleanNetwork - explicit and implicit.

Explicit are the named parameters that are specifically declared in the update functions. Implicit are the anonymous parameters representing the missing update functions.

Every explicit and implicit Parameter maps to a set of BddVariables that represent the values in its function table. The responsibility of this struct is to create all BddVariables and maintain how they map to individual parameters.

Fields

bdd_variables: BddVariableSet

The actual BddVariableSet used to represent the parameters - use this for .dot printing etc.

Implementations

Create a new BddParameterEncoder based on information given in a BooleanNetwork.

Create a new BddParameterEncoder based on information given in a BooleanNetwork and with variables already provided via BddVariableSetBuilder.

A vector of entries in the table of a specific function.

Get teh parameters which correspond to a specific table entry being one.

Find the BddVariable corresponding to the value of the parameter function in the given state assuming the specified arguments.

Make a BddParams set which corresponds to the valuations for which the value of parameter function given arguments is true in the given state.

Find the BddVariable corresponding to the value of the implicit update function of the given variable in the given state.

Make a BddParams set which corresponds to the valuations for which the value of an implicit update function of variable is true in the given state.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.