- SimpleRectangularSubmodelComponent tmp = new GUIhalfadder(model);
- tmp.moveTo(1000, 50);
- RectComponentParams p = tmp.calculateRectParams();
- try
- {
- p.writeJson("HalfAdder.rc");
- p = RectComponentParams.readJson("HalfAdder.rc");
- }
- catch (IOException e)
- {
- e.printStackTrace();
- }
- tmp = new GUIfulladder(model);
- SubComponentParams pC = tmp.calculateParams();
+ SimpleRectangularSubmodelComponent tmp = new GUIfulladder(model);
+ SubmodelComponentParams pC = tmp.calculateParams();