X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.network.ontology%2Fgraph%2FDistrictNetwork.pgraph;h=435bd55d9813e30a19bb8ab66e0ae8c26342d26a;hb=1e6f4461465fc45d71b30535d02bbe1cd7672d4a;hp=a4144a808f895333c6ef14b09fd21fb8bc564048;hpb=1bc60c2213f9b3fc7b4d935ba9afda2b767290e5;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph index a4144a80..435bd55d 100644 --- a/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph +++ b/org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph @@ -6,6 +6,7 @@ VP = IMAGE = SEL = SEL_UI = +G2D = DN = : L0.Ontology @L0.new @@ -14,11 +15,13 @@ DN = : L0.Ontology DN.Layer -- DN.Mapping.OutputTerminal --> DN.Mapping.Terminal -- DN.Mapping.Id --> L0.String -- DN.Mapping.ComponentType --> STR.ComponentType -- DN.Mapping.VertexMapping.ElevationAttribute --> L0.String -- DN.Mapping.VertexMapping.SupplyTemperatureAttribute --> L0.String -- DN.Mapping.VertexMapping.ReturnTemperatureAttribute --> L0.String -- DN.Mapping.VertexMapping.SupplyPressureAttribute --> L0.String -- DN.Mapping.VertexMapping.ReturnPressureAttribute --> L0.String -- DN.Mapping.VertexMapping.DeltaPressureAttribute --> L0.String -- DN.Mapping.VertexMapping.DeltaTemperatureAttribute --> L0.String -- DN.Mapping.Terminals --> DN.Mapping.TerminalPair -- DN.Mapping.VertexMapping.dpAttribute --> L0.String -- DN.Mapping.VertexMapping.dtAttribute --> L0.String -- DN.Mapping.VertexMapping.HeatPowerAttribute --> L0.String -- DN.Mapping.VertexMapping.NominalHeadMAttribute --> L0.String -- DN.Mapping.VertexMapping.NominalHeadBAttribute --> L0.String -- DN.Mapping.VertexMapping.NominalFlowAttribute --> L0.String -- DN.Mapping.VertexMapping.MaximumHeadMAttribute --> L0.String -- DN.Mapping.VertexMapping.HeatLoadDsAttribute --> L0.String -- DN.Mapping.VertexMapping.AddressAttribute --> L0.String -- DN.Mapping.VertexMapping.MassFlowAttribute --> L0.String -- DN.Mapping.VertexMapping.VolFlowAttribute --> L0.String -- DN.Mapping.VertexMapping.VelocityAttribute --> L0.String -- DN.Mapping.VertexMapping.FlowAreaAttribute --> L0.String -- DN.Mapping.VertexMapping.ValvePositionAttribute --> L0.String -- DN.Mapping.VertexMapping.NominalPressureLossAttribute --> L0.String -- DN.Mapping.VertexMapping.NominalMassFlowAttribute --> L0.String -- DN.Mapping.Id >-- DN.Mapping.ComponentType >-- DN.Mapping.EdgeMapping.LengthAttribute --> L0.String -- DN.Mapping.EdgeMapping.DiameterAttribute --> L0.String -- DN.Mapping.EdgeMapping.OuterDiameterAttribute --> L0.String -- DN.Mapping.EdgeMapping.NominalMassFlowAttribute --> L0.String -- DN.Mapping.EdgeMapping.FlowAreaAttribute --> L0.String -- DN.Mapping.EdgeMapping.KReturnAttribute --> L0.String -- DN.Mapping.EdgeMapping.KSupplyAttribute --> L0.String -- DN.Mapping.EdgeMapping.TGroundAttribute --> L0.String -- DN.Mapping.Terminals + +DN.SCLMain : L0.SCLModule + L0.SCLModule.definition + """ + include "Simantics/District/SCLMain" + """ + +DN.DistrictProfile : DIA.Profile + L0.HasLabel "District Network Profile" + DIA.Profile.priority 0.0 + DIA.HasEntries + _ : DIA.Profile + @L0.list + DN.DistrictProfile.entry + L0.HasLabel "Component names" + @DIA.groupStyleProfileEntry DN.ComponentNameStyle DN.Groups.ElementGroup + DN.DistrictProfile.entry1 + L0.HasLabel "Id" + @DIA.groupStyleProfileEntry DN.ComponentIdStyle DN.Groups.ElementGroup + DN.DistrictProfile.entry2 + L0.HasLabel "Edge Node Styling" + @DIA.groupStyleProfileEntry DN.EdgeNodeStyle DN.Groups.ElementGroup + +DN.Groups : L0.Library + +DN.Groups.ElementGroup : DIA.TypeGroup + DIA.TypeGroup.HasType DN.Element + +DN.ComponentNameStyle : DIA.ResourceSCLTextGridStyle + @MOD.scl DIA.ResourceSCLTextGridStyle.texts + """ + districtNetworkProfileStyle "http://www.simantics.org/Layer0-1.1/HasName" + """ + "String -> Variable -> (String, String, String)" + @G2D.fontProperty DIA.TextElement.font "Arial" 30 G2D.FontStyle.normal_font_style + +DN.ComponentIdStyle : DIA.ResourceSCLTextGridStyle + @MOD.scl DIA.ResourceSCLTextGridStyle.texts + """ + districtNetworkProfileStyle "http://www.simantics.org/Layer0-1.1/HasName" + """ + "String -> Variable -> (String, String, String)" + @G2D.fontProperty DIA.TextElement.font "Arial" 30 G2D.FontStyle.normal_font_style + +//DN.EdgeNodeGroup : DIA.Group + +//DN.Profiles : L0.Library + +DN.EdgeNodeStyle : DIA.Style + +// Templates + +//groupStyleEntry : L0.Template +// @template %subject %style %group +// %subject : DIA.GroupStyleProfileEntry +// DIA.ProfileEntry.HasStyle %style +// DIA.ProfileEntry.HasGroup %group + + +//DN.Profiles.EdgeNodeStyle +// L0.HasLabel "Edge Node Style" +// @groupStyleEntry DN.EdgeNodeStyle DN.EdgeNodeGroup