Logo GenPRES

Name Module

Creates the Name of a solver variable from strings joined with dots, adds a string to a Name and splits a Name into its parts.

Functions and values

Function or value Description

add s n

Full Usage: add s n

Parameters:
    s : string
    n : Name

Returns: Name

Adds a string to a Name after an underscore. Raises a NameException when the name is not valid.

s : string
n : Name
Returns: Name

addWith

Full Usage: addWith

Returns: string
Returns: string

concatWith

Full Usage: concatWith

Returns: string
Returns: string

create ns

Full Usage: create ns

Parameters:
    ns : string seq

Returns: Name

Creates a Name from a list of strings, joined with a dot between square brackets. Raises a NameException when the name is not valid.

ns : string seq
Returns: Name

fromString

Full Usage: fromString

Returns: string -> Name

Creates a Name from a string. Raises a NameException when the name is not valid.

Returns: string -> Name

toString

Full Usage: toString

Returns: Name -> string

Returns the string of a Name.

Returns: Name -> string

toStringList

Full Usage: toStringList

Returns: Name -> string list

Splits a Name into its parts: the square brackets removed, split at every dot and underscore.

Returns: Name -> string list

Type something to start searching.