Command stubs.

This commit is contained in:
Johannes Mockenhaupt 2017-08-23 13:19:51 +02:00
parent 9349662f8e
commit 6b19759a9f
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
3 changed files with 46 additions and 5 deletions

View file

@ -12,12 +12,12 @@ import java.util.Map;
import de.jotomo.ruffyscripter.RuffyScripter;
public class GetBasalCommand extends BaseCommand {
private static final Logger log = LoggerFactory.getLogger(GetBasalCommand.class);
public class GetBasalRateProfileCommand extends BaseCommand {
private static final Logger log = LoggerFactory.getLogger(GetBasalRateProfileCommand.class);
private RuffyScripter scripter;
public GetBasalCommand() {}
public GetBasalRateProfileCommand() {}
@Override
public List<String> validateArguments() {
@ -94,8 +94,8 @@ public class GetBasalCommand extends BaseCommand {
// case ERROR:
// case AFTER:
// scripter.goToMainMenuScreen(MenuType.MAIN_MENU,2000);
// synchronized(GetBasalCommand.this) {
// GetBasalCommand.this.notify();
// synchronized(GetBasalRateProfileCommand.this) {
// GetBasalRateProfileCommand.this.notify();
// }
// break;
// }

View file

@ -0,0 +1,24 @@
package de.jotomo.ruffyscripter.commands;
import java.util.List;
public class GetReservoirLevelCommand extends BaseCommand {
@Override
public CommandResult execute() {
// TODO stub
// watch out, level goes into PumpState, which is usually set by RuffyScripter
// after a command ran, unless a command has already set it ... I don't like
// that, it's too implicit ...
// also, maybe ditch this command and add a parameter to GetPumpStateCommand to also
// read the reservoir level if possible (pump must be in a state to accept commands
// (possible on main, stop ...)
return null;
}
@Override
public List<String> validateArguments() {
// TODO stub
return null;
}
}

View file

@ -0,0 +1,17 @@
package de.jotomo.ruffyscripter.commands;
import java.util.List;
public class SetBasalRateProfileCommand extends BaseCommand {
@Override
public CommandResult execute() {
// TODO stub
return null;
}
@Override
public List<String> validateArguments() {
// TODO stub
return null;
}
}