Logo GenPRES

Count Module

Wraps an order variable as a count, with the name part cnt, and applies the order variable functions to it.

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: Count -> Count

Apply a function to the OrderVariable in a Count

f : OrderVariable -> OrderVariable
Returns: Count -> Count

applyConstraints

Full Usage: applyConstraints

Returns: Count -> Count

Apply the constraints of a Count to the OrderVariable Variable

Returns: Count -> Count

count Item

Full Usage: count Item

Parameters:
Returns: Count

Create a Count from an OrderVariable

Item : OrderVariable
Returns: Count

create n

Full Usage: create n

Parameters:
Returns: Count

Create a Count with name n

n : Name
Returns: Count

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Count

Create a Count from a Dto

dto : Dto
Returns: Count

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> Count -> Count

Replaces a Count with the OrderVariable of the same name from a list, when the list has one.

Returns: OrderVariable list -> Count -> Count

hasConstraints

Full Usage: hasConstraints

Returns: Count -> bool

Check whether a Count has Constraints that are not non-zero positive and not empty

Returns: Count -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: Count -> bool

Check whether a Count is non-zero positive

Returns: Count -> bool

isSolved

Full Usage: isSolved

Returns: Count -> bool

Check whether a Count is solved

Returns: Count -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: Count -> bool

Check whether a Count is within its constraints

useCalc : bool
Returns: Count -> bool

name

Full Usage: name

Returns: string
Returns: string

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: Count -> Count

Set a Count to non-zero positive values

Returns: Count -> Count

toDto

Full Usage: toDto

Returns: Count -> Dto

Create a Dto for a Count

Returns: Count -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a Count

arg0 : Count
Returns: OrderVariable

toString

Full Usage: toString

Returns: Count -> string

Turn a Count to a string

Returns: Count -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> Count -> string

Get a ValueUnit Markdown representation of a Count

Returns: int -> Count -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> Count -> string

Get a ValueUnit string representation of a Count

Returns: int -> Count -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: Count -> string option

Gets the value set of a Count as a Dutch string; None without a value set.

Returns: Count -> string option

Type something to start searching.