Interface ProtelisProgram

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    SimpleProgramImpl

    public interface ProtelisProgram
    extends java.io.Serializable
    Executable representation of a Protelis 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