Class BasicProgram

    • Constructor Detail

      • BasicProgram

        public BasicProgram()
    • Method Detail

      • reset

        public void reset()
        Description copied from interface: BuildableProgram
        Calling this method will remove all previously built code from the program. This method should be called if the same BuildableProgram object is used to execute different programs, one after the other.

        Without calling this method the program would be concatenated and the second execution would contain the program codes of the first program and after that the second.

      • addCommand

        public void addCommand​(Command command)
        Description copied from interface: BuildableProgram
        Add a new command to the list of commands.
        Parameters:
        command - parameter
      • getCommands

        public java.util.Collection<Command> getCommands()
      • getNamedCommandNames

        public java.lang.Iterable<java.lang.String> getNamedCommandNames()
      • getNamedCommand

        public Command getNamedCommand​(java.lang.String name)