Array Access
Create ArrayAccess elements in MiniZinc
vDecl1 = IntSetDecl(name = "SET", kind = "par") vDecl2 = IntArrDecl(name = "profit", kind = "par", ndim = 1, ind = list(vDecl1$getId())) newArrayAccess = ArrayAccess$new(v = vDecl2$getId(), args = list(IntDecl(name = "i", kind = "par")))
rminizinc::Expression
-> ArrayAccess
.v
: the id/value of array
.args
: arguments of the array
.delete_flag
: used to delete items
.v
: the id/value of array
.args
: arguments of the array
.delete_flag
: used to delete items
new()
constructor
ArrayAccess$new(v, args)
v
: the value/identifier of variable decl
args
: the array indices
getV()
get the array access value
ArrayAccess$getV()
setV()
set the array access value
ArrayAccess$setV(val)
val
: new array access value
nargs()
get the number of arguments
ArrayAccess$nargs()
getArgs()
get the arguments
ArrayAccess$getArgs()
setArgs()
set the arguments
ArrayAccess$setArgs(val)
val
: new arguments
c_str()
return the MiniZinc representation
ArrayAccess$c_str()
getDeleteFlag()
delete flag for internal use
ArrayAccess$getDeleteFlag()
delete()
delete the assignment item
ArrayAccess$delete()
clone()
The objects of this class are cloneable with this method.
ArrayAccess$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links