SYSDYN.Redeclaration <T L0.Entity
>-- SYSDYN.Redeclaration.replacedEnumeration --> SYSDYN.Enumeration <R L0.IsRelatedTo : L0.TotalFunction
- L0.InverseOf SYSDYN.Redeclaration.replacedIn <R L0.DependsOn : L0.FunctionalRelation
+ L0.InverseOf SYSDYN.Redeclaration.replacedEnumeration.Inverse <R L0.DependsOn : L0.FunctionalRelation
>-- SYSDYN.Redeclaration.replacingEnumeration --> SYSDYN.Enumeration <R L0.IsRelatedTo : L0.TotalFunction
- L0.InverseOf SYSDYN.Redeclaration.replacesEnumerationIn <R L0.DependsOn : L0.FunctionalRelation
+ L0.InverseOf SYSDYN.Redeclaration.replacingEnumeration.Inverse <R L0.DependsOn : L0.FunctionalRelation
//#####################################################################
// Functions
public final Resource ProjectBrowseContext_SharedFunctionsFolder;\r
public final Resource Redeclaration;\r
public final Resource Redeclaration_replacedEnumeration;\r
- public final Resource Redeclaration_replacedIn;\r
- public final Resource Redeclaration_replacesEnumerationIn;\r
+ public final Resource Redeclaration_replacedEnumeration_Inverse;\r
public final Resource Redeclaration_replacingEnumeration;\r
+ public final Resource Redeclaration_replacingEnumeration_Inverse;\r
public final Resource Result;\r
public final Resource Result_parameterFile;\r
public final Resource Result_parameterFile_Inverse;\r
public static final String ProjectBrowseContext_SharedFunctionsFolder = "http://www.simantics.org/Sysdyn-1.1/ProjectBrowseContext/SharedFunctionsFolder";\r
public static final String Redeclaration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration";\r
public static final String Redeclaration_replacedEnumeration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedEnumeration";\r
- public static final String Redeclaration_replacedIn = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedIn";\r
- public static final String Redeclaration_replacesEnumerationIn = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacesEnumerationIn";\r
+ public static final String Redeclaration_replacedEnumeration_Inverse = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacedEnumeration/Inverse";\r
public static final String Redeclaration_replacingEnumeration = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacingEnumeration";\r
+ public static final String Redeclaration_replacingEnumeration_Inverse = "http://www.simantics.org/Sysdyn-1.1/Redeclaration/replacingEnumeration/Inverse";\r
public static final String Result = "http://www.simantics.org/Sysdyn-1.1/Result";\r
public static final String Result_parameterFile = "http://www.simantics.org/Sysdyn-1.1/Result/parameterFile";\r
public static final String Result_parameterFile_Inverse = "http://www.simantics.org/Sysdyn-1.1/Result/parameterFile/Inverse";\r
ProjectBrowseContext_SharedFunctionsFolder = getResourceOrNull(graph, URIs.ProjectBrowseContext_SharedFunctionsFolder);\r
Redeclaration = getResourceOrNull(graph, URIs.Redeclaration);\r
Redeclaration_replacedEnumeration = getResourceOrNull(graph, URIs.Redeclaration_replacedEnumeration);\r
- Redeclaration_replacedIn = getResourceOrNull(graph, URIs.Redeclaration_replacedIn);\r
- Redeclaration_replacesEnumerationIn = getResourceOrNull(graph, URIs.Redeclaration_replacesEnumerationIn);\r
+ Redeclaration_replacedEnumeration_Inverse = getResourceOrNull(graph, URIs.Redeclaration_replacedEnumeration_Inverse);\r
Redeclaration_replacingEnumeration = getResourceOrNull(graph, URIs.Redeclaration_replacingEnumeration);\r
+ Redeclaration_replacingEnumeration_Inverse = getResourceOrNull(graph, URIs.Redeclaration_replacingEnumeration_Inverse);\r
Result = getResourceOrNull(graph, URIs.Result);\r
Result_parameterFile = getResourceOrNull(graph, URIs.Result_parameterFile);\r
Result_parameterFile_Inverse = getResourceOrNull(graph, URIs.Result_parameterFile_Inverse);\r
@Override\r
public void perform(WriteGraph graph) throws DatabaseException, CancelTransactionException {\r
SysdynResource sr = SysdynResource.getInstance(graph);\r
- for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedIn)) {\r
+ for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
graph.deny(redeclaration, sr.Module_redeclaration_Inverse);\r
}\r
\r
- for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedIn)) {\r
+ for(Resource redeclaration : graph.getObjects(data, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
graph.deny(redeclaration, sr.Module_redeclaration_Inverse);\r
}\r
\r
ArrayList<Pair<Resource, Resource>> replacements = new ArrayList<Pair<Resource, Resource>>();\r
\r
for(Resource enumeration : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Enumeration))) {\r
- if(graph.hasStatement(enumeration, sr.Redeclaration_replacedIn)) {\r
- for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedIn)) {\r
+ if(graph.hasStatement(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
+ for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
replacements.add(new Pair<Resource, Resource>(enumeration, replacement));\r
}\r
}\r
}\r
\r
for(Pair<Resource,Resource> replacement : replacements)\r
- graph.deny(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+ graph.deny(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
\r
TransferableGraph1 tg = graph.syncRequest(new TransferableGraphRequest2(roots, component));\r
Files.createFile(new File(path), Bindings.getBindingUnchecked(TransferableGraph1.class), tg);\r
\r
for(Pair<Resource,Resource> replacement : replacements)\r
- graph.claim(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+ graph.claim(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
\r
} catch (RuntimeBindingConstructionException e) {\r
e.printStackTrace();\r
ArrayList<Pair<Resource, Resource>> replacements = new ArrayList<Pair<Resource, Resource>>();\r
\r
for(Resource enumeration : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Enumeration))) {\r
- if(graph.hasStatement(enumeration, sr.Redeclaration_replacedIn)) {\r
- for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedIn)) {\r
+ if(graph.hasStatement(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
+ for(Resource replacement : graph.getObjects(enumeration, sr.Redeclaration_replacedEnumeration_Inverse)) {\r
replacements.add(new Pair<Resource, Resource>(enumeration, replacement));\r
}\r
}\r
}\r
\r
for(Pair<Resource,Resource> replacement : replacements)\r
- graph.deny(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+ graph.deny(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
\r
TransferableGraph1 tg = graph.syncRequest(new TransferableGraphRequest2(roots, component));\r
Files.createFile(new File(path), Bindings.getBindingUnchecked(TransferableGraph1.class), tg);\r
\r
for(Pair<Resource,Resource> replacement : replacements)\r
- graph.claim(replacement.first, sr.Redeclaration_replacedIn, replacement.second);\r
+ graph.claim(replacement.first, sr.Redeclaration_replacedEnumeration_Inverse, replacement.second);\r
\r
} catch (RuntimeBindingConstructionException e) {\r
e.printStackTrace();\r
private Boolean isReplaceable;\r
\r
@RelatedElements(\r
- value = SysdynResource.URIs.Redeclaration_replacedIn,\r
+ value = SysdynResource.URIs.Redeclaration_replacedEnumeration_Inverse,\r
composition = true)\r
private ArrayList<Redeclaration> redeclarations = new ArrayList<Redeclaration>();\r
\r