Renamed ViewModel to LogicModel
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / ModelTriStateBuffer.java
index 04f7cae..45e653c 100644 (file)
@@ -6,13 +6,13 @@ import com.google.gson.JsonSyntaxException;
 
 import net.haspamelodica.swt.helper.gcs.GeneralGC;
 import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
-import net.mograsim.logic.model.model.ViewModelModifiable;
+import net.mograsim.logic.model.model.LogicModelModifiable;
 import net.mograsim.logic.model.model.components.ModelComponent;
 import net.mograsim.logic.model.model.components.Orientation;
 import net.mograsim.logic.model.model.components.OrientationCalculator;
 import net.mograsim.logic.model.model.wires.Pin;
 import net.mograsim.logic.model.model.wires.PinUsage;
-import net.mograsim.logic.model.modeladapter.ViewLogicModelAdapter;
+import net.mograsim.logic.model.modeladapter.LogicCoreAdapter;
 import net.mograsim.logic.model.modeladapter.componentadapters.TriStateBufferAdapter;
 import net.mograsim.logic.model.serializing.IdentifyParams;
 import net.mograsim.logic.model.serializing.IndirectModelComponentCreator;
@@ -32,12 +32,12 @@ public class ModelTriStateBuffer extends ModelComponent
        private ModelTriStateBufferParams params;
        private OrientationCalculator oc;
 
-       public ModelTriStateBuffer(ViewModelModifiable model, ModelTriStateBufferParams params)
+       public ModelTriStateBuffer(LogicModelModifiable model, ModelTriStateBufferParams params)
        {
                this(model, params, null);
        }
 
-       public ModelTriStateBuffer(ViewModelModifiable model, ModelTriStateBufferParams params, String name)
+       public ModelTriStateBuffer(LogicModelModifiable model, ModelTriStateBufferParams params, String name)
        {
                super(model, name);
                this.params = params;
@@ -100,7 +100,7 @@ public class ModelTriStateBuffer extends ModelComponent
 
        static
        {
-               ViewLogicModelAdapter.addComponentAdapter(new TriStateBufferAdapter());
+               LogicCoreAdapter.addComponentAdapter(new TriStateBufferAdapter());
                IndirectModelComponentCreator.setComponentSupplier(ModelTriStateBuffer.class.getName(), (m, p, n) ->
                {
                        ModelTriStateBufferParams params = JsonHandler.fromJsonTree(p, ModelTriStateBufferParams.class);