Logo GenPRES

Dto Module

Holds the Dto of a variable and converts a variable to and from the Dto. Raises a solver exception for an invalid name or an invalid value range.

Types and nested modules

Type/Module Description

Tests

Holds a check that a variable converted to a Dto and back equals the original variable.

Dto

The Dto representation of a Variable

Functions and values

Function or value Description

dto ()

Full Usage: dto ()

Parameters:
    () : unit

Returns: Dto
() : unit
Returns: Dto

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Variable

Create a Variable from a Dto and raise a DtoException if this fails.

dto : Dto
Returns: Variable

isUnr dto

Full Usage: isUnr dto

Parameters:
Returns: bool
dto : Dto
Returns: bool

toDto v

Full Usage: toDto v

Parameters:
Returns: Dto

Create a Dto from a Variable.

v : Variable
Returns: Dto

toString exact

Full Usage: toString exact

Parameters:
    exact : bool

Returns: Dto -> string

Return a string representation of a Dto

exact : bool
Returns: Dto -> string

withName n

Full Usage: withName n

Parameters:
    n : string

Returns: Dto
n : string
Returns: Dto

Type something to start searching.