4d2fa19ad4
* bolus-progress: wip wip wip more more Remove TODOs for extended bolus. wip cancelling Initial take on bolus cancellation. Initial take on bolus progress reporting. Add alternative SetTbrCommand for pumps with different behaviour. Formatting.
19 lines
551 B
Java
19 lines
551 B
Java
package de.jotomo.ruffyscripter.commands;
|
|
|
|
import java.util.List;
|
|
|
|
import de.jotomo.ruffyscripter.RuffyScripter;
|
|
|
|
/**
|
|
* Interface for all commands to be executed by the pump.
|
|
* <p>
|
|
* 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();
|
|
void setScripter(RuffyScripter scripter);
|
|
}
|