Learn R Programming

rminizinc (version 0.0.8)

Float: Float

Description

Create a float in MiniZinc

Arguments

Super class

rminizinc::Expression -> Float

Public fields

.value

object of class expression

Active bindings

.value

object of class expression

Methods

Public methods

Method new()

constructor

Usage

Float$new(val)

Arguments

val

the float value

Method getFloatVal()

get the float value

Usage

Float$getFloatVal()

Method setFloatVal()

set the float value

Usage

Float$setFloatVal(val)

Arguments

val

value to be set

Method c_str()

get the MiniZinc representation

Usage

Float$c_str()

Method clone()

The objects of this class are cloneable with this method.

Usage

Float$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# NOT RUN {
newFloat = Float$new(1.5)
newFloat$c_str()
newFloat$setFloatVal(newFloat$getFloatVal() + 2.5)
newFloat$c_str()
# }

Run the code above in your browser using DataLab