# Copyright (c) 2018-2020 Novo Nordisk Foundation Center for Biosustainability,
# Technical University of Denmark.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


"""Define an abstract base class defining the interface for clients."""


from abc import ABC, abstractmethod


__all__ = ("RepositoryClient",)


class RepositoryClient(ABC):
    """Provide a pythonic abstract base interface."""

    @abstractmethod
    def get_plasmid_ids(self):
        """Return a frozenset of all accessible plasmid identifiers."""
        raise NotImplementedError("Override this method in the child class.")

    @abstractmethod
    def get_plasmid_record(self, plasmid_id):
        """Return the name and sequence record for a specific plasmid."""
        raise NotImplementedError("Override this method in the child class.")

    @abstractmethod
    def get_primer_ids(self):
        """Return a frozenset of all accessible primer identifiers."""
        raise NotImplementedError("Override this method in the child class.")

# Copyright (c) 2018-2020 Novo Nordisk Foundation Center for Biosustainability,
# Technical University of Denmark.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


"""Define an abstract base class defining the interface for clients."""


from abc import ABC, abstractmethod


__all__ = ("RepositoryClient",)


class RepositoryClient(ABC):
    """Provide a pythonic abstract base interface."""

    @abstractmethod
    def get_plasmid_ids(self):
        """Return a frozenset of all accessible plasmid identifiers."""
        raise NotImplementedError("Override this method in the child class.")

    @abstractmethod
    def get_plasmid_record(self, plasmid_id):
        """Return the name and sequence record for a specific plasmid."""
        raise NotImplementedError("Override this method in the child class.")

    @abstractmethod
    def get_primer_ids(self):
        """Return a frozenset of all accessible primer identifiers."""
        raise NotImplementedError("Override this method in the child class.")

# Copyright (c) 2018-2020 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #     https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. Define an abstract base class defining the interface for clients. Provide a pythonic abstract base interface. Return a frozenset of all accessible plasmid identifiers. Return the name and sequence record for a specific plasmid. Return a frozenset of all accessible primer identifiers.