Group events in type hierarchy related to the LoopPlugin.

This commit is contained in:
Johannes Mockenhaupt 2017-10-14 16:19:36 +02:00
parent 3e24a6069d
commit 9d10563bd9
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
7 changed files with 12 additions and 5 deletions

View file

@ -2,6 +2,7 @@ package info.nightscout.androidaps.events;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
/** Base class for all events posted on the event bus. */
public abstract class Event {
@Override
public String toString() {

View file

@ -0,0 +1,5 @@
package info.nightscout.androidaps.events;
/** Supeclass for all events concerned with input or output into or from the LoopPlugin. */
public abstract class EventLoop extends Event {
}

View file

@ -3,5 +3,5 @@ package info.nightscout.androidaps.events;
/**
* Created by mike on 05.06.2016.
*/
public class EventNewBG extends Event {
public class EventNewBG extends EventLoop {
}

View file

@ -3,5 +3,5 @@ package info.nightscout.androidaps.events;
/**
* Created by mike on 05.06.2016.
*/
public class EventTempBasalChange extends Event {
public class EventTempBasalChange extends EventLoop {
}

View file

@ -3,5 +3,5 @@ package info.nightscout.androidaps.events;
/**
* Created by mike on 04.06.2016.
*/
public class EventTreatmentChange extends Event {
public class EventTreatmentChange extends EventLoop {
}

View file

@ -1,4 +1,5 @@
package info.nightscout.androidaps.events;
/** Base class for events to update the UI, mostly a specific tab. */
public abstract class EventUpdateGui extends Event {
}

View file

@ -1,10 +1,10 @@
package info.nightscout.androidaps.plugins.IobCobCalculator.events;
import info.nightscout.androidaps.events.Event;
import info.nightscout.androidaps.events.EventLoop;
/**
* Created by mike on 30.04.2017.
*/
public class EventAutosensCalculationFinished extends Event {
public class EventAutosensCalculationFinished extends EventLoop {
}