Package org.protelis.vm
Interface ProtelisProgram
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
SimpleProgramImpl
public interface ProtelisProgram extends java.io.SerializableExecutable representation of a Protelis program.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcompute(ExecutionContext context)Execute one round of computation of this Protelis program.java.lang.StringgetName()The name of the program.
-
-
-
Method Detail
-
compute
java.lang.Object compute(ExecutionContext context)
Execute one round of computation of this Protelis program.- Parameters:
context- The virtual machine environment in which computation will take place.- Returns:
- the result of the program's evaluation
-
getName
java.lang.String getName()
The name of the program.- Returns:
- Name of the program, or some default name if no specific name is provided
-
-