2022-06-10 11:50:59 +02:00
|
|
|
openapi: 3.0.3
|
|
|
|
info:
|
2022-06-20 17:33:20 +02:00
|
|
|
version: 0.3.0
|
2022-06-10 11:50:59 +02:00
|
|
|
title: Schemata for config models
|
2022-06-11 16:07:23 +02:00
|
|
|
servers:
|
|
|
|
- url: "."
|
2022-06-10 11:50:59 +02:00
|
|
|
paths: {}
|
|
|
|
components:
|
|
|
|
schemas:
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Config
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Config:
|
2022-06-11 16:07:23 +02:00
|
|
|
description: |-
|
2022-06-10 11:50:59 +02:00
|
|
|
Data model for all parts of the configuration.
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- info
|
|
|
|
- options
|
|
|
|
- calls
|
|
|
|
properties:
|
|
|
|
info:
|
|
|
|
$ref: "#/components/schemas/Info"
|
|
|
|
options:
|
|
|
|
$ref: "#/components/schemas/AppOptions"
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Info
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Info:
|
|
|
|
description: |-
|
|
|
|
Contains meta data about project.
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- title
|
|
|
|
- description
|
|
|
|
- author
|
|
|
|
properties:
|
|
|
|
title:
|
|
|
|
type: string
|
|
|
|
description:
|
|
|
|
type: string
|
|
|
|
author:
|
|
|
|
type: string
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# App Options
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
AppOptions:
|
|
|
|
description: |-
|
|
|
|
Options pertaining to the rudimentary setup of the app.
|
|
|
|
type: object
|
2022-06-10 12:44:04 +02:00
|
|
|
required:
|
2022-06-11 14:01:24 +02:00
|
|
|
- log-level
|
2022-06-10 12:44:04 +02:00
|
|
|
- tsp
|
2022-06-11 14:01:24 +02:00
|
|
|
- tarjan
|
2022-06-10 12:44:04 +02:00
|
|
|
- hirschberg
|
2022-06-15 15:54:52 +02:00
|
|
|
- rucksack
|
2022-06-21 17:24:30 +02:00
|
|
|
- random-walk
|
|
|
|
- genetic
|
2022-06-20 15:55:43 +02:00
|
|
|
- euklid
|
|
|
|
- pollard-rho
|
2022-06-10 12:08:31 +02:00
|
|
|
properties:
|
2022-06-11 14:01:24 +02:00
|
|
|
log-level:
|
|
|
|
$ref: '#/components/schemas/EnumLogLevel'
|
|
|
|
verbose:
|
|
|
|
description: Global setting for verbosity.
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-06-10 16:04:30 +02:00
|
|
|
tarjan:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- verbose
|
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-06-10 12:08:31 +02:00
|
|
|
tsp:
|
|
|
|
type: object
|
2022-06-10 12:44:04 +02:00
|
|
|
required:
|
|
|
|
- verbose
|
2022-06-10 12:08:31 +02:00
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
hirschberg:
|
|
|
|
type: object
|
2022-06-10 12:44:04 +02:00
|
|
|
required:
|
|
|
|
- penality-mismatch
|
|
|
|
- penality-gap
|
|
|
|
- move-priorities
|
2022-06-10 12:08:31 +02:00
|
|
|
properties:
|
2022-06-10 12:40:55 +02:00
|
|
|
penality-mismatch:
|
2022-06-10 12:08:31 +02:00
|
|
|
type: number
|
|
|
|
default: 1
|
|
|
|
penality-gap:
|
|
|
|
type: number
|
|
|
|
default: 1
|
2022-06-10 12:40:55 +02:00
|
|
|
move-priorities:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
diagonal:
|
|
|
|
type: integer
|
|
|
|
minimum: 0
|
|
|
|
default: 0
|
|
|
|
horizontal:
|
|
|
|
type: integer
|
|
|
|
minimum: 0
|
|
|
|
default: 1
|
|
|
|
vertical:
|
|
|
|
type: integer
|
|
|
|
minimum: 0
|
|
|
|
default: 2
|
2022-06-10 12:08:31 +02:00
|
|
|
verbose:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/EnumHirschbergVerbosity'
|
|
|
|
default: []
|
|
|
|
show:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/EnumHirschbergShow'
|
|
|
|
default: []
|
2022-06-14 01:34:44 +02:00
|
|
|
rucksack:
|
|
|
|
type: object
|
2022-06-15 15:54:52 +02:00
|
|
|
required: []
|
2022-06-14 01:34:44 +02:00
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-06-15 15:54:52 +02:00
|
|
|
show:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/EnumRucksackShow'
|
|
|
|
default: []
|
2022-06-21 17:24:30 +02:00
|
|
|
random-walk:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- verbose
|
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
genetic:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- verbose
|
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-06-20 15:55:43 +02:00
|
|
|
euklid:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- verbose
|
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
pollard-rho:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- verbose
|
|
|
|
properties:
|
|
|
|
verbose:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2022-06-10 12:08:31 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2022-06-11 14:01:24 +02:00
|
|
|
# Enum LogLevel
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
EnumLogLevel:
|
|
|
|
description: |-
|
|
|
|
Enumeration of settings for log level.
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- INFO
|
|
|
|
- DEBUG
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2022-06-10 12:08:31 +02:00
|
|
|
# Enum Hirschberg - Verbosity options
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
EnumHirschbergVerbosity:
|
|
|
|
description: |-
|
|
|
|
Enumeration of verbosity options for Hirschberg
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- COSTS
|
|
|
|
- MOVES
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Enum Hirschberg - display options
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
EnumHirschbergShow:
|
|
|
|
description: |-
|
2022-06-15 15:54:52 +02:00
|
|
|
Enumeration of display options for Hirschberg
|
2022-06-10 12:08:31 +02:00
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- TREE
|
|
|
|
- ATOMS
|
2022-06-15 15:54:52 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Enum Rucksack - display options
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
EnumRucksackShow:
|
|
|
|
description: |-
|
|
|
|
Enumeration of display options for the Rucksack problem
|
|
|
|
type: string
|
|
|
|
enum:
|
|
|
|
- ALL-WEIGHTS
|
|
|
|
- ALL-SUMS
|