public class construct_allocations
extends DefaultInternalAction
Use:
jmadem.construct_allocations( TaskWithAllParameters, [Slots], [ [ElementValues] | ListOfElementValues ], AllocationsOut )
Example:
jmadem.construct_allocations( use(coffeeMachine, age), [age], [ [doug, norman] ], [use(cofeeMachine, doug), use(cofeeMachine, norman)] )
| Modifier and Type | Field and Description |
|---|---|
(package private) MADeMAgArch |
agArch |
(package private) ListTerm |
allocs |
(package private) java.util.List<Term> |
elements |
(package private) ListTerm |
fFuncs |
(package private) Literal |
instantiated_task |
(package private) java.util.logging.Logger |
logger |
(package private) java.util.List<Term> |
params |
private static long |
serialVersionUID |
(package private) java.util.List<Term> |
slots |
(package private) Literal |
task |
| Constructor and Description |
|---|
construct_allocations() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(TransitionSystem ts,
Unifier un,
Term[] args) |
(package private) void |
instantiate_task(int id_params,
int id_slots)
Constructs the set of allocations by instantiating the slots with the
elements passed to the internal action.
|
private static final long serialVersionUID
java.util.logging.Logger logger
Literal task
Literal instantiated_task
java.util.List<Term> params
java.util.List<Term> slots
java.util.List<Term> elements
ListTerm allocs
ListTerm fFuncs
MADeMAgArch agArch
public java.lang.Object execute(TransitionSystem ts,
Unifier un,
Term[] args)
throws java.lang.Exception
java.lang.Exceptionvoid instantiate_task(int id_params,
int id_slots)
id_params - index over the parameters of the taskid_slots - index over the slots being considered