|
ContentsSimantics/SCLThis module contains functions closely related to SCL and storing SCL related constructs in the Simantics database. SCL Command Sessiondata CommandResponse CommandResponse :: String -> Boolean -> CommandResponse createTextAndErrors :: String -> [CompilationError] -> TextAndErrors execute :: String -> <SCL,Proc> () isSuccessful :: CommandResponse -> Boolean SCL RealmgetOrCreateSCLRealm :: String -> <Proc> SCLRealm readSCLRealm :: Resource -> <ReadGraph,Proc> SCLRealm refreshVariables :: SCLRealm -> <Proc> () sclRealmById :: String -> <Proc> Maybe SCLRealm syncExec :: SCLRealm -> <SCL,Proc> a -> <Proc> a Command Session Variable AccesssetVariable :: String -> Type -> a -> <SCL> () variableValue :: String -> <SCL> a SCL ValuescreateSCLValue :: Resource -> Resource -> Resource -> String -> <WriteGraph> Resource createSCLValueIndependent :: Resource -> String -> <WriteGraph> Resource setExpression :: Variable -> String -> <WriteGraph> () SCL ModulescreateSCLModuleAction :: Resource -> <Proc> () createSCLModuleDefault :: Resource -> <WriteGraph> () createSCLModule :: Resource -> String -> <WriteGraph> () Use createSCLModuleR instead. createSCLModuleR :: Resource -> String -> <WriteGraph> Resource
createSCLModuleWithDefinition :: Resource -> String -> String -> <WriteGraph> Resource
setSCLModuleDefinition :: Resource -> String -> <WriteGraph> Resource
SCL ScriptscreateSCLScriptAction :: Resource -> <Proc> () createSCLScriptDefault :: Resource -> <WriteGraph> () createSCLScript :: Resource -> String -> <WriteGraph> () Use createSCLScriptR instead. createSCLScriptR :: Resource -> String -> <WriteGraph> Resource
createSCLScriptWithDefinition :: Resource -> String -> String -> <WriteGraph> Resource
executeSCLScript :: Resource -> <Proc,Exception> () Shorthand for Before Simantics 1.52.0 this function only used to schedule the script execution like
executeSCLScriptF but was changed to wait until the script
execution finishes because the original behavior made no sense in under any real
circumstances. The old behavior can be mimicked using
executeSCLScriptF :: Resource -> <Proc> Future String
The function only schedules the script execution and returns immediately
with a The output of the script will be delegated primarily to the reporting handler attached to the current SCL execution context. Secondarily, if the platform UI workbench is running, output will be pushed to SCL Script Output view. Otherwise output will be pushed to the default logging reporter.
setSCLScriptDefinition :: Resource -> String -> <WriteGraph> Resource
Ontology definitions (PGraphs)PGraph (partial graph) is a textual format for specifying ontologies for Simantics. For more information on the format, see this documentation. createPGraphAction :: Resource -> <Proc> () createPGraphDefault :: Resource -> <WriteGraph> () createPGraph :: Resource -> String -> <WriteGraph> () Use createPGraphR instead. createPGraphR :: Resource -> String -> <WriteGraph> Resource
setPGraphDefinition :: Resource -> String -> <WriteGraph> Resource |