SysdynResource sr = SysdynResource.getInstance(graph);\r
HashMap<String, Resource> result = new HashMap<String, Resource>();\r
for(Resource dependency : graph.syncRequest(new ObjectsWithType(module, sr.IsTailOf, sr.Dependency))) {\r
- if(graph.getPossibleObject(dependency, sr.RefersTo) == null ||\r
- graph.getPossibleObject(dependency, sr.RefersTo).equals(outputVariable)) {\r
+ if(graph.getPossibleObject(dependency, sr.RefersTo) == null \r
+ || !graph.hasStatement(graph.getPossibleObject(dependency, sr.RefersTo), l0.HasName)\r
+ || graph.getPossibleObject(dependency, sr.RefersTo).equals(outputVariable)) {\r
Resource input = graph.getSingleObject(dependency, sr.HasHead);\r
result.put((String)graph.getRelatedValue(input, l0.HasName), dependency);\r
}\r
SysdynResource sr = SysdynResource.getInstance(graph);\r
if(getDependency() != null && graph.hasStatement(getDependency(), sr.RefersTo))\r
graph.deny(getDependency(), sr.RefersTo);\r
+ if(dependency != null && graph.hasStatement(dependency, sr.RefersTo))\r
+ graph.deny(dependency, sr.RefersTo);\r
setDependency(null);\r
if(dependency != null) {\r
setDependency(dependency);\r
Input variable = (Input)dependency.getHead();\r
Module module = (Module)dependency.getTail();\r
Variable reference = (Variable)dependency.refersTo();\r
- if(reference != null)\r
+ if(reference != null && reference.getName() != null)\r
b.append(" " + variable.getName() + " = " + module.getName() + "." + reference.getName() + ";\n");\r
else\r
b.append(" " + variable.getName() + " = " + variable.getDefaultInputValue() + ";\n");\r