1 package net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.subcomponent;
3 import com.google.gson.JsonElement;
5 import net.mograsim.logic.model.serializing.JSONSerializable;
6 import net.mograsim.logic.model.snippets.HighLevelStateHandler;
8 public interface SubcomponentHighLevelStateHandler extends JSONSerializable
11 * Gets the current value of the given high level state of the subcomponent represented by this SubcomponentHighLevelStateHandler.<br>
12 * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
14 * @author Daniel Kirschten
16 public Object getHighLevelState(String subStateID);
19 * Sets the given high level state of the subcomponent represented by this SubcomponentHighLevelStateHandler to the given value.<br>
20 * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
22 * @author Daniel Kirschten
24 public void setHighLevelState(String subStateID, Object newState);
26 public static class SubcomponentHighLevelStateHandlerParams
29 public JsonElement params;