AndroidAPS/app/src/main/java/de/jotomo/ruffyscripter/commands/Command.java

19 lines
551 B
Java
Raw Normal View History

package de.jotomo.ruffyscripter.commands;
import java.util.List;
import de.jotomo.ruffyscripter.RuffyScripter;
2017-07-26 15:50:07 +02:00
/**
* Interface for all commands to be executed by the pump.
2017-08-17 10:56:33 +02:00
* <p>
2017-07-26 15:50:07 +02:00
* Note on cammond methods and timing: a method shall wait before and after executing
* as necessary to not cause timing issues, so the caller can just call methods in
* sequence, letting the methods take care of waits.
*/
public interface Command {
CommandResult execute();
List<String> validateArguments();
2017-08-23 12:10:50 +02:00
void setScripter(RuffyScripter scripter);
}