| Generator {rminizinc} | R Documentation |
Generator
Description
Create a generator in MiniZinc
Super class
rminizinc::Expression -> Generator
Public fields
.declsvariable declarations
.inin expression
wherewhere expression
.delete_flagused to delete items
Active bindings
.declsvariable declarations
.inin expression
wherewhere expression
.delete_flagused to delete items
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
Generator$new(decls, IN = NULL, where = NULL)
Arguments
declslist of variable declarations
INthe in expression of generator
wherethe where expression of generator
Method getIn()
get the in expression
Usage
Generator$getIn()
Method setIn()
set the in expression
Usage
Generator$setIn(expIn)
Arguments
expInexpression to be set
Method getWhere()
get the where expression
Usage
Generator$getWhere()
Method setWhere()
get the where expression
Usage
Generator$setWhere(expWhere)
Arguments
expWherewhere expression (or NULL)
Method getDecl()
get the ith declaration
Usage
Generator$getDecl(i)
Arguments
iindex
Method setDecl()
get the ith declaration
Usage
Generator$setDecl(i, decl)
Arguments
iindex
decldeclaration to be set
Method c_str()
get the MiniZinc representation
Usage
Generator$c_str()
Method getDeleteFlag()
delete flag for internal use
Usage
Generator$getDeleteFlag()
Method delete()
delete the assignment item
Usage
Generator$delete()
Method clone()
The objects of this class are cloneable with this method.
Usage
Generator$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
newGen = Generator$new(IN = IntSetDecl(name = "SET", kind = "par"),
decls = list(IntDecl(name = "i", kind = "par")))
[Package rminizinc version 0.0.8 Index]