DiaDes
0.1
DIAgnosis of Discrete-Event System
|
Public Types | |
typedef CubeNode * | Pointer |
Public Member Functions | |
CubeNode (FormulaFactory &factory) | |
~CubeNode () | |
void | destroy () |
void | newCubeNode (unsigned i) |
void | setAssignment (const Formula &assignment) |
void | setValue (const Value &value) |
const Formula & | getAssignment () |
const Value & | getValue () |
Pointer | chain (const vector< int > &cube, unsigned lower, unsigned upper) |
Pointer | child (unsigned i) |
bool | validChild (unsigned i) const |
void | print (unsigned level) const |
Private Attributes | |
vector< Pointer > | _children |
FormulaVector | _assignment |
ValueVector | _value |
FormulaFactory & | _factory |
Private class of FormulaFactory that encodes a container that associates a cube to the corresponding encoded assignment of a Variable in the factory. Used mostly by extractAssignments
Definition at line 519 of file Formula.hh.
Definition at line 521 of file Formula.hh.
|
inline |
constructor
Definition at line 549 of file Formula.hh.
|
inline |
destructor
Definition at line 556 of file Formula.hh.
Pointer Diades::Sdmdl::FormulaFactory::CubeNode::chain | ( | const vector< int > & | cube, |
unsigned | lower, | ||
unsigned | upper | ||
) |
cube | a cube (normal meaning) |
lower | the lower index in the cube |
upper | the upper index in the cube (index after the last element to deal with |
|
inline |
i | index of the child |
Definition at line 641 of file Formula.hh.
void Diades::Sdmdl::FormulaFactory::CubeNode::destroy | ( | ) |
Destrution method
|
inline |
Definition at line 601 of file Formula.hh.
References Diades::Sdmdl::FormulaFactory::nullFormula().
|
inline |
Definition at line 614 of file Formula.hh.
References Diades::Sdmdl::FormulaFactory::nullValue().
void Diades::Sdmdl::FormulaFactory::CubeNode::newCubeNode | ( | unsigned | i | ) |
Node creation
i | the child number (0,1 or 2) |
void Diades::Sdmdl::FormulaFactory::CubeNode::print | ( | unsigned | level | ) | const |
Print the current cuddNode (debug only)
level | indentation level |
|
inline |
Set assignment of a leaf node
assignment | the assignment Formula |
Definition at line 580 of file Formula.hh.
|
inline |
Set value of a leaf node
Definition at line 590 of file Formula.hh.
|
inline |
i | index of the child |
Definition at line 654 of file Formula.hh.
|
private |
_assignment
the assignment associated to the node. Empty if not a leaf node.
Definition at line 531 of file Formula.hh.
|
private |
_children
the set of children (child 0 child 1 child 2 if they exist)
Definition at line 527 of file Formula.hh.
|
private |
_factory
the FormulaFactory that owns this CubeNode
Definition at line 541 of file Formula.hh.
|
private |
_assignment
the Value associated to the node. Empty if not a leaf node.
Definition at line 536 of file Formula.hh.