]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Save solver module name for later use after mapping 74/1974/2
authorjsimomaa <jani.simomaa@gmail.com>
Mon, 30 Jul 2018 12:39:20 +0000 (15:39 +0300)
committerJani Simomaa <jani.simomaa@semantum.fi>
Mon, 30 Jul 2018 12:40:01 +0000 (12:40 +0000)
gitlab #4

Change-Id: I48e3b96eab01bd29435993ff4bf5d9f7d0076500

org.simantics.district.network.ontology/graph.tg
org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph
org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkEdgeNode.java

index 2bda23f8d57b1aa466c0c304240c0d739b4338d0..534183308172fb8f9284eef9f9b3a99df10272e3 100644 (file)
Binary files a/org.simantics.district.network.ontology/graph.tg and b/org.simantics.district.network.ontology/graph.tg differ
index 64dbb60f89f6be5c06e581af81842d59145eed79..5c165085b208adb44946bab9d98043eb83db29b3 100644 (file)
@@ -56,6 +56,11 @@ DN.HasId <R L0.HasProperty : SEL.GenericParameterType
     L0.HasRange L0.String
     L0.readOnly false
 
+DN.HasSolverRVI <R L0.HasProperty
+    L0.HasLabel "Solver RVI"
+    L0.HasRange L0.String
+    L0.readOnly true
+
 DN.Vertex.HasElevation <R L0.HasProperty : SEL.GenericParameterType
     L0.HasLabel "Elevation"
     L0.HasRange L0.Double
index d1e9ebd1ee38fbb4f3b2e4a6c2fa3652f05eb2a3..accd2264b9513b016c4b4140541c882999cbd01d 100644 (file)
@@ -69,6 +69,8 @@ public class DistrictNetworkResource {
     public final Resource HasSRID_Inverse;
     public final Resource HasSRTEXT;
     public final Resource HasSRTEXT_Inverse;
+    public final Resource HasSolverRVI;
+    public final Resource HasSolverRVI_Inverse;
     public final Resource HasSpatialRefSystem;
     public final Resource HasSpatialRefSystem_Inverse;
     public final Resource HasStartVertex;
@@ -260,6 +262,8 @@ public class DistrictNetworkResource {
         public static final String HasSRID_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRID/Inverse";
         public static final String HasSRTEXT = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT";
         public static final String HasSRTEXT_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT/Inverse";
+        public static final String HasSolverRVI = "http://www.simantics.org/DistrictNetwork-1.0/HasSolverRVI";
+        public static final String HasSolverRVI_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSolverRVI/Inverse";
         public static final String HasSpatialRefSystem = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem";
         public static final String HasSpatialRefSystem_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem/Inverse";
         public static final String HasStartVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex";
@@ -461,6 +465,8 @@ public class DistrictNetworkResource {
         HasSRID_Inverse = getResourceOrNull(graph, URIs.HasSRID_Inverse);
         HasSRTEXT = getResourceOrNull(graph, URIs.HasSRTEXT);
         HasSRTEXT_Inverse = getResourceOrNull(graph, URIs.HasSRTEXT_Inverse);
+        HasSolverRVI = getResourceOrNull(graph, URIs.HasSolverRVI);
+        HasSolverRVI_Inverse = getResourceOrNull(graph, URIs.HasSolverRVI_Inverse);
         HasSpatialRefSystem = getResourceOrNull(graph, URIs.HasSpatialRefSystem);
         HasSpatialRefSystem_Inverse = getResourceOrNull(graph, URIs.HasSpatialRefSystem_Inverse);
         HasStartVertex = getResourceOrNull(graph, URIs.HasStartVertex);
index 030802755080b61135ddae9951c3293c663bcde4..a088ca903810f7211c3b8d64d193b378b4a8f362 100644 (file)
@@ -65,7 +65,7 @@ public class DistrictNetworkEdgeNode extends G2DNode {
             if (scaleStroke && STROKE instanceof BasicStroke) {
                 double str;
                 if (stroke != null)
-                    str = stroke;
+                    str = Math.abs(stroke);
                 else
                     str = 1.0;
                 BasicStroke bs = GeometryUtils.scaleStroke(STROKE, (float) (str / GeometryUtils.getScale(g2d.getTransform())));