Call {rminizinc} | R Documentation |
Call
Description
Create function calls in MiniZinc
Super class
rminizinc::Expression
-> Call
Public fields
.id
the function id
.lExp
list of expressions
.delete_flag
used to delete items
Active bindings
.id
the function id
.lExp
list of expressions
.delete_flag
used to delete items
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
Call$new(fnName, args)
Arguments
fnName
function name
args
the list of expressions
Method getName()
get the function id/string
Usage
Call$getName()
Method setName()
get the function id/string
Usage
Call$setName(name)
Arguments
name
new function name
Method nargs()
get the number of arguments
Usage
Call$nargs()
Method getArgs()
get the expression list
Usage
Call$getArgs()
Method setArgs()
set the expression list
Usage
Call$setArgs(args)
Arguments
args
list of expressions to be set
Method getArg()
get the expression based on index
Usage
Call$getArg(i)
Arguments
i
index
Method setArg()
set argument i
Usage
Call$setArg(e, i)
Arguments
e
expression
i
index
Method c_str()
return the MiniZinc representation
Usage
Call$c_str()
Method getDeleteFlag()
delete flag for internal use
Usage
Call$getDeleteFlag()
Method delete()
delete the assignment item
Usage
Call$delete()
Method clone()
The objects of this class are cloneable with this method.
Usage
Call$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
newCall = Call$new(fnName = "sum", args = list(Int$new(2), Int$new(5)))
newCall$c_str()
[Package rminizinc version 0.0.8 Index]