The final restructured version for automatic build using maven tycho
[Mograsim.git] / net.mograsim.logic.model.am2900 / test / net / mograsim / logic / model / am2900 / am2904 / Am2904Testbench.java
diff --git a/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/am2904/Am2904Testbench.java b/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/am2904/Am2904Testbench.java
deleted file mode 100644 (file)
index e46561d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-package net.mograsim.logic.model.am2900.am2904;
-
-import net.haspamelodica.swt.helper.gcs.GeneralGC;
-import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
-import net.mograsim.logic.core.types.Bit;
-import net.mograsim.logic.core.types.BitVector;
-import net.mograsim.logic.model.SimpleLogicUIStandalone;
-import net.mograsim.logic.model.SimpleLogicUIStandalone.VisualisationObjects;
-import net.mograsim.logic.model.am2900.Am2900Loader;
-import net.mograsim.logic.model.model.LogicModelModifiable;
-import net.mograsim.logic.model.model.components.atomic.ModelManualSwitch;
-import net.mograsim.logic.model.model.components.submodels.SubmodelComponent;
-import net.mograsim.logic.model.serializing.DeserializedSubmodelComponent;
-import net.mograsim.logic.model.serializing.IdentifyParams;
-import net.mograsim.logic.model.serializing.IndirectModelComponentCreator;
-import net.mograsim.logic.model.snippets.Renderer;
-
-public class Am2904Testbench
-{
-       public static void main(String[] args)
-       {
-               Am2900Loader.setup();
-               SimpleLogicUIStandalone.executeVisualisation(Am2904Testbench::create, Am2904Testbench::beforeRun);
-       }
-
-       public static void create(LogicModelModifiable model)
-       {
-               // TODO replace with proper LogicModel deserialization
-               DeserializedSubmodelComponent testbench = (DeserializedSubmodelComponent) IndirectModelComponentCreator.createComponent(model,
-                               "jsonfile:Am2904Testbench.json", "testbench");
-               testbench.setSize(1000, 1000);
-               testbench.setOutlineRenderer(new Renderer()
-               {
-                       @Override
-                       public String getIDForSerializing(IdentifyParams idParams)
-                       {
-                               return null;
-                       }
-
-                       @Override
-                       public Void getParamsForSerializing(IdentifyParams idParams)
-                       {
-                               return null;
-                       }
-
-                       @Override
-                       public void render(GeneralGC gc, Rectangle visibleRegion)
-                       {
-                               // do nothing
-                       }
-               });
-       }
-
-       public static void beforeRun(VisualisationObjects vis)
-       {
-               ((SubmodelComponent) vis.model.getComponentsByName().get("testbench")).submodel.getComponentsByName().values().forEach(c ->
-               {
-                       if (c instanceof ModelManualSwitch)
-                       {
-                               ModelManualSwitch cCasted = (ModelManualSwitch) c;
-                               cCasted.setHighLevelState("out", BitVector.of(Bit.ZERO, cCasted.logicWidth));
-                       }
-               });
-       }
-}
\ No newline at end of file