# Copyright 2022 Google LLC
#
# 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.
"""Constants for the configuration scoring tool."""

from enum import Enum


class FileTypes(str, Enum):
  """The file which is being scored."""
  PROPOSED = 'proposed'
  """The file which is being compared against."""
  SOLUTION = 'solution'

  def __str__(self):
    return self.value


class DimensionCategories(str, Enum):
  """Dimensions in this category receive `translations`
  and score only reporting entities in bulk."""
  SIMPLE = 'simple'
  """Dimensions in this category receive `deserialized_files`
  to typically build a multi-map of virtual entities prior to
  calculating scores."""
  COMPLEX = 'complex'


class MappingTypes(str, Enum):
  STATE = 'MultiStateValue'
  UNIT = 'DimensionalValue'
