Skip to content
Snippets Groups Projects
MLRepositoryInterface.py 1.01 KiB
Newer Older
##
# This program has been developed by students from the bachelor Computer Science at Utrecht University within the Software Project course.
# © Copyright Utrecht University (Department of Information and Computing Sciences)
##
#!/usr/bin/env python
##
# Define the interface that each algorithm should implement
##
    def __init__(self, service_name: str, queue_name: str):
        self.parameters = {}
        self.this = {}
        self.this[queue_name] = self.parameters
        self.service_name = service_name
        self.queue_name = queue_name

        # parameters = {}
        # this = self.MLClass(parameters, "placeholder")

    class Attribute:
        def __init__(self, optional, type):
            self.optional = optional
            self.type = type
            return json.dumps(
                self, default=lambda o: o.__dict__, sort_keys=True, indent=4
            )

    def __call__(self, body) -> str:
        pass