# coding: utf-8

"""
    MEC Sandbox API

    The MEC Sandbox API described using OpenAPI  # noqa: E501

    OpenAPI spec version: 0.0.9
    Contact: cti_support@etsi.org
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

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

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'location': 'Point',
        'radius': 'float',
        'path': 'LineString',
        'eop_mode': 'str',
        'velocity': 'float',
        'd2d_in_range': 'list[str]',
        'poa_in_range': 'list[str]'
    }

    attribute_map = {
        'location': 'location',
        'radius': 'radius',
        'path': 'path',
        'eop_mode': 'eopMode',
        'velocity': 'velocity',
        'd2d_in_range': 'd2dInRange',
        'poa_in_range': 'poaInRange'
    }

    def __init__(self, location=None, radius=None, path=None, eop_mode=None, velocity=None, d2d_in_range=None, poa_in_range=None):  # noqa: E501
        """GeoData - a model defined in Swagger"""  # noqa: E501
        self._location = None
        self._radius = None
        self._path = None
        self._eop_mode = None
        self._velocity = None
        self._d2d_in_range = None
        self._poa_in_range = None
        self.discriminator = None
        if location is not None:
            self.location = location
        if radius is not None:
            self.radius = radius
        if path is not None:
            self.path = path
        if eop_mode is not None:
            self.eop_mode = eop_mode
        if velocity is not None:
            self.velocity = velocity
        if d2d_in_range is not None:
            self.d2d_in_range = d2d_in_range
        if poa_in_range is not None:
            self.poa_in_range = poa_in_range

    @property
    def location(self):
        """Gets the location of this GeoData.  # noqa: E501


        :return: The location of this GeoData.  # noqa: E501
        :rtype: Point
        """
        return self._location

    @location.setter
    def location(self, location):
        """Sets the location of this GeoData.


        :param location: The location of this GeoData.  # noqa: E501
        :type: Point
        """

        self._location = location

    @property
    def radius(self):
        """Gets the radius of this GeoData.  # noqa: E501

        Optional - Radius (in meters) around the location  # noqa: E501

        :return: The radius of this GeoData.  # noqa: E501
        :rtype: float
        """
        return self._radius

    @radius.setter
    def radius(self, radius):
        """Sets the radius of this GeoData.

        Optional - Radius (in meters) around the location  # noqa: E501

        :param radius: The radius of this GeoData.  # noqa: E501
        :type: float
        """

        self._radius = radius

    @property
    def path(self):
        """Gets the path of this GeoData.  # noqa: E501


        :return: The path of this GeoData.  # noqa: E501
        :rtype: LineString
        """
        return self._path

    @path.setter
    def path(self, path):
        """Sets the path of this GeoData.


        :param path: The path of this GeoData.  # noqa: E501
        :type: LineString
        """

        self._path = path

    @property
    def eop_mode(self):
        """Gets the eop_mode of this GeoData.  # noqa: E501

        End-of-Path mode: <li>LOOP: When path endpoint is reached, start over from the beginning <li>REVERSE: When path endpoint is reached, return on the reverse path  # noqa: E501

        :return: The eop_mode of this GeoData.  # noqa: E501
        :rtype: str
        """
        return self._eop_mode

    @eop_mode.setter
    def eop_mode(self, eop_mode):
        """Sets the eop_mode of this GeoData.

        End-of-Path mode: <li>LOOP: When path endpoint is reached, start over from the beginning <li>REVERSE: When path endpoint is reached, return on the reverse path  # noqa: E501

        :param eop_mode: The eop_mode of this GeoData.  # noqa: E501
        :type: str
        """
        allowed_values = ["LOOP", "REVERSE"]  # noqa: E501
        if eop_mode not in allowed_values:
            raise ValueError(
                "Invalid value for `eop_mode` ({0}), must be one of {1}"  # noqa: E501
                .format(eop_mode, allowed_values)
            )

        self._eop_mode = eop_mode

    @property
    def velocity(self):
        """Gets the velocity of this GeoData.  # noqa: E501

        Speed of movement along path in m/s  # noqa: E501

        :return: The velocity of this GeoData.  # noqa: E501
        :rtype: float
        """
        return self._velocity

    @velocity.setter
    def velocity(self, velocity):
        """Sets the velocity of this GeoData.

        Speed of movement along path in m/s  # noqa: E501

        :param velocity: The velocity of this GeoData.  # noqa: E501
        :type: float
        """

        self._velocity = velocity

    @property
    def d2d_in_range(self):
        """Gets the d2d_in_range of this GeoData.  # noqa: E501


        :return: The d2d_in_range of this GeoData.  # noqa: E501
        :rtype: list[str]
        """
        return self._d2d_in_range

    @d2d_in_range.setter
    def d2d_in_range(self, d2d_in_range):
        """Sets the d2d_in_range of this GeoData.


        :param d2d_in_range: The d2d_in_range of this GeoData.  # noqa: E501
        :type: list[str]
        """

        self._d2d_in_range = d2d_in_range

    @property
    def poa_in_range(self):
        """Gets the poa_in_range of this GeoData.  # noqa: E501


        :return: The poa_in_range of this GeoData.  # noqa: E501
        :rtype: list[str]
        """
        return self._poa_in_range

    @poa_in_range.setter
    def poa_in_range(self, poa_in_range):
        """Sets the poa_in_range of this GeoData.


        :param poa_in_range: The poa_in_range of this GeoData.  # noqa: E501
        :type: list[str]
        """

        self._poa_in_range = poa_in_range

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(GeoData, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, GeoData):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
