Package com.github.javabdd
Class TryVarOrder
java.lang.Object
com.github.javabdd.TryVarOrder
Try var order.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Constructor Summary
ConstructorsConstructorDescriptionTryVarOrder(int nodeTableSize, int cacheSize, int maxIncrease, long bestTime, long delayTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Clean up the temporary files.longvoidinit(BDD b1, BDD b2, BDD dom, BDDFactory.BDDOp op) Initialize for a new trial.longTry out a variable order.voidwriteBDDConfig(BDDFactory bdd, String fileName) Write the BDD configuration to a file.
-
Constructor Details
-
TryVarOrder
public TryVarOrder(int nodeTableSize, int cacheSize, int maxIncrease, long bestTime, long delayTime)
-
-
Method Details
-
init
Initialize for a new trial. Takes the given input BDDs and saves them out to temporary files.- Parameters:
b1- first input to applyExb2- second input to applyExdom- third input to applyExop- operation to be passed to applyEx- Throws:
IOException- In case of an I/O error.
-
cleanup
public void cleanup()Clean up the temporary files. -
writeBDDConfig
Write the BDD configuration to a file.- Parameters:
bdd- BDD factoryfileName- filename- Throws:
IOException- In case of an I/O error.
-
tryOrder
Try out a variable order.- Parameters:
factory- BDD factory namereverse- whether to reverse the bitsvarOrder- variable order to try- Returns:
- time spent, or Long.MAX_VALUE if it didn't terminate
-
getBestOrder
-
getBestTime
public long getBestTime()
-