Logo GenPRES

Time Module

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

Functions and values

Function or value Description

apply f

Full Usage: apply f

Parameters:
Returns: Time -> Time

Apply a function to the OrderVariable in a Time

f : OrderVariable -> OrderVariable
Returns: Time -> Time

applyConstraints

Full Usage: applyConstraints

Returns: Time -> Time

Apply the constraints of a Time to the OrderVariable Variable

Returns: Time -> Time

create n un

Full Usage: create n un

Parameters:
    n : Name - The Name of the Time
    un : Unit - The Unit of the Time

Returns: Time

Create a Time

n : Name

The Name of the Time

un : Unit

The Unit of the Time

Returns: Time

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Time

Create a Time from a Dto

dto : Dto
Returns: Time

fromOrdVar

Full Usage: fromOrdVar

Returns: OrderVariable list -> Time -> Time

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

Returns: OrderVariable list -> Time -> Time

hasConstraints

Full Usage: hasConstraints

Returns: Time -> bool

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

Returns: Time -> bool

isNonZeroPositive

Full Usage: isNonZeroPositive

Returns: Time -> bool

Check whether Time is non-zero positive

Returns: Time -> bool

isSolved

Full Usage: isSolved

Returns: Time -> bool

Check whether Time is solved

Returns: Time -> bool

isWithinConstraints useCalc

Full Usage: isWithinConstraints useCalc

Parameters:
    useCalc : bool

Returns: Time -> bool

Check whether Time is within its constraints

useCalc : bool
Returns: Time -> bool

name

Full Usage: name

Returns: string
Returns: string

setMaxValue

Full Usage: setMaxValue

Returns: Time -> Time

Set the maximum value for Time

Returns: Time -> Time

setMedianValue

Full Usage: setMedianValue

Returns: Time -> Time

Set the median value for Time

Returns: Time -> Time

setMinValue

Full Usage: setMinValue

Returns: Time -> Time

Set the minimum value for Time

Returns: Time -> Time

setNthValue nth

Full Usage: setNthValue nth

Parameters:
    nth : int

Returns: Time -> Time

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

nth : int
Returns: Time -> Time

setToNonZeroPositive

Full Usage: setToNonZeroPositive

Returns: Time -> Time

Set Time to non-zero positive values

Returns: Time -> Time

time Item

Full Usage: time Item

Parameters:
Returns: Time

Create a Time from an OrderVariable

Item : OrderVariable
Returns: Time

toDto

Full Usage: toDto

Returns: Time -> Dto

Create a Dto for a Time

Returns: Time -> Dto

toOrdVar arg1

Full Usage: toOrdVar arg1

Parameters:
Returns: OrderVariable

Get the OrderVariable in a Time

arg0 : Time
Returns: OrderVariable

toString

Full Usage: toString

Returns: Time -> string

Turn a Time to a string

Returns: Time -> string

toStringWithConstraints

Full Usage: toStringWithConstraints

Returns: Time -> string

Get a string representation of a Time (including constraints)

Returns: Time -> string

toValueUnitMarkdown

Full Usage: toValueUnitMarkdown

Returns: int -> Time -> string

Get a ValueUnit Markdown representation of a Time

Returns: int -> Time -> string

toValueUnitString

Full Usage: toValueUnitString

Returns: int -> Time -> string

Get a ValueUnit string representation of a Time

Returns: int -> Time -> string

toValueUnitStringList

Full Usage: toValueUnitStringList

Returns: Time -> string option

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

Returns: Time -> string option

Type something to start searching.