#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Dec 11 14:42 2018

@author: phongdk
"""

from property import Property


class Gender(Property):
    def __init__(self, name):
        super().__init__()
        self.__name = name
        self.__score = {-1: 0,
                        0: 5.0,
                        1: 4.0}

        self.__threshold = None

    def get_score(self, label):
        return self.__score[int(label)]

    def get_name(self):
        return self.__name

    def get_threshold(self):
        return self.__threshold

    def set_threshold(self, threshold):
        self.__threshold = threshold

    def get_map_score(self):
        return self.__score
