pub struct DefaultEdgeParams {
network: BooleanNetwork,
encoder: BddParameterEncoder,
unit_set: BddParams,
empty_set: BddParams,
}
Expand description
Default implementation for edge parameters which adheres to the monotonicity and observability constraints of the network, but poses no other restrictions.
Fields
network: BooleanNetwork
encoder: BddParameterEncoder
unit_set: BddParams
The parameter valuations which satisfy the static regulation constraints.
empty_set: BddParams
Implementations
sourceimpl DefaultEdgeParams
impl DefaultEdgeParams
sourcepub fn new(network: BooleanNetwork) -> Result<DefaultEdgeParams, String>
pub fn new(network: BooleanNetwork) -> Result<DefaultEdgeParams, String>
New default edge parametrisation for the given network. Warning: computes the unit set, which can be expensive.
pub fn new_with_custom_encoder(
network: BooleanNetwork,
encoder: BddParameterEncoder
) -> Result<DefaultEdgeParams, String>
Trait Implementations
sourceimpl AsyncGraphEdgeParams for DefaultEdgeParams
impl AsyncGraphEdgeParams for DefaultEdgeParams
sourcefn edge_params(&self, state: IdState, variable: VariableId) -> BddParams
fn edge_params(&self, state: IdState, variable: VariableId) -> BddParams
Compute the parameter set which enables the value of variable
to be flipped
in the given state
.
Note that this set is not a subset of the unit_set
! It is really just the flip condition.
type ParamSet = BddParams
fn network(&self) -> &BooleanNetwork
sourcefn empty_params(&self) -> &Self::ParamSet
fn empty_params(&self) -> &Self::ParamSet
Create a new empty set of parameters.
sourcefn unit_params(&self) -> &Self::ParamSet
fn unit_params(&self) -> &Self::ParamSet
Create a new full set of parameters.
sourcefn make_witness(&self, params: &Self::ParamSet) -> BooleanNetwork
fn make_witness(&self, params: &Self::ParamSet) -> BooleanNetwork
Construct a witness network for the given set of parameters. Read more
Auto Trait Implementations
impl RefUnwindSafe for DefaultEdgeParams
impl Send for DefaultEdgeParams
impl Sync for DefaultEdgeParams
impl Unpin for DefaultEdgeParams
impl UnwindSafe for DefaultEdgeParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more