pywr.parameters.ParameterThresholdParameter

class pywr.parameters.ParameterThresholdParameter(model, Parameter param, *args, **kwargs)

Returns one of two values depending on the value of a Parameter

Parameters
recorderpywr.core.AbstractNode
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs)

Initialize self.

after(self)

before(self)

finish(self)

get_all_indices(self)

get_all_values(self)

get_double_lower_bounds(self)

get_double_upper_bounds(self)

get_double_variables(self)

get_index(self, ScenarioIndex scenario_index)

get_integer_lower_bounds(self)

get_integer_upper_bounds(self)

get_integer_variables(self)

get_value(self, ScenarioIndex scenario_index)

index(self, Timestep timestep, …)

Returns 1 if the predicate evalutes True, else 0

load(type cls, model, data)

register(type cls)

reset(self)

set_double_variables(self, double[)

set_integer_variables(self, int[)

setup(self)

unregister(type cls)

value(self, Timestep timestep, …)

Returns a value from the values attribute, using the index

Attributes

children

comment

comment: unicode

double_size

double_size: ‘int’

integer_size

integer_size: ‘int’

is_variable

is_variable: ‘bool’

model

name

param

param: pywr.parameters._parameters.Parameter

parents

ratchet

ratchet: ‘bool’

size

threshold