woche12 > master: schemata - neue commands

This commit is contained in:
RD 2022-06-20 15:55:43 +02:00
parent 8cba2fdf13
commit ac119a0b29
2 changed files with 59 additions and 0 deletions

View File

@ -115,11 +115,14 @@ components:
Instructions for execution of Branch & Bound-Algorithm for the Rucksack-Problem Instructions for execution of Branch & Bound-Algorithm for the Rucksack-Problem
type: object type: object
required: required:
- name
- algorithm - algorithm
- max-cost - max-cost
- costs - costs
- values - values
properties: properties:
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
algorithm: algorithm:
$ref: '#/components/schemas/EnumRucksackAlgorithm' $ref: '#/components/schemas/EnumRucksackAlgorithm'
allow-fractional: allow-fractional:
@ -146,6 +149,42 @@ components:
items: items:
type: string type: string
default: [] default: []
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Algorithm: Euklidean algorithm
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CommandEuklid:
description: |-
Instructions for execution of the Euklidean gcd-algorithm
type: object
required:
- name
- numbers
properties:
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
numbers:
type: array
items:
type: integer
exclusiveMinimum: 0
minItems: 2
maxItems: 2
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Algorithm: Pollard's rho
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CommandPollard:
description: |-
Instructions for execution of the Pollard's rho algorithm
type: object
required:
- name
- number
properties:
name:
$ref: '#/components/schemas/EnumAlgorithmNames'
number:
type: integer
exclusiveMinimum: 0
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Enum Algorithm Names # Enum Algorithm Names
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -158,6 +197,8 @@ components:
- TSP - TSP
- HIRSCHBERG - HIRSCHBERG
- RUCKSACK - RUCKSACK
- EUKLID
- POLLARD-RHO
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Enum Optimise Mode # Enum Optimise Mode
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -54,6 +54,8 @@ components:
- tarjan - tarjan
- hirschberg - hirschberg
- rucksack - rucksack
- euklid
- pollard-rho
properties: properties:
log-level: log-level:
$ref: '#/components/schemas/EnumLogLevel' $ref: '#/components/schemas/EnumLogLevel'
@ -127,6 +129,22 @@ components:
items: items:
$ref: '#/components/schemas/EnumRucksackShow' $ref: '#/components/schemas/EnumRucksackShow'
default: [] default: []
euklid:
type: object
required:
- verbose
properties:
verbose:
type: boolean
default: false
pollard-rho:
type: object
required:
- verbose
properties:
verbose:
type: boolean
default: false
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Enum LogLevel # Enum LogLevel
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~