cds1011-ls2/py/arguments.py
2025-11-29 23:55:33 +01:00

46 lines
952 B
Python

from enum import Enum
class Mode(Enum):
V = "v"
A = "a"
C = "c"
class Information(Enum):
DISABLED = False
ENABLED = True
class Graph(Enum):
DISABLED = False
ENABLED = True
class Arguments:
def __init__(self, file_path, mode, information, graph):
self.file_path = file_path
self.mode = mode
self.information = information
self.graph = graph
def get_file_path(self):
return self.file_path
def set_file_path(self, value):
self.file_path = value
def get_mode(self):
return self.mode.value
def set_mode(self, value):
self.mode = Mode(value)
def get_information(self):
return self.information.value
def set_information(self, value):
self.information = Information(value)
def get_graph(self):
return self.graph.value
def set_graph(self, value):
self.graph = Graph(value)