gnu.prolog.vm.interpreter.instruction
Class IAllocate
java.lang.Object
   gnu.prolog.vm.interpreter.instruction.Instruction
gnu.prolog.vm.interpreter.instruction.Instruction
       gnu.prolog.vm.interpreter.instruction.IAllocate
gnu.prolog.vm.interpreter.instruction.IAllocate
- All Implemented Interfaces: 
- Installable
- public class IAllocate 
- extends Instruction
allocate environment instruction
| Field Summary | 
|  int | environmentSizesize of environment
 | 
|  int | reservedreserved fields, fields are reserved for saved choice points and arguments,
 reserved fields are included in environment size but they are not
 initilized with unbound variables
 | 
 
 
| Constructor Summary | 
| IAllocate(int environmentSize,
          int reserved)
 | 
 
 
 
 
environmentSize
public int environmentSize
- size of environment
 
 
reserved
public int reserved
- reserved fields, fields are reserved for saved choice points and arguments,
 reserved fields are included in environment size but they are not
 initilized with unbound variables
 
 
IAllocate
public IAllocate(int environmentSize,
                 int reserved)
toString
public String toString()
- convert instruction to string
 
- 
- Overrides:
- toStringin class- Object
 
- 
 
execute
public int execute(ExecutionState state,
                   BacktrackInfo bi)
            throws PrologException
- execute call instruction within specified sate
 
- 
- Specified by:
- executein class- Instruction
 
- 
- Parameters:
- state- state within which instruction will be executed
- Returns:
- instruction to caller how to execute next instruction
- Throws:
- PrologException- if code is throwing prolog exception