projects
/
Mograsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d43c13
)
Added a constructor for ModelSplitterParams; added a TODO
author
Daniel Kirschten
<daniel.kirschten@gmx.de>
Sun, 13 Dec 2020 01:44:23 +0000
(
02:44
+0100)
committer
Daniel Kirschten
<daniel.kirschten@gmx.de>
Sun, 13 Dec 2020 01:44:23 +0000
(
02:44
+0100)
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/ModelComponent.java
patch
|
blob
|
history
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java
patch
|
blob
|
history
diff --git
a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/ModelComponent.java
b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/ModelComponent.java
index
0a9816a
..
b8d9f14
100644
(file)
--- a/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/ModelComponent.java
+++ b/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/ModelComponent.java
@@
-25,6
+25,7
@@
import net.mograsim.logic.model.snippets.highlevelstatehandlers.DefaultHighLevel
*
* @author Daniel Kirschten
*/
*
* @author Daniel Kirschten
*/
+// TODO split into "blueprint" and "used component"
public abstract class ModelComponent implements JSONSerializable
{
/**
public abstract class ModelComponent implements JSONSerializable
{
/**
diff --git
a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java
b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java
index
5c112b1
..
035e359
100644
(file)
--- a/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java
+++ b/
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java
@@
-148,6
+148,16
@@
public class ModelSplitter extends ModelComponent
{
public int logicWidth;
public Orientation orientation;
{
public int logicWidth;
public Orientation orientation;
+
+ public SplitterParams()
+ {
+ }
+
+ public SplitterParams(int logicWidth, Orientation orientation)
+ {
+ this.logicWidth = logicWidth;
+ this.orientation = orientation;
+ }
}
static
}
static