@VP.constantImageRule P3D.Builtin.Straight IMAGES.Straight
@VP.constantImageRule P3D.EndComponent IMAGES.Component
@VP.constantImageRule P3D.PipeRun IMAGES.Straight
- @VP.relationChildRule PROJ.Project L0.ConsistsOf P3D.Plant
- @VP.relationChildRule PROJ.Project L0.ConsistsOf CSG.Model
+ @VP.relationChildRule L0.Library L0.ConsistsOf P3D.Plant
+ @VP.relationChildRule L0.Library L0.ConsistsOf CSG.Model
@VP.relationChildRule P3D.Node P3D.children P3D.Node
@VP.relationChildRule P3D.Node P3D.HasNozzle P3D.Node
@L0.loadBytes "images/tank.png"
MAC = P3D.P3DActionContext : VP.BrowseContext
- VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext
-
-
-MAC.newContribution : L0.Template
- @template %actionContext %label %action %image
- %actionContext
- VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
- L0.HasLabel %label
- VP.ActionContribution.HasImage %image
- VP.ActionContribution.HasCategory VP.NewActionCategory
- VP.ActionContribution.HasNodeType P3D.Plant
- VP.ActionContribution.HasAction %action
+ VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext
-MAC.newTypeContribution : L0.Template
- @template %actionContext %label %action %type %image
- %actionContext
- VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
- L0.HasLabel %label
- VP.ActionContribution.HasImage %image
- VP.ActionContribution.HasCategory VP.NewActionCategory
- VP.ActionContribution.HasNodeType %type
- VP.ActionContribution.HasAction %action
-
-MAC.editTypeContribution : L0.Template
- @template %actionContext %label %action %type %image
- %actionContext
- VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
- L0.HasLabel %label
- VP.ActionContribution.HasImage %image
- VP.ActionContribution.HasCategory VP.EditActionCategory
- VP.ActionContribution.HasNodeType %type
- VP.ActionContribution.HasAction %action
\ No newline at end of file
+ @VP.actionContribution "Plant" L0.Library IMAGES.Factory VP.NewActionCategory P3D.Actions.NewPlant
+
+P3D.Actions : L0.Library
+P3D.Actions.NewPlant : L0.Action
public class Plant3D {
+ public final Resource Actions;
+ public final Resource Actions_NewPlant;
public final Resource Builtin;
public final Resource Builtin_BallValve;
public final Resource Builtin_BallValveGeometryProvider;
public final Resource Builtin_ElbowGeometryProvider;
public final Resource Builtin_GateValve;
public final Resource Builtin_GateValveGeometryProvider;
- public final Resource Builtin_GeometryProvider;
public final Resource Builtin_HorizontalTank;
public final Resource Builtin_HorizontalTankGeometryProvider;
public final Resource Builtin_Nozzle;
public final Resource Equipment;
public final Resource FixedAngleTurnComponent;
public final Resource FixedLengthInlineComponent;
+ public final Resource GeometryProvider;
public final Resource HasAlternativePipeRun;
public final Resource HasBranch0;
public final Resource HasBranch1;
public final Resource NozzleOf;
public final Resource OffsetComponent;
public final Resource P3DActionContext;
- public final Resource P3DActionContext_editTypeContribution;
- public final Resource P3DActionContext_newContribution;
- public final Resource P3DActionContext_newTypeContribution;
public final Resource P3DBrowseContext;
public final Resource Parameter;
public final Resource PipeRun;
public final Resource TurnComponent;
public final Resource VariableAngleTurnComponent;
public final Resource VariableLengthInlineComponent;
- public final Resource childen;
- public final Resource childen_Inverse;
+ public final Resource children;
+ public final Resource children_Inverse;
public final Resource hasGeometry;
public final Resource hasParameter;
public final Resource hasParameterValue;
public static class URIs {
+ public static final String Actions = "http://www.simantics.org/Plant3D-0.1/Actions";
+ public static final String Actions_NewPlant = "http://www.simantics.org/Plant3D-0.1/Actions/NewPlant";
public static final String Builtin = "http://www.simantics.org/Plant3D-0.1/Builtin";
public static final String Builtin_BallValve = "http://www.simantics.org/Plant3D-0.1/Builtin/BallValve";
public static final String Builtin_BallValveGeometryProvider = "http://www.simantics.org/Plant3D-0.1/Builtin/BallValveGeometryProvider";
public static final String Builtin_ElbowGeometryProvider = "http://www.simantics.org/Plant3D-0.1/Builtin/ElbowGeometryProvider";
public static final String Builtin_GateValve = "http://www.simantics.org/Plant3D-0.1/Builtin/GateValve";
public static final String Builtin_GateValveGeometryProvider = "http://www.simantics.org/Plant3D-0.1/Builtin/GateValveGeometryProvider";
- public static final String Builtin_GeometryProvider = "http://www.simantics.org/Plant3D-0.1/Builtin/GeometryProvider";
public static final String Builtin_HorizontalTank = "http://www.simantics.org/Plant3D-0.1/Builtin/HorizontalTank";
public static final String Builtin_HorizontalTankGeometryProvider = "http://www.simantics.org/Plant3D-0.1/Builtin/HorizontalTankGeometryProvider";
public static final String Builtin_Nozzle = "http://www.simantics.org/Plant3D-0.1/Builtin/Nozzle";
public static final String Equipment = "http://www.simantics.org/Plant3D-0.1/Equipment";
public static final String FixedAngleTurnComponent = "http://www.simantics.org/Plant3D-0.1/FixedAngleTurnComponent";
public static final String FixedLengthInlineComponent = "http://www.simantics.org/Plant3D-0.1/FixedLengthInlineComponent";
+ public static final String GeometryProvider = "http://www.simantics.org/Plant3D-0.1/GeometryProvider";
public static final String HasAlternativePipeRun = "http://www.simantics.org/Plant3D-0.1/HasAlternativePipeRun";
public static final String HasBranch0 = "http://www.simantics.org/Plant3D-0.1/HasBranch0";
public static final String HasBranch1 = "http://www.simantics.org/Plant3D-0.1/HasBranch1";
public static final String NozzleOf = "http://www.simantics.org/Plant3D-0.1/NozzleOf";
public static final String OffsetComponent = "http://www.simantics.org/Plant3D-0.1/OffsetComponent";
public static final String P3DActionContext = "http://www.simantics.org/Plant3D-0.1/P3DActionContext";
- public static final String P3DActionContext_editTypeContribution = "http://www.simantics.org/Plant3D-0.1/P3DActionContext/editTypeContribution";
- public static final String P3DActionContext_newContribution = "http://www.simantics.org/Plant3D-0.1/P3DActionContext/newContribution";
- public static final String P3DActionContext_newTypeContribution = "http://www.simantics.org/Plant3D-0.1/P3DActionContext/newTypeContribution";
public static final String P3DBrowseContext = "http://www.simantics.org/Plant3D-0.1/P3DBrowseContext";
public static final String Parameter = "http://www.simantics.org/Plant3D-0.1/Parameter";
public static final String PipeRun = "http://www.simantics.org/Plant3D-0.1/PipeRun";
public static final String TurnComponent = "http://www.simantics.org/Plant3D-0.1/TurnComponent";
public static final String VariableAngleTurnComponent = "http://www.simantics.org/Plant3D-0.1/VariableAngleTurnComponent";
public static final String VariableLengthInlineComponent = "http://www.simantics.org/Plant3D-0.1/VariableLengthInlineComponent";
- public static final String childen = "http://www.simantics.org/Plant3D-0.1/childen";
- public static final String childen_Inverse = "http://www.simantics.org/Plant3D-0.1/childen/Inverse";
+ public static final String children = "http://www.simantics.org/Plant3D-0.1/children";
+ public static final String children_Inverse = "http://www.simantics.org/Plant3D-0.1/children/Inverse";
public static final String hasGeometry = "http://www.simantics.org/Plant3D-0.1/hasGeometry";
public static final String hasParameter = "http://www.simantics.org/Plant3D-0.1/hasParameter";
public static final String hasParameterValue = "http://www.simantics.org/Plant3D-0.1/hasParameterValue";
}
public Plant3D(ReadGraph graph) {
+ Actions = getResourceOrNull(graph, URIs.Actions);
+ Actions_NewPlant = getResourceOrNull(graph, URIs.Actions_NewPlant);
Builtin = getResourceOrNull(graph, URIs.Builtin);
Builtin_BallValve = getResourceOrNull(graph, URIs.Builtin_BallValve);
Builtin_BallValveGeometryProvider = getResourceOrNull(graph, URIs.Builtin_BallValveGeometryProvider);
Builtin_ElbowGeometryProvider = getResourceOrNull(graph, URIs.Builtin_ElbowGeometryProvider);
Builtin_GateValve = getResourceOrNull(graph, URIs.Builtin_GateValve);
Builtin_GateValveGeometryProvider = getResourceOrNull(graph, URIs.Builtin_GateValveGeometryProvider);
- Builtin_GeometryProvider = getResourceOrNull(graph, URIs.Builtin_GeometryProvider);
Builtin_HorizontalTank = getResourceOrNull(graph, URIs.Builtin_HorizontalTank);
Builtin_HorizontalTankGeometryProvider = getResourceOrNull(graph, URIs.Builtin_HorizontalTankGeometryProvider);
Builtin_Nozzle = getResourceOrNull(graph, URIs.Builtin_Nozzle);
Equipment = getResourceOrNull(graph, URIs.Equipment);
FixedAngleTurnComponent = getResourceOrNull(graph, URIs.FixedAngleTurnComponent);
FixedLengthInlineComponent = getResourceOrNull(graph, URIs.FixedLengthInlineComponent);
+ GeometryProvider = getResourceOrNull(graph, URIs.GeometryProvider);
HasAlternativePipeRun = getResourceOrNull(graph, URIs.HasAlternativePipeRun);
HasBranch0 = getResourceOrNull(graph, URIs.HasBranch0);
HasBranch1 = getResourceOrNull(graph, URIs.HasBranch1);
NozzleOf = getResourceOrNull(graph, URIs.NozzleOf);
OffsetComponent = getResourceOrNull(graph, URIs.OffsetComponent);
P3DActionContext = getResourceOrNull(graph, URIs.P3DActionContext);
- P3DActionContext_editTypeContribution = getResourceOrNull(graph, URIs.P3DActionContext_editTypeContribution);
- P3DActionContext_newContribution = getResourceOrNull(graph, URIs.P3DActionContext_newContribution);
- P3DActionContext_newTypeContribution = getResourceOrNull(graph, URIs.P3DActionContext_newTypeContribution);
P3DBrowseContext = getResourceOrNull(graph, URIs.P3DBrowseContext);
Parameter = getResourceOrNull(graph, URIs.Parameter);
PipeRun = getResourceOrNull(graph, URIs.PipeRun);
TurnComponent = getResourceOrNull(graph, URIs.TurnComponent);
VariableAngleTurnComponent = getResourceOrNull(graph, URIs.VariableAngleTurnComponent);
VariableLengthInlineComponent = getResourceOrNull(graph, URIs.VariableLengthInlineComponent);
- childen = getResourceOrNull(graph, URIs.childen);
- childen_Inverse = getResourceOrNull(graph, URIs.childen_Inverse);
+ children = getResourceOrNull(graph, URIs.children);
+ children_Inverse = getResourceOrNull(graph, URIs.children_Inverse);
hasGeometry = getResourceOrNull(graph, URIs.hasGeometry);
hasParameter = getResourceOrNull(graph, URIs.hasParameter);
hasParameterValue = getResourceOrNull(graph, URIs.hasParameterValue);