forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.py
62 lines (54 loc) · 2.42 KB
/
enums.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This file is part of OctoBot (https://github.com/Drakkar-Software/OctoBot)
# Copyright (c) 2023 Drakkar-Software, All rights reserved.
#
# OctoBot is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either
# version 3.0 of the License, or (at your option) any later version.
#
# OctoBot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with OctoBot. If not, see <https://www.gnu.org/licenses/>.
import enum
class CommunityFeedType(enum.Enum):
WebsocketFeed = "WebsocketFeed"
MQTTFeed = "MQTTFeed"
class CommunityEnvironments(enum.Enum):
Staging = "Staging"
Production = "Production"
class OptimizerModes(enum.Enum):
NORMAL = "normal"
GENETIC = "genetic"
class OptimizerConfig(enum.Enum):
OPTIMIZER_ID = "optimizer_id"
OPTIMIZER_IDS = "optimizer_ids"
RANDOMLY_CHOSE_RUNS = "randomly_chose_runs"
DATA_FILES = "data_files"
OPTIMIZER_CONFIG = "optimizer_config"
EXCHANGE_TYPE = "exchange_type"
QUEUE_SIZE = "queue_size"
EMPTY_THE_QUEUE = "empty_the_queue"
START_TIMESTAMP = "start_timestamp"
END_TIMESTAMP = "end_timestamp"
IDLE_CORES = "idle_cores"
NOTIFY_WHEN_COMPLETE = "notify_when_complete"
DB_UPDATE_PERIOD = "db_update_period"
MODE = "mode"
MAX_OPTIMIZER_RUNS = "max_optimizer_runs"
INITIAL_GENERATION_COUNT = "initial_generation_count"
DEFAULT_GENERATIONS_COUNT = "default_generations_count"
DEFAULT_RUN_PER_GENERATION = "default_run_per_generation"
DEFAULT_SCORING_PARAMETERS = "default_scoring_parameters"
DEFAULT_OPTIMIZER_FILTERS = "default_optimizer_filters"
DEFAULT_OPTIMIZER_CONSTRAINTS = "default_optimizer_constraints"
DEFAULT_MUTATION_PERCENT = "default_mutation_percent"
MAX_MUTATION_PROBABILITY_PERCENT = "max_mutation_probability_percent"
MIN_MUTATION_PROBABILITY_PERCENT = "min_mutation_probability_percent"
DEFAULT_MAX_MUTATION_NUMBER_MULTIPLIER = "default_max_mutation_number_multiplier"
DEFAULT_CROSSOVER_PERCENT = "default_crossover_percent"
STAY_WITHIN_BOUNDARIES = "stay_within_boundaries"
TARGET_FITNESS_SCORE = "target_fitness_score"