Skip to content

Commit b68fa9d

Browse files
committed
chore(release): Bigraph Framework 2.0.1 -> 2.2.0
1 parent 463b77b commit b68fa9d

File tree

29 files changed

+134
-243
lines changed

29 files changed

+134
-243
lines changed

README.md

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="./etc/logo-bdsl-interpreter-dark.png" style="zoom:90%;" />
22

3-
> Latest Version: **2.0.1**
3+
> Latest Version: **2.2.0**
44
55
- BDSL user guide: https://nbn-resolving.org/urn:nbn:de:bsz:14-qucosa2-752170
66

@@ -24,11 +24,12 @@ The framework and grammar can be extended and facilitate "bigraphical language e
2424

2525
**Version Compatibility**
2626

27-
| Component | Release |
28-
|----------------------------------| ------- |
29-
| **BDSL Interpreter** | 2.0.1 |
30-
| \|- BDSL Core Elements (Grammar) | 2.0.1 |
31-
| \|- Bigraph Framework | 2.0.1 |
27+
| BDSL Interpreter Release | BDSL Core Elements (Grammar) | Bigraph Framework |
28+
|--------------------------|------------------------------|-------------------|
29+
| **2.2.0** (current) | 2.0.1 | 2.2.0 |
30+
| 2.0.1 | 2.0.1 | 2.0.1 |
31+
32+
3233

3334
## Getting Started
3435

@@ -86,25 +87,12 @@ $ mvn package -Pbuild-cli
8687
After executing the command above, the command-line interpreter tool for BDSL is then available under `./bdsl-interpreter-cli/target/` from the root directory of this project.
8788
See also the `README.md` of the respective submodules for more details on how to use the whole BDSL interpreter framework.
8889

