Skip to content

Commit d3143cc

Browse files
authored
Merge pull request #54 from haslab/v2.1
Electrum V2.1
2 parents de93c6f + eae19e0 commit d3143cc

File tree

97 files changed

+4838
-4562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+4838
-4562
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4compiler/
3737
*.out
3838
*.app
3939

40+
.idea
41+
*.iml

.travis.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
1-
dist: trusty
2-
sudo: false
1+
dist: focal
32
language: java
4-
jdk:
5-
- oraclejdk8
6-
install: "./gradlew --version"
7-
script: ./gradlew --no-daemon -DGRADLE_OPTS="-Xms128m" --stacktrace build -i
8-
after_success:
9-
- git status
10-
- echo $REPOSITORY_USERNAME
11-
- echo $TRAVIS_PULL_REQUEST
12-
- echo $TRAVIS_BRANCH
13-
- if [ master == $TRAVIS_BRANCH -a $TRAVIS_PULL_REQUEST == false -a ${REPOSITORY_USERNAME:=X}
14-
!= X ]; then ./gradlew -DGRADLE_OPTS="-Xms128m" release -i; fi
3+
before_install:
4+
- curl -L "http://nusmv.fbk.eu/distrib/NuSMV-2.6.0-zchaff-linux64.tar.gz" | tar --extract --gzip --strip-components=2 -C $HOME/bin "NuSMV-2.6.0-Linux/bin/NuSMV" || true
5+
- curl -N -L "http://es-static.fbk.eu/tools/nuxmv/downloads/nuXmv-2.0.0-linux64.tar.gz" | tar --extract --gzip --strip-components=2 -C $HOME/bin "nuXmv-2.0.0-Linux/bin/nuXmv" || true
6+
install:
7+
- "gradle --version"
8+
script: travis_wait gradle --no-daemon -DGRADLE_OPTS="-Xms128m" --stacktrace build -i
159
cache:
1610
directories:
1711
- "$HOME/.gradle"
18-
env:
19-
secure: "iMLby/ptj+UObydTJmFj2VO3QoYOiLmNC6kl7HOeSek7Jeo1LNV/+PXZ01o72t2QszFVux2gDcUBlaZKFXsvN585rT0JGRf7R9EA5qiRzetPmWJaA4vdY+GSZR4O0DiOuBcp+KGS5rBHmi3NoKlLAeO/CrHLFyAv2qjofsECUwmsRsS47aCepC7qllla+8PiQbyse6wytJKIqvk4n7BDXXOfQLM6Y5LZ/5uFs6PKyiLlXBmlG5LzdMtxlEED1nOEmLKak7ZjP2VwpJ3KSFGyu7/l9lf+IFnnXAIZaGvARbTDUhF3cyoZgP2Ab5yWJEB1uYzkoNwczmW5ARfalKkjBAV8DuZJFSe39K7XcWVvWRMGTpUSUKA20BpD+wW3q1x8s8Vw+CLuRzCO6QD3uG+JZX2URIBt4F50SpS07HHAd0c6hzv9M4cjd5l9wBYH2nFX1uUuza6znuk3DJ69bM9INMQ+8A5fkSUaXEw/7ym3a+GQINrFtYftcDm915wAznS5Sa86tK2icDtV4vCdTikXLtu6xmYJ4raliGN0E3yL9agW0J1dMjzK+D6l6zXo/qVT+qjwN8+KSFaaYpGYGotqYT4ZnzR9gE85LZWAYLKgsyOOvMopl9MxRVDSKPomUW48aLpG4G80r2NDG3paxA8xS7esDJTBPNCYKuh7Gn3Cp8s="
20-
12+
- "$HOME/bin"

