org.holtz.zoe.zoel
Interface ZoelVMHost

All Known Implementing Classes:
Bug, Phene

public interface ZoelVMHost

An entity that uses a ZoelVM to execute Zoel code and interact with its World.

Author:
Brian Holtz

Method Summary
 ZoelVM.Turn execute(Operator op, Literal arg)
           
 Literal get(Literal key)
           
 Literal get(RegisterReference arg)
           
 Expression implicitArgOf(Operator op)
          The implicit argument, if any, of an Operator.
 int maxDataSize()
           
 int maxStepsPerTurn()
           
 Literal put(Literal key, Literal val)
           
 java.util.Random random()
           
 java.lang.String tracePrefix()
           
 World world()
           
 

Method Detail

random

java.util.Random random()

world

World world()

maxDataSize

int maxDataSize()

maxStepsPerTurn

int maxStepsPerTurn()

tracePrefix

java.lang.String tracePrefix()

get

Literal get(RegisterReference arg)

get

Literal get(Literal key)

put

Literal put(Literal key,
            Literal val)

execute

ZoelVM.Turn execute(Operator op,
                    Literal arg)

implicitArgOf

Expression implicitArgOf(Operator op)
The implicit argument, if any, of an Operator.

Parameters:
op - The Operator.
Returns:
A RegisterReference or Literal, or null if op has no implicit argument.