From 648fc6e69e09fe4467cb6bac47934be1a7dcf0d6 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Sun, 13 Dec 2020 02:44:23 +0100 Subject: [PATCH] Added a constructor for ModelSplitterParams; added a TODO --- .../logic/model/model/components/ModelComponent.java | 1 + .../model/model/components/atomic/ModelSplitter.java | 10 ++++++++++ 2 files changed, 11 insertions(+) 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 0a9816a4..b8d9f14d 100644 --- 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 */ +// TODO split into "blueprint" and "used component" 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 5c112b11..035e359c 100644 --- 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 SplitterParams() + { + } + + public SplitterParams(int logicWidth, Orientation orientation) + { + this.logicWidth = logicWidth; + this.orientation = orientation; + } } static -- 2.17.1