X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Freactor%2FAction.java;h=650c3adbc5306ffdb451bd2bf38698fd1dc2475a;hb=13a4fe6bece23b3dd561de657cf9bb7ea307e2b6;hp=9d743b28e73dff4ef723c3bcc1247b1d5b4d07e7;hpb=42ad6ee6c9a5d0ab6a855e63ef3b8a199c9cf68e;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/reactor/Action.java b/src/main/java/net/pterodactylus/reactor/Action.java index 9d743b2..650c3ad 100644 --- a/src/main/java/net/pterodactylus/reactor/Action.java +++ b/src/main/java/net/pterodactylus/reactor/Action.java @@ -17,24 +17,22 @@ package net.pterodactylus.reactor; +import net.pterodactylus.reactor.output.Output; + /** * An action is performed when a {@link Trigger} determines that two given * {@link State}s of a {@link Query} signify a change. * - * @param - * The type of the state * @author David ‘Bombe’ Roden */ -public interface Action { +public interface Action { /** * Performs the action. * - * @param currentState - * The current state of a system - * @param previousState - * The previous state of the system + * @param output + * The output for the action */ - void execute(S currentState, S previousState); + void execute(Output output); }