\r
private static void processChild(ReadGraph graph, Variable child, PartialIC IC) throws DatabaseException {\r
\r
- System.err.println("processChild " + child.getURI(graph));\r
StructuralResource2 STR = StructuralResource2.getInstance(graph);\r
\r
for(Variable c : child.getChildren(graph)) {\r
SysdynResource SYSDYN = SysdynResource.getInstance(graph);\r
\r
Collection<Resource> exprs = graph.syncRequest(new ObjectsWithType(represents, L0.ConsistsOf, SYSDYN.ParameterExpression));\r
- if(exprs.size() == 0) return;\r
+ if(exprs.size() == 0) {\r
+ if(graph.hasStatement(represents, SYSDYN.Variable_isHeadOf)) return;\r
+ }\r
\r
Variable v = values.getPossibleProperty(graph, "");\r
if(v == null) return;\r
if(target != null && ds.length > 0) {\r
RVI rvi = target.getRVI(graph);\r
double initial = ds[0];\r
- System.err.println("rvi=" + rvi + " value=" + initial);\r
+// System.err.println("rvi=" + rvi + " value=" + initial);\r
IC.add(rvi, Variant.ofInstance(initial));\r
}\r
}\r
\r
public static void applyIC(WriteGraph graph, Variable experiment, String name) throws DatabaseException {\r
\r
- System.err.println("applyIC " + experiment.getURI(graph));\r
-\r
Layer0 L0 = Layer0.getInstance(graph);\r
SysdynResource SYSDYN = SysdynResource.getInstance(graph);\r
\r