mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-19 09:29:36 +01:00
Compare commits
2 Commits
c34e57f3e0
...
ae1ca8bacb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae1ca8bacb | ||
|
|
f1a797fb38 |
@ -133,9 +133,13 @@ impl std::fmt::Debug for Formula {
|
|||||||
/// Note that the parser can be utilised by an [ADF][`crate::adf::Adf`] to initialise it with minimal overhead.
|
/// Note that the parser can be utilised by an [ADF][`crate::adf::Adf`] to initialise it with minimal overhead.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct AdfParser {
|
pub struct AdfParser {
|
||||||
|
/// A name for each statement (identified by index in vector)
|
||||||
pub namelist: Arc<RwLock<Vec<String>>>,
|
pub namelist: Arc<RwLock<Vec<String>>>,
|
||||||
|
/// Inverse mapping from name to index of statement in vector above
|
||||||
pub dict: Arc<RwLock<HashMap<String, usize>>>,
|
pub dict: Arc<RwLock<HashMap<String, usize>>>,
|
||||||
|
/// The formula (acceptance condition) for each statement identified by its index
|
||||||
pub formulae: RefCell<Vec<Formula>>,
|
pub formulae: RefCell<Vec<Formula>>,
|
||||||
|
/// The formula for each statement identified by its index
|
||||||
pub formulaname: RefCell<Vec<String>>,
|
pub formulaname: RefCell<Vec<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ use actix_web::rt::time::timeout;
|
|||||||
use actix_web::{delete, get, post, put, web, HttpMessage, HttpRequest, HttpResponse, Responder};
|
use actix_web::{delete, get, post, put, web, HttpMessage, HttpRequest, HttpResponse, Responder};
|
||||||
use adf_bdd::datatypes::adf::VarContainer;
|
use adf_bdd::datatypes::adf::VarContainer;
|
||||||
use adf_bdd::datatypes::{BddNode, Term, Var};
|
use adf_bdd::datatypes::{BddNode, Term, Var};
|
||||||
use futures_util::{FutureExt, TryFutureExt, TryStreamExt};
|
use futures_util::{FutureExt, TryStreamExt};
|
||||||
use mongodb::bson::doc;
|
use mongodb::bson::doc;
|
||||||
use mongodb::bson::{to_bson, Bson};
|
use mongodb::bson::{to_bson, Bson};
|
||||||
use mongodb::results::DeleteResult;
|
use mongodb::results::DeleteResult;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user