Merge branch 'development' of https://gitlab.lrz.de/lrr-tum/students/eragp-misim...
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / snippets / highlevelstatehandlers / standard / subcomponent / SubcomponentHighLevelStateHandler.java
1 package net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.subcomponent;
2
3 import com.google.gson.JsonObject;
4
5 import net.mograsim.logic.model.snippets.HighLevelStateHandler;
6
7 public interface SubcomponentHighLevelStateHandler
8 {
9         /**
10          * Gets the current value of the given high level state of the subcomponent represented by this SubcomponentHighLevelStateHandler.<br>
11          * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
12          * 
13          * @author Daniel Kirschten
14          */
15         public Object getHighLevelState(String subStateID);
16
17         /**
18          * Sets the given high level state of the subcomponent represented by this SubcomponentHighLevelStateHandler to the given value.<br>
19          * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
20          * 
21          * @author Daniel Kirschten
22          */
23         public void setHighLevelState(String subStateID, Object newState);
24
25         public static class SubcomponentHighLevelStateHandlerParams
26         {
27                 public String id;
28                 public JsonObject params;
29         }
30 }