Class DependencyGraph<L,AP>
java.lang.Object
net.automatalib.modelchecker.m3c.formula.DependencyGraph<L,AP>
- Type Parameters:
L- edge label typeAP- atomic proposition type
A dependency graph is used to represent a hierarchical equational system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAST()Returns the abstract syntax tree of the input formula after it has been transformed into negation normal form.getBlock(int index) Returns the equational block for the given index.Returns all equational blocks of the equational system.List<FormulaNode<L,AP>> Returns the list of all subformulas.intReturns the number of variables which is equal to the number of subformulas.boolean[]toBoolArray(BitSet satisfiedVars) Returns a boolean array that is sized according togetNumVariables()such that every index provided insatisfiedVarsis set totrue.
-
Constructor Details
-
DependencyGraph
-
-
Method Details
-
getBlock
Returns the equational block for the given index.- Parameters:
index- index of the equational block to return- Returns:
- the equational block at the given
index.
-
getNumVariables
public int getNumVariables()Returns the number of variables which is equal to the number of subformulas.- Returns:
- the number of variables.
-
getFormulaNodes
Returns the list of all subformulas.- Returns:
- the list of all subformulas.
-
getBlocks
Returns all equational blocks of the equational system.- Returns:
- all equational blocks of the equational system.
-
getAST
Returns the abstract syntax tree of the input formula after it has been transformed into negation normal form.- Returns:
- the abstract syntax tree in negation normal form.
-
toBoolArray
Returns a boolean array that is sized according togetNumVariables()such that every index provided insatisfiedVarsis set totrue.- Parameters:
satisfiedVars- the set of indices that should be set totrue- Returns:
- a boolean array that is sized according to
getNumVariables()such that every index provided insatisfiedVarsis set totrue.
-