Indicator derived from Configurable

This commit is contained in:
7u83 2017-11-19 15:08:27 +01:00
parent 2e34143467
commit aafe70d02b
2 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,7 @@
*/
package indicators;
import org.json.JSONObject;
import sesim.Indicator;
/**
@ -42,4 +43,15 @@ public class BaseIndicator implements Indicator{
public String getDescription() {
return "";
}
@Override
public JSONObject getConfig() {
return new JSONObject();
}
@Override
public void putConfig(JSONObject cfg) {
}
}

View File

@ -29,7 +29,7 @@ package sesim;
*
* @author 7u83 <7u83@mail.ru>
*/
public interface Indicator {
public interface Indicator extends ConfigurableInterface{
public String getName();
public String getDescription();
}