BinOp
Create a binary operation expression possible binary operators are: "+", "-", "!=", "<->", ">=", "<=", "*", ">", "<", "->", "<-", "..", "/", "/", "'not'", "subset", "superset", "union", "diff", "symdiff", "intersect", "^", "div", "mod", "/", "++", "xor", "in", "="
newBinOp = BinOp$new(lhs = Int$new(2), binop = "+", rhs = Int$new(5)) newBinOp$c_str() newBinOp$setLhs(Int$new(5)) newBinOp$setOp("-") newBinOp$setRhs(Int$new(2)) newBinOp$c_str()
rminizinc::Expression
-> BinOp
.lhs_exp
: the left hand side expression
.rhs_exp
: the right hand side expression
.op
: the operator
.delete_flag
: used to delete items
.lhs_exp
: the left hand side expression
.rhs_exp
: the right hand side expression
.op
: the operator
.delete_flag
: used to delete items
new()
constructor
BinOp$new(lhs, binop, rhs)
lhs
: the left hand side expression
binop
: the binary operator to be used
rhs
: the right hand side expression
getLhs()
get the lhs expression
BinOp$getLhs()
getRhs()
get the rhs expression
BinOp$getRhs()
getOp()
get the operator
BinOp$getOp()
setOp()
set the operator
BinOp$setOp(binop)
op
: binary operator to be set
setLhs()
set the lhs expression
BinOp$setLhs(e)
e
: expression to set
setRhs()
set the rhs expression
BinOp$setRhs(e)
e
: expression to set
c_str()
return the MiniZinc representation
BinOp$c_str()
getDeleteFlag()
delete flag for internal use
BinOp$getDeleteFlag()
delete()
delete the assignment item
BinOp$delete()
clone()
The objects of this class are cloneable with this method.
BinOp$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links