SysdynResource sr = SysdynResource.getInstance(g);\r
ModelingUtils mu = new ModelingUtils(g);\r
\r
- String name = GraphUtils.findFreshName(g, "Module type", model, mu.b.ConsistsOf, "%s %d");\r
+ String name = GraphUtils.findFreshName(g, "ModuleType", model, mu.b.ConsistsOf, "%s%d");\r
\r
Resource moduleType = g.newResource();\r
g.claimValue(moduleType, mu.b.HasName, name);\r
\r
Resource configuration = GraphUtils.create2(g, \r
sr.Configuration,\r
- mu.b.HasName, name.trim().replace(" ", ""),\r
+ mu.b.HasName, name + "Configuration",\r
mu.mr.CompositeToDiagram, diagram,\r
mu.b.PartOf, model);\r
\r
if(!projectRoot.isDirectory()) projectRoot.mkdir();\r
File file = new File( projectRoot, UUID.randomUUID().toString() + ".dbb");\r
\r
+ String name = GraphUtils.findFreshName(graph, "Result", model, b.ConsistsOf, "%s%d");\r
+ \r
SysdynResource sr = SysdynResource.getInstance(graph);\r
Resource res = GraphUtils.create2(graph, sr.Result,\r
- b.HasLabel, "Result x",\r
- b.HasName, "Result x",\r
+ b.HasLabel, name,\r
+ b.HasName, name,\r
b.PartOf, model,\r
sr.HasResultFile, file.getAbsolutePath());\r
graph.claim(experiment, sr.HasResult, res);\r