import hippie.interfaces as interfaces


class Evaporator(interfaces.BaseStrategy):

    def __init__(self, rate):
        if not 0 < rate < 1:
            raise ValueError
        self._rate = rate

    def evaporate(self, pheromones):
        return (1 - self._rate) * pheromones

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}

    def __str__(self):
        return f'Evaporator rate={self._rate}'

7801d77ecbcba045328658c5878adfd014d0a626
<mask token>


class Evaporator(interfaces.BaseStrategy):
    <mask token>
    <mask token>

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}
    <mask token>

<mask token>


class Evaporator(interfaces.BaseStrategy):
    <mask token>

    def evaporate(self, pheromones):
        return (1 - self._rate) * pheromones

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}
    <mask token>

<mask token>


class Evaporator(interfaces.BaseStrategy):

    def __init__(self, rate):
        if not 0 < rate < 1:
            raise ValueError
        self._rate = rate

    def evaporate(self, pheromones):
        return (1 - self._rate) * pheromones

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}
    <mask token>

<mask token>


class Evaporator(interfaces.BaseStrategy):

    def __init__(self, rate):
        if not 0 < rate < 1:
            raise ValueError
        self._rate = rate

    def evaporate(self, pheromones):
        return (1 - self._rate) * pheromones

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}

    def __str__(self):
        return f'Evaporator rate={self._rate}'

import hippie.interfaces as interfaces


class Evaporator(interfaces.BaseStrategy):

    def __init__(self, rate):
        if not 0 < rate < 1:
            raise ValueError
        self._rate = rate

    def evaporate(self, pheromones):
        return (1 - self._rate) * pheromones

    @property
    def parameters(self):
        return {'evaporation_rate': self._rate}

    def __str__(self):
        return f'Evaporator rate={self._rate}'