README.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
![Logo](https://avatars3.githubusercontent.com/u/30268214?v=4&s=200)
2-
<!--[![Build Status](https://travis-ci.org/AlloyTools/org.alloytools.alloy.svg?branch=master)](https://travis-ci.org/AlloyTools/org.alloytools.alloy)-->
2+
[![Build Status](https://travis-ci.org/github/haslab/Electrum2?branch=master)](https://travis-ci.org/github/haslab/Electrum2)
33
# Electrum and Alloy
44

55
Electrum is an extension to the Alloy Analyzer by
@@ -10,11 +10,11 @@ provides an analyzer for Electrum models, a temporal extension to the
1010
Alloy modeling language. The Analyzer provides both bounded and
1111
unbounded model checking procedures.
1212

13-
Alloy 4 is a self-contained executable, which includes the Kodkod
14-
model finder and a variety of SAT solvers, as well as the standard
15-
Alloy library and a collection of tutorial examples. The same jar file
16-
can be incorporated into other applications to use Alloy as an API,
17-
and includes the source code. See the release notes for details of new
13+
Alloy 5 is a self-contained executable, which includes the Kodkod's extension
14+
Pardinus model finder and a variety of SAT solvers, as well as the standard
15+
Alloy library and a collection of tutorial examples. The same jar file can be
16+
incorporated into other applications to use Alloy as an API, and includes the
17+
source code. See the release notes for details of new
1818
features.
1919

2020
More documentation can be found at: http://alloytools.org/documentation.html.
@@ -63,8 +63,8 @@ The workspace is divided into a number of projects:
6363
* [org.alloytools.alloy.application](org.alloytools.alloy.application) – Main application code includes the parser, ast, visualiser, and application code
6464
* [org.alloytools.alloy.dist](org.alloytools.alloy.dist) – Project to create the distribution executable JAR
6565
* [org.alloytools.alloy.extra](org.alloytools.alloy.extra) – Models and examples
66-
* [org.alloytools.kodkod.core](org.alloytools.kodkod.core) – Kodkod without native code
67-
* [org.alloytools.kodkod.native](org.alloytools.kodkod.native) – The native code libraries for kodkod
66+
* [org.alloytools.pardinus](org.alloytools.pardinus) – Kodkod's temporal extension without native code
67+
* [org.alloytools.kodkod.native](org.alloytools.kodkod.native) – The native code libraries for Kodkod/Pardinus
6868

6969
### Relevant Project files
7070

@@ -107,7 +107,9 @@ In the root of this workspace type `./gradlew`. This is a script that will downl
107107

108108
### Continuous Integration
109109

110-
The workspace is setup to build after every commit using Travis. It releases snapshots to `https://oss.sonatype.org/content/repositories/snapshots/org/alloytools/` for every CI build on Travis.
110+
The workspace is setup to build after every commit using Travis.
111+
112+
<!--It releases snapshots to `https://oss.sonatype.org/content/repositories/snapshots/org/alloytools/` for every CI build on Travis.-->
111113

112114
### Building the DMG file for OSX systems
113115

cnf/.classpath

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
55
<classpathentry kind="output" path="bin"/>
6-
</classpath>
6+
</classpath>

cnf/build.bnd

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ testbin: target/test-classes
99
target-dir: target
1010

1111
javac.source: 1.8
12-
javac.target: ${javac.source}
13-
javac.compliance: ${javac.source}
12+
javac.target: 1.8
13+
javac.compliance: 1.8
1414
javac.debug: on
1515

1616
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
@@ -22,7 +22,7 @@ Bundle-DocURL: http://alloytools.org
2222
Bundle-License: MIT
2323

2424
base.version: 5.0.0
25-
elec.version: 2.0.0
25+
elec.version: 2.1.0
2626
Bundle-Version: ${elec.version}.${tstamp}
2727
Bundle-Description: Electrum Analyzer ${Bundle-Version} (forked from Alloy Analyzer ${base.version})
2828

cnf/central.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>local</groupId>
66
<artifactId>central</artifactId>
7-
<version>0.0.0</version>
7+
<version>2.1.0</version>
88

99
<packaging>pom</packaging>
1010

org.alloytools.alloy.application/.classpath

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="con" path="aQute.bnd.classpath.container"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
55
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
66
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
77
<attributes>

org.alloytools.alloy.application/bnd.bnd

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44
-buildpath: \
55
lib/apple-osx-ui.jar;version=file,\
6-
org.alloytools.alloy.core;version=latest,\
76
org.alloytools.pardinus;version=latest,\
7+
org.alloytools.alloy.core;version=latest,\
88

99
-testpath: \
1010
osgi.enroute.junit.wrapper, \
1111
osgi.enroute.hamcrest.wrapper, \
1212
org.sat4j.core, \
13-
org.alloytools.pardinus;version=latest,\
1413
org.alloytools.kodkod.nativesat.amd64-linux, \
1514
org.alloytools.kodkod.nativesat.util, \
1615
org.alloytools.kodkod.nativesat.x86-linux, \
1716
org.alloytools.kodkod.nativesat.x86-mac, \
1817
org.alloytools.kodkod.nativesat.x86-windows
19-
18+
19+
2020
Private-Package: \
2121
edu.mit.csail.sdg.alloy4graph,\
2222
edu.mit.csail.sdg.alloy4viz,\

org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4graph/GraphViewer.java

+10
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,16 @@ public Dimension getPreferredSize() {
694694
return new Dimension((int) (graph.getTotalWidth() * scale), (int) (graph.getTotalHeight() * scale));
695695
}
696696

697+
// [HASLab]
698+
public double getScale() {
699+
return scale;
700+
}
701+
702+
// [HASLab]
703+
public void setScale(double scale) {
704+
this.scale = scale;
705+
}
706+
697707
/**
698708
* This method is called by Swing to draw this component.
699709
*/

0 commit comments

Comments
 (0)