*******************************************************************************/\r
package org.simantics.sysdyn.modelica;\r
\r
-import java.io.IOException;\r
import java.util.ArrayList;\r
import java.util.Collection;\r
import java.util.Collections;\r
\r
// Insert spreadsheets\r
String version = null;\r
- try {\r
- version = ModelicaManager.getOMCVersion();\r
- } catch (IOException e) {\r
- }\r
+ version = ModelicaManager.getOMCVersion();\r
if(version != null && version.startsWith("1.9")) {\r
b.insert(spreadsheetlocation, getGlobalSpreadSheets(configurations));\r
} else {\r
import org.simantics.objmap.annotations.RelatedElements;\r
import org.simantics.objmap.annotations.RelatedValue;\r
import org.simantics.sysdyn.SysdynResource;\r
-import org.simantics.sysdyn.representation.utils.RepresentationUtils;\r
import org.simantics.sysdyn.representation.visitors.IElementVisitorVoid;\r
import org.simantics.utils.datastructures.Pair;\r
\r
\r
/**\r
* Get all parameter override elements for this module instance as a string "param = value, param2 = value2, ..."\r
- * <p>\r
- * Only used with game experiments. Other experiments use inits-file.\r
* @return parameter overrides\r
*/\r
public String getParameterOverrideString() {\r
- String result = "";\r
+ String result = "";\r
\r
- if(RepresentationUtils.isPartOfGameExperiment(this)) {\r
- for(ParameterOverride po : getParameterOverrides()) {\r
- IndependentVariable var = po.getVariable();\r
- if(!Variability.CONTINUOUS.equals(Variability.getVariability(var, false, parentConfiguration))) {\r
- if(!result.isEmpty())\r
- result += ", ";\r
+ for(ParameterOverride po : getParameterOverrides()) {\r
+ IndependentVariable var = po.getVariable();\r
+ if(!Variability.CONTINUOUS.equals(Variability.getVariability(var, false, parentConfiguration))) {\r
+ if(!result.isEmpty())\r
+ result += ", ";\r
\r
- result += po.getOverride();\r
- }\r
- }\r
- }\r
+ result += po.getOverride();\r
+ }\r
+ }\r
\r
return result;\r
}\r