Logo GenPRES

PerTimeAdjust Module

Wraps an order variable as an adjusted quantity per time, with the name part ptm_adj, and applies the order variable functions to it.

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: PerTimeAdjust -> PerTimeAdjust

Apply a function to the OrderVariable in a PerTimeAdjust

f : OrderVariable -> OrderVariable
Returns: PerTimeAdjust -> PerTimeAdjust

applyConstraints

Full Usage: applyConstraints

Returns: PerTimeAdjust -> PerTimeAdjust

Apply the constraints of a PerTimeAdjust to the OrderVariable Variable

Returns: PerTimeAdjust -> PerTimeAdjust

applyOnlyMaxConstraints

Full Usage: applyOnlyMaxConstraints

Returns: PerTimeAdjust -> PerTimeAdjust

convertFirstUnit u

Full Usage: convertFirstUnit u

Parameters:
Returns: PerTimeAdjust -> PerTimeAdjust

Convert the first unit of a PerTimeAdjust (e.g., mg/kg/day -> g/kg/day)

u : Unit
Returns: PerTimeAdjust -> PerTimeAdjust

convertTimeUnit u

Full Usage: convertTimeUnit u

Parameters:
Returns: PerTimeAdjust -> PerTimeAdjust

Convert the time unit of a PerTimeAdjust (e.g., mg/kg/day -> mg/kg/week)

u : Unit
Returns: PerTimeAdjust -> PerTimeAdjust

create n un adj tu

Full Usage: create n un adj tu

Parameters:
    n : Name - The Name of the PerTimeAdjust
    un : Unit - The Unit of the PerTimeAdjust
    adj : Unit - The Adjust Unit of the PerTimeAdjust
    tu : Unit - The Time Unit of the PerTimeAdjust

Returns: PerTimeAdjust

Create a PerTimeAdjust with name n

n : Name

The Name of the PerTimeAdjust

un : Unit

The Unit of the PerTimeAdjust

adj : Unit

The Adjust Unit of the PerTimeAdjust

tu : Unit

The Time Unit of the PerTimeAdjust

Returns: PerTimeAdjust

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: PerTimeAdjust

Create a PerTimeAdjust from a Dto

dto : Dto
Returns: PerTimeAdjust

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> PerTimeAdjust -> PerTimeAdjust

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

Returns: OrderVariable list -> PerTimeAdjust -> PerTimeAdjust

hasConstraints

Full Usage: hasConstraints

Returns: PerTimeAdjust -> bool

Check whether a PerTimeAdjust has constraints

Returns: PerTimeAdjust -> bool

hasNormValue

Full Usage: hasNormValue

Returns: PerTimeAdjust -> bool
Returns: PerTimeAdjust -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: PerTimeAdjust -> bool

Check whether a PerTimeAdjust is non-zero positive

Returns: PerTimeAdjust -> bool

isSolved

Full Usage: isSolved

Returns: PerTimeAdjust -> bool

Check whether a PerTimeAdjust is solved

Returns: PerTimeAdjust -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: PerTimeAdjust -> bool

Check whether a PerTimeAdjust is within its constraints

useCalc : bool
Returns: PerTimeAdjust -> bool

name

Full Usage: name

Returns: string
Returns: string

setNthValue nth

Full Usage: setNthValue nth

Parameters:
    nth : int

Returns: PerTimeAdjust -> PerTimeAdjust

Set the variable to its nth value, counted from 0.

nth : int
Returns: PerTimeAdjust -> PerTimeAdjust

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: PerTimeAdjust -> PerTimeAdjust

Set a PerTimeAdjust to non-zero positive values

Returns: PerTimeAdjust -> PerTimeAdjust

toDto

Full Usage: toDto

Returns: PerTimeAdjust -> Dto

Create a Dto for a PerTimeAdjust

Returns: PerTimeAdjust -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a PerTimeAdjust

arg0 : PerTimeAdjust
Returns: OrderVariable

toString

Full Usage: toString

Returns: PerTimeAdjust -> string
Returns: PerTimeAdjust -> string

toStringWithConstraints

Full Usage: toStringWithConstraints

Returns: PerTimeAdjust -> string

Get a string representation of a PerTimeAdjust (including constraints)

Returns: PerTimeAdjust -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> PerTimeAdjust -> string

Get a ValueUnit Markdown representation of a PerTimeAdjust

Returns: int -> PerTimeAdjust -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> PerTimeAdjust -> string

Get a ValueUnit string representation of a PerTimeAdjust

Returns: int -> PerTimeAdjust -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: PerTimeAdjust -> string option

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

Returns: PerTimeAdjust -> string option

Type something to start searching.