projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MPROMEditor now calls its columns "Opcode" and "muPC"
[Mograsim.git]
/
plugins
/
net.mograsim.logic.model
/
src
/
net
/
mograsim
/
logic
/
model
/
snippets
/
highlevelstatehandlers
/
standard
/
subcomponent
/
SubcomponentHighLevelStateHandler.java
diff --git
a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/highlevelstatehandlers/standard/subcomponent/SubcomponentHighLevelStateHandler.java
b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/highlevelstatehandlers/standard/subcomponent/SubcomponentHighLevelStateHandler.java
index
4c82bdc
..
fdc633c
100644
(file)
--- a/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/highlevelstatehandlers/standard/subcomponent/SubcomponentHighLevelStateHandler.java
+++ b/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/snippets/highlevelstatehandlers/standard/subcomponent/SubcomponentHighLevelStateHandler.java
@@
-1,5
+1,7
@@
package net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.subcomponent;
package net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.subcomponent;
+import java.util.function.Consumer;
+
import com.google.gson.JsonElement;
import net.mograsim.logic.model.serializing.JSONSerializable;
import com.google.gson.JsonElement;
import net.mograsim.logic.model.serializing.JSONSerializable;
@@
-28,4
+30,8
@@
public interface SubcomponentHighLevelStateHandler extends JSONSerializable
public String id;
public JsonElement params;
}
public String id;
public JsonElement params;
}
+
+ public void addListener(String subStateID, Consumer<Object> stateChanged);
+
+ public void removeListener(String subStateID, Consumer<Object> stateChanged);
}
\ No newline at end of file
}
\ No newline at end of file