Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / snippets / highlevelstatehandlers / standard / atomic / AtomicHighLevelStateHandler.java
1 package net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic;
2
3 import com.google.gson.JsonElement;
4
5 import net.mograsim.logic.model.serializing.JSONSerializable;
6 import net.mograsim.logic.model.snippets.HighLevelStateHandler;
7
8 public interface AtomicHighLevelStateHandler extends JSONSerializable
9 {
10         /**
11          * Gets the current value of the atomic high level state represented by this AtomicHighLevelStateHandler.<br>
12          * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
13          * 
14          * @author Daniel Kirschten
15          */
16         public Object getHighLevelState();
17
18         /**
19          * Sets the atomic high level state represented by this AtomicHighLevelStateHandler to the given value.<br>
20          * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
21          * 
22          * @author Daniel Kirschten
23          */
24         public void setHighLevelState(Object newState);
25
26         public static class AtomicHighLevelStateHandlerParams
27         {
28                 public String id;
29                 public JsonElement params;
30         }
31 }