-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new concept for computation handlers
- Loading branch information
1 parent
fc5b142
commit 90f441d
Showing
108 changed files
with
1,414 additions
and
1,856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
src/main/java/com/booleworks/logicng/handlers/BDDHandler.java
This file was deleted.
Oops, something went wrong.
37 changes: 18 additions & 19 deletions
37
src/main/java/com/booleworks/logicng/handlers/ComputationHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
// SPDX-License-Identifier: Apache-2.0 and MIT | ||
// Copyright 2015-2023 Christoph Zengler | ||
// Copyright 2023-20xx BooleWorks GmbH | ||
|
||
package com.booleworks.logicng.handlers; | ||
|
||
import com.booleworks.logicng.handlers.events.LogicNGEvent; | ||
|
||
/** | ||
* A computation handler. | ||
* @version 1.6.2 | ||
* @since 1.6.2 | ||
* Interface for a computation handler. | ||
* @since 3.0.0 | ||
* @version 3.0.0 | ||
*/ | ||
public abstract class ComputationHandler implements Handler { | ||
|
||
protected boolean aborted; | ||
|
||
@Override | ||
public boolean aborted() { | ||
return aborted; | ||
} | ||
public interface ComputationHandler { | ||
/** | ||
* Processes the given event and returns {@code true} if the computation | ||
* should be resumed and {@code false} if it should be aborted. | ||
* @param event the event to handle, must not be {@code null} | ||
* @return whether the computation should be resumed or not | ||
*/ | ||
boolean shouldResume(LogicNGEvent event); | ||
|
||
@Override | ||
public void started() { | ||
aborted = false; | ||
} | ||
/** | ||
* @deprecated should be removed | ||
*/ | ||
@Deprecated | ||
boolean isAborted(); | ||
} |
23 changes: 0 additions & 23 deletions
23
src/main/java/com/booleworks/logicng/handlers/DnnfCompilationHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.