-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output for electrod,annotation use for services
- Loading branch information
Showing
25 changed files
with
463 additions
and
220 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
40 changes: 40 additions & 0 deletions
40
org.alloytools.alloy.core/src/main/java/edu/mit/csail/sdg/translator/CNFTransformer.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package edu.mit.csail.sdg.translator; | ||
|
||
import java.util.Optional; | ||
|
||
import kodkod.engine.satlab.SATFactory; | ||
|
||
public class CNFTransformer extends SATFactory { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Override | ||
public String id() { | ||
return "CNF"; | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return "CNF output"; | ||
} | ||
|
||
@Override | ||
public Optional<String> getDescription() { | ||
return Optional.of("CNF stands for Conjunctive Normal Form. It is specified by DIMACS. This is a standardized way of representing Boolean algebra expressions for processing by SAT solvers."); | ||
} | ||
|
||
@Override | ||
public String type() { | ||
return "transformer"; | ||
} | ||
|
||
@Override | ||
public boolean isTransformer() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isPresent() { | ||
return true; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
org.alloytools.alloy.core/src/main/java/edu/mit/csail/sdg/translator/KKTransformer.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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package edu.mit.csail.sdg.translator; | ||
|
||
import java.util.Optional; | ||
|
||
import kodkod.engine.satlab.SATFactory; | ||
|
||
public class KKTransformer extends SATFactory { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Override | ||
public String id() { | ||
return "KK"; | ||
} | ||
|
||
|
||
@Override | ||
public String type() { | ||
return "transformer"; | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return "KodKod output"; | ||
} | ||
|
||
@Override | ||
public Optional<String> getDescription() { | ||
return Optional.of("KK is the KodKod debug output format"); | ||
} | ||
|
||
@Override | ||
public boolean isTransformer() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isPresent() { | ||
return true; | ||
} | ||
|
||
} |
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
Oops, something went wrong.