Ite {rminizinc}R Documentation

Ite

Description

Create if-then-else expressions in MiniZinc

Super class

rminizinc::Expression -> Ite

Public fields

.ifs

list of if expressions

.thens

list of corresponding then expressions

.else

else expression

.delete_flag

used to delete items

Active bindings

.ifs

list of if expressions

.thens

list of corresponding then expressions

.else

else expression

.delete_flag

used to delete items

Methods

Public methods

Inherited methods

Method new()

constructor

Usage
Ite$new(ifs, thens, Else)
Arguments
ifs

list of if expressions

thens

list of corresponding then expressions

Else

else expression


Method getIfs()

get the if expression list

Usage
Ite$getIfs()

Method getThens()

get the then expression list

Usage
Ite$getThens()

Method setIfsThens()

set the if and then expression list

Usage
Ite$setIfsThens(ifs, thens)
Arguments
ifs

expression list to be set

thens

expression list to be set


Method getIf()

get the ith if expression

Usage
Ite$getIf(i)
Arguments
i

index


Method setIf()

set the ith if expression

Usage
Ite$setIf(i, expIf)
Arguments
i

index

expIf

if expression to be set


Method getThen()

get the ith then expression

Usage
Ite$getThen(i)
Arguments
i

index


Method setThen()

set the ith then expression

Usage
Ite$setThen(i, expThen)
Arguments
i

index

expThen

then expression to be set


Method getElse()

get the else expression

Usage
Ite$getElse()

Method setElse()

get the else expression

Usage
Ite$setElse(expElse)
Arguments
expElse

else expression to be set


Method c_str()

get the MiniZinc representation

Usage
Ite$c_str()

Method getDeleteFlag()

delete flag for internal use

Usage
Ite$getDeleteFlag()

Method delete()

delete the assignment item

Usage
Ite$delete()

Method clone()

The objects of this class are cloneable with this method.

Usage
Ite$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package rminizinc version 0.0.8 Index]