89-
### Dependency Management
90-
This project uses [Bigraph Framework](https://git-st.inf.tu-dresden.de/bigraphs/bigraph-framework) to perform all elementary underlying bigraph model operations.
91-
The grammar, parser and other DSL-related things come from [BDSL Core Elements](https://git-st.inf.tu-dresden.de/bigraphs/bigraph-dsl-ce).
92-
93-
This BDSL interpreter project uses both dependencies to implement the fundamental interpretation logic and the command-line tool of the interpreter.
94-
95-
96-
#### Using a local BDSL-Grammar Dependency
90+
### Dependencies
9791

98-
This approach is useful for development purposes, or in case one wants to use the latest version.
99-
To use a local variant of the BDSL dependency (`org.bigraphs.dsl:bdsl-grammar:VERSION`), the Maven profile `useLocalLib` must be used:
92+
This project uses [Bigraph Framework](https://github.com/bigraph-toolkit-suite/bigraphs.bigraph-framework) to perform all elementary underlying bigraph model operations.
93+
The grammar, parser and other DSL-related things come from [BDSL Grammar](https://github.com/bigraph-toolkit-suite/bigraphs.bdsl-core-elements).
10094

101-
```bash
102-
$ mvn package -DskipTests -PuseLocalLib
103-
```
104-
105-
This will install the dependency in the local Maven repository.
106-
The `*.jar` dependency must be placed inside the folder `./etc/libs`.
107-
The version can be specified in the project's root `pom.xml` via the property `bdsl.ce.version`.
95+
This BDSL interpreter project uses both dependencies to implement the fundamental interpretation logic and the command-line tool of the interpreter.
10896

10997
### Deployment
11098

@@ -128,14 +116,6 @@ and the GPG credentials being available e.g. from `settings.xml`.
128116

129117
More details can be found link:https://central.sonatype.org/publish/requirements/gpg/[here].
130118

131-
### Additional Notes
132-
133-
> **Note:** The current `*.jar` of the [Bigraph DSL](https://github.com/bigraph-toolkit-suite/bigraphs.bdsl-core-elements) project is also copied in the `./etc/lib/` folder for testing.
134-
>
135-
> In case you want to use the latest <i>BDSL Core Elements</i> `*.jar`, you have to manually install it. See [BDSL Core Elements](https://github.com/bigraph-toolkit-suite/bigraphs.bdsl-core-elements) for more details.
136-
>
137-
> The Maven build script can automatically install it in the local Maven repository (usually located under `~/.m2/`).
138-
139119

140120
## License
141121

bdsl-execution-common/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<parent>
66
<groupId>org.bigraphs.dsl.interpreter</groupId>
77
<artifactId>bdsl-interpreter-parent</artifactId>
8-
<version>3.0.0-SNAPSHOT</version>
8+
<version>2.2.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>bdsl-execution-common</artifactId>
12-
<name>BDSL Interpreter - Execution Commons (Environment and Strategies)</name>
12+
<name>BDSL Interpreter - Execution Commons</name>
1313
<packaging>jar</packaging>
14+
<description>Execution Strategies for BDSL Statements.</description>
1415

1516
<build>
1617
<plugins>

bdsl-execution-common/src/test/java/org/bigraphs/dsl/interpreter/execution/codeexecution/MyClass.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

bdsl-interpreter-cli/README.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,7 @@ To remove the files that the install script creates, delete the following files
4747
- /usr/local/bin/bdsl
4848
- /opt/bdsl/
4949

50-
## Import Instructions
51-
52-
For a Maven-based project, use this dependency inside the project's `pom.xml`:
53-
```xml
54-
<!-- ... -->
55-
<dependencies>
56-
<dependency>
57-
<groupId>de.tudresden.inf.st.bigraphs.dsl.interpreter</groupId>
58-
<artifactId>bdsl-interpreter-cli</artifactId>
59-
<version>${version}</version>
60-
<!-- <classifier>sources</classifier> -->
61-
</dependency>
62-
</dependencies>
63-
<!-- ... -->
64-
```
65-
66-
Replace `${version}` with the current version.
67-
68-
## Remarks
69-
70-
### Configuration
50+
## Configuration
7151

7252
Configuring BDSL programs can be accomplished by setting various parameters in an externalized configuration file.
7353

bdsl-interpreter-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.bigraphs.dsl.interpreter</groupId>
77
<artifactId>bdsl-interpreter-parent</artifactId>
8-
<version>3.0.0-SNAPSHOT</version>
8+
<version>2.2.0</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111
<artifactId>bdsl-interpreter-cli</artifactId>

bdsl-interpreter-cli/src/main/java/org/bigraphs/dsl/cli/Application.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ public static String[] addArgs(String[] args) {
3737
return arguments.toArray(new String[0]);
3838
}
3939

40-
@Value("${klo}")
41-
String logLevel;
42-
@Autowired
43-
Environment env;
44-
4540
public static void main(String[] args) {
4641
String[] args2 = addArgs(args);
4742
// for (String arg : args2) {
@@ -57,16 +52,12 @@ public static void main(String[] args) {
5752
}
5853

5954
@Autowired
60-
@Qualifier("cliFactory")
55+
@Qualifier("defaultCliFactory")
6156
CliFactory cliFactory;
6257

63-
// @Autowired
64-
// ModelCheckingOptions modelCheckingOptions;
65-
6658

6759
@Override
6860
public void run(String... args) throws Exception {
69-
// CliOptionProvider cliOptionProvider = cliFactory.createCliOptionProvider();
7061
CliOptionProcessor cliProcessor = cliFactory.createCliOptionProcessor();
7162
CommandLineParser commandLineParser = cliFactory.getCommandLineParser();
7263
CliExecutor cliExecutor = cliFactory.createCliExecutor();

bdsl-interpreter-cli/src/main/java/org/bigraphs/dsl/cli/VersionHolder.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
package org.bigraphs.dsl.cli;
22

3-
import org.springframework.boot.autoconfigure.SpringBootApplication;
43
import org.springframework.context.ApplicationContext;
54

6-
import java.util.Optional;
7-
8-
/**
9-
* @see <a href="https://blog.jdriven.com/2018/10/get-your-application-version-with-spring-boot/">Source: https://blog.jdriven.com/2018/10/get-your-application-version-with-spring-boot/</a>
10-
*/
115
public class VersionHolder {
126

137
private final String version;
148

159
public VersionHolder(ApplicationContext context) {
16-
version = context.getBeansWithAnnotation(SpringBootApplication.class).entrySet().stream()
17-
.findFirst()
18-
.flatMap(es -> {
19-
final String implementationVersion = es.getValue().getClass().getPackage().getImplementationVersion();
20-
return Optional.ofNullable(implementationVersion);
21-
}).orElse("unknown");
10+
version = "2.2.0";
2211
}
2312

2413
public String getVersion() {

bdsl-interpreter-cli/src/test/java/org/bigraphs/dsl/cli/AppTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package org.bigraphs.dsl.cli;
22

3-
import org.bigraphs.dsl.cli.Application;
4-
import org.bigraphs.framework.simulation.modelchecking.ModelCheckingOptions;
3+
import org.bigraphs.dsl.cli.configuration.v1.DefaultCliFactory;
4+
import org.junit.jupiter.api.Disabled;
55
import org.junit.jupiter.api.Test;
66
import org.junit.jupiter.api.extension.ExtendWith;
7+
import org.springframework.context.annotation.Bean;
78
import org.springframework.test.context.TestPropertySource;
89
import org.springframework.test.context.junit.jupiter.SpringExtension;
910

@@ -15,8 +16,10 @@
1516
*/
1617
@ExtendWith(SpringExtension.class) // for junit5, no RunWith necessary
1718
@TestPropertySource(value = {"classpath:cli-test.properties"}, inheritProperties = true)
19+
@Disabled
1820
public class AppTest {
1921

22+
2023
@Test
2124
void name() {
2225
List<String> args = new ArrayList<>();

bdsl-interpreter-cli/src/test/java/org/bigraphs/dsl/cli/BaseUnitTestSupport.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.google.common.io.Resources;
44
import com.google.inject.Inject;
55
import org.bigraphs.framework.core.ControlStatus;
6-
import org.bigraphs.framework.core.impl.signature.DefaultDynamicSignature;
6+
import org.bigraphs.framework.core.impl.signature.DynamicSignature;
77
import org.bigraphs.dsl.bDSL.*;
88
import org.bigraphs.dsl.interpreter.InterpreterServiceManager;
99
import org.bigraphs.dsl.interpreter.ParserService;
@@ -120,22 +120,22 @@ public void assertLocalVarDeclCount(BDSLDocument brsModel, int expected) {
120120
assertEquals(expected, collect.size());
121121
}
122122

123-
public DefaultDynamicSignature getDefaultDynamicSignature(BDSLDocument brsModel) {
123+
public DynamicSignature getDynamicSignature(BDSLDocument brsModel) {
124124
assertNotNull(brsModel.getSignature());
125125
// assertEquals(1, brsModel.getSignature().size());
126126
Signature signature = brsModel.getSignature().get(0);
127-
DefaultDynamicSignature signature1 = (DefaultDynamicSignature) signature.interpretStart(new SignatureEvalVisitorImpl());
127+
DynamicSignature signature1 = (DynamicSignature) signature.interpretStart(new SignatureEvalVisitorImpl());
128128
return signature1;
129129
}
130130

131131
public Signature getSignature(BDSLDocument brsModel, int ix) {
132132
assertNotNull(brsModel.getSignature());
133133
Signature signature = brsModel.getSignature().get(ix);
134-
// DefaultDynamicSignature signature1 = (DefaultDynamicSignature) signature.interpretStart(new SignatureEvalVisitorImpl());
134+
// DynamicSignature signature1 = (DynamicSignature) signature.interpretStart(new SignatureEvalVisitorImpl());
135135
return signature;
136136
}
137137

138-
protected void checkBasicSignature(DefaultDynamicSignature signature1) {
138+
protected void checkBasicSignature(DynamicSignature signature1) {
139139
assertNotNull(signature1);
140140
assertEquals(3, signature1.getControls().size());
141141
assertEquals(ControlStatus.ACTIVE, signature1.getControlByName("a").getControlKind());

bdsl-interpreter-cli/src/test/java/org/bigraphs/dsl/cli/ConfigurationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.bigraphs.dsl.cli;
22

33
import org.bigraphs.framework.simulation.modelchecking.ModelCheckingOptions;
4+
import org.junit.jupiter.api.Disabled;
45
import org.junit.jupiter.api.Test;
56
import org.junit.jupiter.api.extension.ExtendWith;
67
import org.springframework.beans.factory.annotation.Autowired;
@@ -20,6 +21,7 @@
2021
@ExtendWith(SpringExtension.class) // for junit5, no RunWith necessary
2122
@TestPropertySource("classpath:cli-test.properties")
2223
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
24+
@Disabled
2325
public class ConfigurationTest {
2426

2527
@Autowired

0 commit comments

Comments
 (0)