From ae9b5096baafcfb1113fe3367d5e6e666b77c820 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 16 Oct 2014 07:41:02 +0000 Subject: [PATCH] Merged trunk@30126 to branches/sysdyn-1.8 on 2014-10-16 for 1.8.2 release. refs #5178 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/branches/1.8@30423 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.sysdyn/scl/Simantics/Sysdyn.scl | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 org.simantics.sysdyn/scl/Simantics/Sysdyn.scl diff --git a/org.simantics.sysdyn/scl/Simantics/Sysdyn.scl b/org.simantics.sysdyn/scl/Simantics/Sysdyn.scl new file mode 100644 index 00000000..878dffb5 --- /dev/null +++ b/org.simantics.sysdyn/scl/Simantics/Sysdyn.scl @@ -0,0 +1,110 @@ +include "UI/Progress" +include "Simantics/DB" +include "Simantics/Variables" + +importJava "org.simantics.sysdyn.utils.DocumentationUtils" where + + @JavaName getModules + getModules :: Variable -> [Resource] + + @JavaName getExperimentVariables + getExperimentVariables :: Variable -> [Variable] + + @JavaName getRoleVariables + getRoleVariables :: Variable -> [Variable] + + @JavaName getDocumentVariables + getDocumentVariables :: Variable -> [Variable] + + @JavaName getIndexDocuments + getIndexDocuments :: Variable -> [Variable] + + @JavaName getResultVariables + getResultVariables :: Variable -> [Variable] + + @JavaName getConfiguration + getConfiguration :: Resource -> Resource + + @JavaName getConfigurationVariables + getConfigurationVariables :: Resource -> [Resource] + + @JavaName getName + getName :: Resource -> String + + @JavaName getType + getType :: Resource -> String + + @JavaName getUnit + getUnit :: Resource -> String + + @JavaName getVariability + getVariability :: Resource -> String + + @JavaName getDescription + getDescription :: Resource -> String + + @JavaName getDocumentationDefinition + getDocumentationDefinition :: Resource -> String + + + + @JavaName numberOfVariables + numberOfVariables :: Resource -> Boolean -> Integer + + @JavaName totalNumberOfVariables + totalNumberOfVariables :: Resource -> Boolean -> Integer + + @JavaName numberOfStocks + numberOfStocks :: Resource -> Boolean -> Integer + + @JavaName numberOfValves + numberOfValves :: Resource -> Boolean -> Integer + + @JavaName numberOfInputs + numberOfInputs :: Resource -> Boolean -> Integer + + @JavaName numberOfShadows + numberOfShadows :: Resource -> Boolean -> Integer + + @JavaName numberOfAuxiliaries + numberOfAuxiliaries :: Resource -> Boolean -> Integer + + @JavaName numberOfModules + numberOfModules :: Resource -> Boolean -> Integer + + @JavaName numberOfSheets + numberOfSheets :: Resource -> Boolean -> Integer + + @JavaName numberOfModuleTypes + numberOfModuleTypes :: Variable -> Integer + + @JavaName base64Encode + base64Encode :: Variable -> String -> String + + @JavaName formatDate + formatDate :: Long -> String + + @JavaName importModel + importModel :: String -> Resource + + @JavaName isParameter + isParameter :: Variable -> Boolean + + lastValue :: Resource -> String -> String -> Double + lastValue2 :: Variable -> String -> Variable + currentValue :: Variable -> String -> Variable + lastValueIndexed :: Variable -> String -> Variable + equation :: Variable -> String -> Variable + +importJava "org.simantics.sysdyn.manager.SysdynExperiments" where + + activateExperiment :: Resource -> String + run :: String -> () + saveIC :: Variable -> String -> Maybe Resource + assignIC :: Variable -> String -> () + deassignIC :: Variable -> () + applyIC :: Variable -> String -> () + deleteIC :: Variable -> String -> () + + setPublishResults :: Variable -> Boolean -> () + \ No newline at end of file -- 2.47.1