from yta_parameters import ConstantParameterValue as BaseConstantParameterValue
from yta_parameters.context.time import TimeEvaluationContext


# TODO: Rename to 'ConstantTimeParameterValue' (?)
class ConstantParameterValue(BaseConstantParameterValue):
    """
    A parameter value to be used within a time
    context but returning always the same value.
    """

    def evaluate(
        self,
        evaluation_context: TimeEvaluationContext,
    ) -> float:
        """
        Get the value using (ignoring, actually) the
        `evaluation_context` provided.

        This method will return the real not normalized
        value.
        """
        return self.value