Package com.github.javabdd
Class BDDPairing
java.lang.Object
com.github.javabdd.BDDPairing
Encodes a table of variable pairs. This is used for replacing variables in a BDD.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidreset()Resets this table of pairs by setting all substitutions to their default values (that is, no change).voidset(int[] oldvar, int[] newvar) Like set(), but with a whole list of pairs.voidLike set(), but with a whole list of pairs.abstract voidset(int oldvar, int newvar) Adds the pair (oldvar, newvar) to this table of pairs.abstract voidAdds the pair (oldvar, newvar) to this table of pairs.voidLike set(), but with a whole list of pairs.voidDefines each variable in the finite domain block p1 to be paired with the corresponding variable in p2.
-
Constructor Details
-
BDDPairing
public BDDPairing()
-
-
Method Details
-
set
public abstract void set(int oldvar, int newvar) Adds the pair (oldvar, newvar) to this table of pairs. This results in oldvar being substituted with newvar in a call to BDD.replace().Compare to bdd_setpair.
- Parameters:
oldvar- old variablenewvar- new variable
-
set
public void set(int[] oldvar, int[] newvar) Like set(), but with a whole list of pairs.Compare to bdd_setpairs.
- Parameters:
oldvar- old variablesnewvar- new variables
-
set
Adds the pair (oldvar, newvar) to this table of pairs. This results in oldvar being substituted with newvar in a call to bdd.replace(). The variable oldvar is substituted with the BDD newvar. The possibility to substitute with any BDD as newvar is utilized in BDD.compose(), whereas only the topmost variable in the BDD is used in BDD.replace().Compare to bdd_setbddpair.
- Parameters:
oldvar- old variablenewvar- new BDD
-
set
Like set(), but with a whole list of pairs.Compare to bdd_setbddpairs.
- Parameters:
oldvar- old variablesnewvar- new BDDs
-
set
Defines each variable in the finite domain block p1 to be paired with the corresponding variable in p2.Compare to fdd_setpair.
- Parameters:
p1- first finite domain blockp2- second finite domain block
-
set
Like set(), but with a whole list of pairs.Compare to fdd_setpairs.
- Parameters:
p1- first finite domain blocksp2- second finite domain blocks
-
reset
public abstract void reset()Resets this table of pairs by setting all substitutions to their default values (that is, no change).Compare to bdd_resetpair.
-