Skip to content

This is a project skeleton for using Bigraph Framework. This project provides a quick introduction on how to setup and configure a Maven project.

Notifications You must be signed in to change notification settings

bigraph-toolkit-suite/Project-Skeleton-for-Bigraph-Framework

Repository files navigation

A Minimal Maven-based Project Skeleton for using Bigraph Framework

This project provides a quick introduction on how to setup, configure and use the Bigraph Framework.

This main class org.example.MainBigraphApplication creates a signature and two bigraphs first, and performs the following operations afterwards:

  • The two bigraphs are composed
  • A reactive system is created, a matching conducted and the agent rewritten
  • A bigraph is converted to the BigraphER specification language format

Getting Started

Create a Fat-JAR / Uber-JAR

All the dependencies are included in the generated JAR.

# Create the executable JAR
$ mvn clean package -PfatJar
# Execute the application
$ java -jar ./target/fatJar-empty-project-skeleton-bigraphframework-1.0-SNAPSHOT.jar

Classpath-Approach (1): Relative Libs-Folder

The necessary dependencies are installed in your local Maven repository, and also copied in a local folder next to the generated JAR and referred to at runtime. That is, the classpath in the MANIFEST.MF is set to libs/ (relative to the generated JAR).

# Create the executable JAR
$ mvn clean install -PlocalLib
# Execute the application
$ java -jar ./target/localLib-empty-project-skeleton-bigraphframework-1.0-SNAPSHOT.jar

Classpath-Approach (2): Local Maven Repository

The necessary dependencies are installed in your local Maven repository, which is where the generated application refers to. That is, the classpath in the MANIFEST.MF is set to ~/.m2/repository/.

# Create the executable JAR
$ mvn clean install -PlocalM2
# Execute the application
$ java -jar ./target/localM2-empty-project-skeleton-bigraphframework-1.0-SNAPSHOT.jar

About

This is a project skeleton for using Bigraph Framework. This project provides a quick introduction on how to setup and configure a Maven project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages