Skip to content

An optaplanner planning problem related to satellites and tasks to assign to visibilities zones linked to that satellites. Used Quarkus and Constraint Streams.

Notifications You must be signed in to change notification settings

jahs-es/satellite-scheduling-optaplanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satellite Station task scheduling Scheduling (Java, Quarkus, Maven)

A sample project that try to assign tasks to visibilities zones linked to satellites.

Constraint Stream is used to create constraints.

Tests included.

Run the application with live coding

  1. Start the application with Maven:

    $ mvn quarkus:dev
  2. Visit http:https://localhost:8080 in your browser.

  3. Click on the Solve button.

Then try live coding:

  1. Make some changes in the source code.

  2. Refresh your browser (F5).

Notice that those changes are immediately in effect.

Package and run the application

When you’re done iterating in quarkus:dev mode, run the application as a conventional jar file.

  1. Compile it with Maven:

    $ mvn package
  2. Run it:

    $ java -jar ./target/quarkus-app/quarkus-run.jar
    Note

    To run it on port 8081 instead, add -Dquarkus.http.port=8081.

  3. Visit http:https://localhost:8080 in your browser.

Run a native executable

  1. Install GraalVM and gu install the native-image tool

  2. Compile it natively:

    $ mvn package -Dnative -DskipTests    -Dquarkus.profile=native
    Warning

    The -Dquarkus.profile=native is a temporary workaround for an issue in Quarkus 1.10.

  3. Run a database. By default, application.properties is configured for H2:

    1. Download the H2 database (Platform-independent zip) and unzip it.

    2. Start the H2 server with the option -ifNotExists (not recommended in production):

      $ cd h2/bin
      $ java -cp h2*.jar org.h2.tools.Server -ifNotExists
  4. Run the native executable:

    $ ./target/*-runner
  5. Visit http:https://localhost:8080 in your browser.

More information

About

An optaplanner planning problem related to satellites and tasks to assign to visibilities zones linked to that satellites. Used Quarkus and Constraint Streams.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published