X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fparams%2FSubComponentParams.java;fp=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fparams%2FSubComponentParams.java;h=8ea235f6d3f48541f729577a0f4521ea443b3f68;hb=b555e4c29e14f455d8ffbc810284c7bb44b459f9;hp=dc051140980a20e4d2a4370ba9743fcfee5febdd;hpb=b2f3d0b16783289fab229c667c18d61f84119bbd;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/params/SubComponentParams.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/params/SubComponentParams.java index dc051140..8ea235f6 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/params/SubComponentParams.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/params/SubComponentParams.java @@ -1,15 +1,18 @@ package net.mograsim.logic.ui.model.components.params; import java.io.IOException; +import java.util.Map; import net.haspamelodica.swt.helper.swtobjectwrappers.Point; public class SubComponentParams { + public String type; public final static String fileExtension = ".sc"; public double width, height; public InterfacePinParams[] interfacePins; public GeneralComponentParams composition; + public Map specialized; public static class InterfacePinParams { @@ -17,6 +20,17 @@ public class SubComponentParams public int logicWidth; } + public static class InnerWireParams + { + public InnerPinParams pin1, pin2; + public Point[] path; + } + + public static class InnerPinParams + { + public int compId, pinIndex; + } + public static SubComponentParams readJson(String path) throws IOException { return JsonHandler.readJson(path, SubComponentParams.class);