X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network.ontology%2Fgraph%2FDistrictNetworkDiagramSettings.pgraph;h=2e259ef7bee17e801e45266cd05cb0fc46f3a0f9;hb=e764d663bb48dbc4ce86ca5d90c80167d30338a8;hp=686fb391f9bdd94a1f8073a4b1bab8a8c3d0e499;hpb=5c496d165dd3cf2b5ca50cb5368adcf56d45e9d5;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph index 686fb391..2e259ef7 100644 --- a/org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph +++ b/org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph @@ -1,4 +1,5 @@ L0 = +L0X = DIA = STR = MOD = @@ -8,6 +9,7 @@ SEL = SEL_UI = G2D = DN = +DATATYPES = // ---------------------------------------------------------------------------- @@ -17,47 +19,168 @@ DN.EdgeThicknessPropertyParameterType -- DN.Vertex.ScaleProperty.value --> L0.Relation -- DN.Edge.ThicknessProperty.value ==> "Resource -> Maybe Double" -- DN.Edge.ThicknessProperty.gain --> L0.Double -- DN.Vertex.ScaleProperty.scale ==> "Double" -- DN.Edge.ThicknessProperty.bias --> L0.Double -- DN.Edge.ThicknessProperty.scale --> L0.Double -- DN.Edge.ArrowLengthProperty.value ==> "Resource -> Maybe Double" -- DN.Edge.ArrowLengthProperty.gain --> L0.Double -- DN.Edge.ArrowLengthProperty.bias --> L0.Double -- DN.Edge.ThicknessProperty.value --> L0.Relation -- DN.Vertex.ScaleProperty.value ==> "Resource -> Maybe Double" -- DN.Vertex.ScaleProperty.gain ==> "Double" -- DN.Vertex.ScaleProperty.bias ==> "Double" -- DN.Diagram.nodeScale ==> "Double" -- DN.Diagram.nodeScalingProperty --> DN.Vertex.ScaleProperty -- DN.Diagram.edgeThicknessScale ==> "Double" -- DN.Diagram.elementColoringGradientHue ==> "Float" -- DN.Diagram.elementColoringGradientSaturation ==> "Float" -- DN.Diagram.elementColoringFunction --> L0.String ==> "Resource -> Double" -- DN.Diagram.edgeThicknessGain ==> "Double" -- DN.Diagram.edgeThicknessBias ==> "Double" -- DN.Diagram.edgeThicknessProperty --> DN.Edge.ThicknessProperty -- DN.Diagram.arrowLengthGain ==> "Double" -- DN.Diagram.arrowLengthBias ==> "Double" -- DN.Diagram.arrowLengthProperty --> DN.Edge.ArrowLengthProperty -- DN.Diagram.nodeScaleGain ==> "Double" -- DN.Diagram.nodeScaleBias ==> "Double" -- DN.Diagram.nodeScaleProperty --> DN.Vertex.ScaleProperty -- DN.Diagram.backgroundColor --> DATATYPES.RGB.Integer -- DN.Diagram.drawMapEnabled ==> "Boolean" -- DN.Diagram.hasVisualisation --> DN.Diagram.Visualisations -- DN.Diagram.hasActiveVisualisation --> DN.Diagram.Visualisations -- DN.Diagram.profileUpdateInterval ==> "Long" 1.0" "Resource -> Double" + @L0.assert DN.Diagram.edgeThicknessGain 1.0 + @L0.assert DN.Diagram.edgeThicknessBias 0.0 @L0.assert DN.Diagram.edgeThicknessProperty DN.Edge.ThicknessProperty.Diameter + @L0.assert DN.Diagram.arrowLengthGain 1.0 + @L0.assert DN.Diagram.arrowLengthBias 0.0 + @L0.assert DN.Diagram.arrowLengthProperty DN.Edge.ArrowLengthProperty.FlowRate + @L0.assert DN.Diagram.nodeScaleGain 1.0 + @L0.assert DN.Diagram.nodeScaleBias 0.0 + @L0.assert DN.Diagram.nodeScaleProperty DN.Vertex.ScaleProperty.NominalSupplyPressure + @L0.assert DN.Diagram.drawMapEnabled true + @L0.assert DN.Diagram.profileUpdateInterval + 2000 : L0.Long + @L0.assert DN.Diagram.DefaultPipeTechTypeId 0 // ---------------------------------------------------------------------------- // Built-in enumerated ScaleProperty & ThicknessProperty instances -DN.Vertex.ScaleProperty.SupplyPressure : DN.Vertex.ColorProperty - L0.HasLabel "Nominal Supply Pressure" - DN.Vertex.ScaleProperty.value DN.Vertex.HasSupplyPressure - DN.Vertex.ScaleProperty.scale 1.0 +DN.Functions.constantOne : L0.Function + L0.HasValueType "Resource -> Maybe Double" + +DN.Functions.hasNominalMassFlowValue : L0.Function + L0.HasValueType "Resource -> Maybe Double" + +DN.Edge.ThicknessProperty.OnlyGainAndBias: DN.Edge.ThicknessProperty + L0.HasLabel "Only Gain and Bias" + DN.Edge.ThicknessProperty.value + DN.Functions.constantOne DN.Edge.ThicknessProperty.Diameter : DN.Edge.ThicknessProperty L0.HasLabel "Diameter" - DN.Edge.ThicknessProperty.value DN.Edge.HasDiameter - DN.Edge.ThicknessProperty.scale 0.001 + DN.Edge.ThicknessProperty.value + DN.Functions.hasDiameterValue : L0.Function + L0.HasValueType "Resource -> Maybe Double" + DN.Edge.ThicknessProperty.gain 0.001 + +DN.Edge.ThicknessProperty.FlowRate : DN.Edge.ThicknessProperty + L0.HasLabel "Nominal Mass Flow" + DN.Edge.ThicknessProperty.value + DN.Functions.hasNominalMassFlowValue + DN.Edge.ThicknessProperty.gain 0.1 -DN.Edge.ThicknessProperty.NominalMassFlow : DN.Edge.ThicknessProperty +DN.Edge.ArrowLengthProperty.FlowRate : DN.Edge.ArrowLengthProperty L0.HasLabel "Nominal Mass Flow" - DN.Edge.ThicknessProperty.value DN.Edge.HasNominalMassFlow - DN.Edge.ThicknessProperty.scale 1.0 + DN.Edge.ArrowLengthProperty.value + DN.Functions.hasNominalMassFlowValue + DN.Edge.ArrowLengthProperty.gain 1.0 + +DN.Vertex.ScaleProperty.OnlyGainAndBias: DN.Vertex.ScaleProperty + L0.HasLabel "Only Gain and Bias" + DN.Vertex.ScaleProperty.value + DN.Functions.constantOne + +DN.Vertex.ScaleProperty.NominalSupplyPressure : DN.Vertex.ScaleProperty + L0.HasLabel "Nominal Supply Pressure" + DN.Vertex.ScaleProperty.value + DN.Functions.hasNominalSupplyPressure : L0.Function + L0.HasValueType "Resource -> Maybe Double" + DN.Vertex.ScaleProperty.gain 0.001 +DN.Vertex.ScaleProperty.Elevation : DN.Vertex.ScaleProperty + L0.HasLabel "Elevation" + DN.Vertex.ScaleProperty.value + DN.Functions.hasElevation : L0.Function + L0.HasValueType "Resource -> Maybe Double" + DN.Vertex.ScaleProperty.gain 0.1 + DN.Vertex.ScaleProperty.bias 0.001