pub struct Store { /* private fields */ }Expand description
Arena of hash-consed formula nodes.
Implementations§
Source§impl Store
impl Store
Source§impl Store
impl Store
Sourcepub fn knows_whether(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn knows_whether(&mut self, i: AgentId, f: FormulaId) -> FormulaId
Kw[i]φ — agent knows whether φ is true: K[i]φ | K[i]!φ.
Sourcepub fn believes_whether(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn believes_whether(&mut self, i: AgentId, f: FormulaId) -> FormulaId
Bw[i]φ — agent has a belief either way: B[i]φ | B[i]!φ.
Sourcepub fn ignorant(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn ignorant(&mut self, i: AgentId, f: FormulaId) -> FormulaId
?[i]φ — agent is ignorant whether: !K[i]φ & !K[i]!φ.
Sourcepub fn undecided(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn undecided(&mut self, i: AgentId, f: FormulaId) -> FormulaId
¿[i]φ — agent suspends judgement: !B[i]φ & !B[i]!φ.
Sourcepub fn considers_possible(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn considers_possible(&mut self, i: AgentId, f: FormulaId) -> FormulaId
K'[i]φ — agent considers φ possible: !K[i]!φ.
Sourcepub fn not_ruled_out(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn not_ruled_out(&mut self, i: AgentId, f: FormulaId) -> FormulaId
B'[i]φ — agent has not ruled out φ: !B[i]!φ.
Sourcepub fn safe_dual(&mut self, i: AgentId, f: FormulaId) -> FormulaId
pub fn safe_dual(&mut self, i: AgentId, f: FormulaId) -> FormulaId
S'[i]φ — φ is safe for agent to act on: !□[i]!φ.
Sourcepub fn knows_all(&mut self, agents: &[AgentId], f: FormulaId) -> FormulaId
pub fn knows_all(&mut self, agents: &[AgentId], f: FormulaId) -> FormulaId
K[a,b,…]φ — all agents in the list know φ.
Sourcepub fn believes_all(&mut self, agents: &[AgentId], f: FormulaId) -> FormulaId
pub fn believes_all(&mut self, agents: &[AgentId], f: FormulaId) -> FormulaId
B[a,b,…]φ — all agents in the list believe φ.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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
Mutably borrows from an owned value. Read more