♻️ Move output generation to state
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / State.java
index fe7f8ea..bda5bf5 100644 (file)
 
 package net.pterodactylus.rhynodge;
 
+import javax.annotation.Nonnull;
+
+import net.pterodactylus.rhynodge.output.Output;
+
 /**
  * Defines the current state of a system.
  *
@@ -43,6 +47,8 @@ public interface State {
         */
        boolean success();
 
+       boolean isEmpty();
+
        /**
         * Returns the number of consecutive failures. This method only returns a
         * meaningful number iff {@link #success()} returns {@code false}. If
@@ -74,4 +80,7 @@ public interface State {
         */
        Throwable exception();
 
+       @Nonnull
+       Output output(Reaction reaction);
+
 }