}\r
});\r
}\r
- \r
- /*\r
- protected Collection<SysdynDataSet> loadAllActive(ReadGraph g, Resource element, Resource runtime) throws DatabaseException {\r
-\r
- Layer0 l0 = Layer0.getInstance(g);\r
-\r
- SysdynResource sr = SysdynResource.getInstance(g);\r
-\r
- DiagramResource dr = DiagramResource.getInstance(g);\r
-\r
- if(runtime == null) return null;\r
- Resource resource = ModelingUtils.getPossibleElementCorrespondendence(g, element);\r
- if(resource == null || !g.isInstanceOf(resource, sr.Variable)) return null;\r
-\r
- String variableURI = g.getPossibleRelatedValue(runtime, dr.HasVariable);\r
-\r
- System.out.println("load dataset for '"+ g.getPossibleRelatedValue(resource, l0.HasName) + "'in composite '" + variableURI + "'");\r
- Variable compositeVariable = Variables.getVariable(g, variableURI);\r
- Variable item = compositeVariable.browsePossible(g, resource);\r
- if(item == null) return null;\r
-\r
- String rvi = Variables.getRVI(g, item);\r
- System.out.println("HistoryVariable rvi='" + rvi + "'");\r
-\r
- System.out.println("load dataset for '" + item.getURI(g) + "'");\r
-\r
- Resource model = Variables.getModel(g, item);\r
-\r
- return loadAllActive(g, rvi.substring(1), model);\r
-\r
- }\r
- */\r
\r
protected Collection<SysdynDataSet> loadAllActive(ReadGraph g, String rvi, SysdynModel model) throws DatabaseException {\r
ArrayList<SysdynDataSet> dataSets = new ArrayList<SysdynDataSet>();\r