|
Module Simantics/MiscThis module is undocumented. This is a list of its definitions. bundleFile :: String -> String -> File
Returns the file at canDelete :: Resource -> <ReadGraph> Boolean Returns canRename :: Resource -> <ReadGraph> Boolean Always returns createDependencyChangeListener :: <Proc> Boolean -> (MetadataI -> DependencyChanges -> <ReadGraph,Proc> ()) -> ChangeListener
Creates a database change listener that reports the dependency changes of
each completed write transaction. Before the changes are computed, currentDate :: String -> String Formats the current date and time with the given currentTimeMillis :: <Proc> Long Returns the current time as the number of milliseconds since the start of 1 January 1970 UTC. deleteMBNode :: [Resource] -> Boolean Removes the given resources in a write transaction of its own, using the
remover each resource adapts to and skipping the ones that have none.
Marks an undo point and records the removals in the change metadata.
Returns getSystemProperty :: String -> Maybe String Returns the value of the Java system property with the given name, or
hasNext :: Scanner -> Boolean Returns hasSomethingToPaste :: Resource -> <ReadGraph> Boolean Returns javaRandom :: () -> Double Returns a pseudorandom number that is at least 0.0 and less than 1.0, from the random generator shared by the whole Java virtual machine. killPlatform :: () -> () Shuts the Simantics platform down. Does the same as killPlatformRead :: () -> <ReadGraph> () Does nothing. Breaking the platform out of a running read transaction is not implemented. killPlatformWrite :: () -> <WriteGraph> () Does nothing. Breaking the platform out of a running write transaction is not implemented. loop :: Scanner -> String -> Pattern -> [String] -> <Proc> [String]
Reads the rest of the scanner one line at a time and, for every line that
matches An ad hoc helper for picking values out of a text file, not a general purpose function. loop1 :: Scanner -> [String] -> <Proc> [String]
Reads the rest of the scanner one line at a time, trims each line and appends
it to loop2 :: Scanner -> [String] -> Boolean -> <Proc> [String]
Reads the rest of the scanner one line at a time and appends a line to An ad hoc helper for picking values out of one kind of text file, not a general purpose function. loop3 :: Scanner -> [String] -> <Proc> [String]
Reads the rest of the scanner one whitespace separated token at a time and
appends every token containing An ad hoc helper for picking values out of one kind of text file, not a general purpose function. loop4 :: Scanner -> [String] -> Boolean -> <Proc> [String]
Reads the rest of the scanner one whitespace separated token at a time,
appends every token to nextLine :: Scanner -> String Reads the rest of the current line, moves the scanner past the end of that line and returns the text read without the line separator. Fails if the scanner has no line left. queryPreference :: String -> String -> <ReadGraph> String
Returns the value of the Eclipse preference reconnectPlatform :: () -> () Reconnects the platform to its database using the default database driver. scanNext :: Scanner -> String Reads the next whitespace separated token and moves the scanner past it. Fails if the scanner has no token left. scanNextLine :: Scanner -> String Another name for scanner :: File -> <Proc> Scanner Opens the given file for scanning, using the default character encoding of the platform. Fails if the file cannot be opened. There is no function here for closing the scanner again. setSystemProperty :: String -> String -> <Proc> String
Sets the Java system property shutdownPlatform :: () -> () Shuts the Simantics platform down. sleep :: Integer -> <Proc> () Suspends the calling thread for the given number of milliseconds. If the wait is interrupted it ends early and the interruption is only written to the log. syncGraph :: () -> <Proc> () Waits until the database has no activity left and every running database job has finished, and then runs an empty write transaction to make sure that earlier writes have gone through. Fails if called while a transaction is already in progress. synchronizeOntologies :: () -> <Proc> () Brings the ontologies stored in the database up to date with the ones installed in the platform, merging in what has changed, and flushes the query cache afterwards. This writes to the database. trackDependencies :: <Proc> () Starts tracking the dependency relation of the whole database and indexes it once from the root library, so that dependency queries and the search index keep up with later writes. Runs a read transaction of its own and walks everything, so it is expensive on a large database. trackOntologicalRequirements :: <Proc> () Starts listening to completed writes and enforcing after each one what the ontologies require of the data: creation and modification information is recorded for the components that changed, and resources whose type calls for an identifier are given one. Does nothing while dependency indexing is disabled. untrackDependencies :: <Proc> () Stops tracking the dependency relation of the whole database. Does nothing if no session is open. Runs a read transaction of its own. untrackOntologicalRequirements :: <Proc> () Stops the listener started by workspaceDirectory :: () -> File Returns the workspace directory the platform is running against. |