Skip to content
tapi_path_computation_path_objective_function_wrapper.py 2.51 KiB
Newer Older
# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_path_computation_path_objective_function import TapiPathComputationPathObjectiveFunction  # noqa: F401,E501
from tapi_server import util


class TapiPathComputationPathObjectiveFunctionWrapper(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    def __init__(self, objective_function: TapiPathComputationPathObjectiveFunction=None):  # noqa: E501
        """TapiPathComputationPathObjectiveFunctionWrapper - a model defined in Swagger

        :param objective_function: The objective_function of this TapiPathComputationPathObjectiveFunctionWrapper.  # noqa: E501
        :type objective_function: TapiPathComputationPathObjectiveFunction
        """
        self.swagger_types = {
            'objective_function': TapiPathComputationPathObjectiveFunction
        }

        self.attribute_map = {
            'objective_function': 'objective-function'
        }
        self._objective_function = objective_function

    @classmethod
    def from_dict(cls, dikt) -> 'TapiPathComputationPathObjectiveFunctionWrapper':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The tapi.path.computation.PathObjectiveFunctionWrapper of this TapiPathComputationPathObjectiveFunctionWrapper.  # noqa: E501
        :rtype: TapiPathComputationPathObjectiveFunctionWrapper
        """
        return util.deserialize_model(dikt, cls)

    @property
    def objective_function(self) -> TapiPathComputationPathObjectiveFunction:
        """Gets the objective_function of this TapiPathComputationPathObjectiveFunctionWrapper.


        :return: The objective_function of this TapiPathComputationPathObjectiveFunctionWrapper.
        :rtype: TapiPathComputationPathObjectiveFunction
        """
        return self._objective_function

    @objective_function.setter
    def objective_function(self, objective_function: TapiPathComputationPathObjectiveFunction):
        """Sets the objective_function of this TapiPathComputationPathObjectiveFunctionWrapper.


        :param objective_function: The objective_function of this TapiPathComputationPathObjectiveFunctionWrapper.
        :type objective_function: TapiPathComputationPathObjectiveFunction
        """

        self._objective_function = objective_function