Ite
Create if-then-else expressions in MiniZinc
rminizinc::Expression
-> Ite
.ifs
: list of if expressions
.thens
: list of corresponding then expressions
.else
: else expression
.delete_flag
: used to delete items
.ifs
: list of if expressions
.thens
: list of corresponding then expressions
.else
: else expression
.delete_flag
: used to delete items
new()
constructor
Ite$new(ifs, thens, Else)
ifs
: list of if expressions
thens
: list of corresponding then expressions
Else
: else expression
getIfs()
get the if expression list
Ite$getIfs()
getThens()
get the then expression list
Ite$getThens()
setIfsThens()
set the if and then expression list
Ite$setIfsThens(ifs, thens)
ifs
: expression list to be set
thens
: expression list to be set
getIf()
get the ith if expression
Ite$getIf(i)
i
: index
setIf()
set the ith if expression
Ite$setIf(i, expIf)
i
: index
expIf
: if expression to be set
getThen()
get the ith then expression
Ite$getThen(i)
i
: index
setThen()
set the ith then expression
Ite$setThen(i, expThen)
i
: index
expThen
: then expression to be set
getElse()
get the else expression
Ite$getElse()
setElse()
get the else expression
Ite$setElse(expElse)
expElse
: else expression to be set
c_str()
get the MiniZinc representation
Ite$c_str()
getDeleteFlag()
delete flag for internal use
Ite$getDeleteFlag()
delete()
delete the assignment item
Ite$delete()
clone()
The objects of this class are cloneable with this method.
Ite$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links