tisane.variable.NumberValue

class tisane.variable.NumberValue(value)

Bases: object

Wrapper class for expressing values for the number of repetitions of a condition, etc.

Parameters

value (int) – Description of parameter value.

value
Type

int

Methods

per([cardinality, number_of_instances])

Express a per relationship on a given NumberValue

get_value

is_equal_to_one

is_greater_than_one

per(cardinality=None, number_of_instances=None)

Express a per relationship on a given NumberValue

Even though cardinality and number_of_instances are both optional parameters, this method requires exactly one of them to be specified – you currently cannot specify both.

Parameters
Returns

An object representing a “_ per _” relationship.

Return type

tisane.variable.Per