Added a constructor for ModelSplitterParams; added a TODO
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Sun, 13 Dec 2020 01:44:23 +0000 (02:44 +0100)
committerDaniel 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
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelSplitter.java

index 0a9816a..b8d9f14 100644 (file)
@@ -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
 {
        /**
index 5c112b1..035e359 100644 (file)
@@ -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