|
@@ -5,36 +5,26 @@ import java.awt.Point;
|
|
|
import java.io.FileReader;
|
|
|
import java.io.IOException;
|
|
|
import java.util.ArrayList;
|
|
|
-import java.util.Collections;
|
|
|
import java.util.HashMap;
|
|
|
-import java.util.Iterator;
|
|
|
import java.util.LinkedList;
|
|
|
import java.util.List;
|
|
|
-import java.util.stream.Collector;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import org.json.simple.parser.JSONParser;
|
|
|
-import org.json.simple.parser.ParseException;
|
|
|
-
|
|
|
import com.google.gson.Gson;
|
|
|
import com.google.gson.GsonBuilder;
|
|
|
import com.google.gson.JsonElement;
|
|
|
import com.google.gson.JsonObject;
|
|
|
import com.google.gson.JsonParser;
|
|
|
-import com.google.gson.stream.JsonReader;
|
|
|
-
|
|
|
import TypeAdapter.AbstractCpsObjectAdapter;
|
|
|
import TypeAdapter.ColorAdapter;
|
|
|
import TypeAdapter.PositionAdapter;
|
|
|
import classes.Category;
|
|
|
import classes.CpsEdge;
|
|
|
-import classes.CpsNode;
|
|
|
import classes.CpsUpperNode;
|
|
|
import classes.AbstractCpsObject;
|
|
|
import classes.HolonElement;
|
|
|
import classes.HolonObject;
|
|
|
import classes.HolonSwitch;
|
|
|
-import classes.HolonTransformer;
|
|
|
import classes.IdCounter;
|
|
|
import classes.Position;
|
|
|
import ui.model.Model;
|
|
@@ -200,7 +190,6 @@ public class LoadController {
|
|
|
CpsEdge temp = gson.fromJson(object.get("properties"), CpsEdge.class);
|
|
|
initCpsEdge(temp);
|
|
|
temp.setA(objDispatch.get(object.get("A").getAsInt()));
|
|
|
- System.out.println(temp.getA());
|
|
|
temp.setB(objDispatch.get(object.get("B").getAsInt()));
|
|
|
|
|
|
int sav = 0;
|