Provides Utility Functions and ShinyApps to work with Simplace


[Up] [Top]

Documentation for package ‘simplaceUtil’ version 0.6.5

Help Pages

addComponentInput Adds an input to a sim component.
addCSVOutput Adds a new CSV output to solution.
addMemoryOutput Adds a new memory output to solution.
addOutputVariable Adds output variable to an existing output
addTimingSimComponent Adds elements for timing the execution time of sim components (and transformers)
addUserVariable Adds an user variable to the 'variables' section
changeAllOutputTypesToMemory Changes all non-MEMORY outputs from solution to MEMORY outputs.
changeOutputType Changes the type of an output from CSV to MEMORY or vice versa
componentsToGraph Creates a graph from component and links dataframe
createCodeStubsForSimVariables Create java and xml code stubs from a csv file
createCsvResourceStubs Creates XML stubs for interface and resource section from CSV file structure
createXmlResourceStubs Creates XML stubs for interface and resource section from XML file structure
filterEdges Selects edges of specific timestep
getComponents Gets components for a solution
getElementsFromSolutionFile Get component and links dataframe from solution file
getLinkingFromComponent Get components that are linked from given component
getLinkingToComponent Get components that link to given components
getLinks Get the dataframe of links between components
getMemoryOutputIds Get ids of memory outputs
getNeighborhood Get the simcomponents in the neighborhood of given components
getSolutionFromFile Reads a solution from file
getSolutionFromText Reads a solution from text
getSolutionInfoAsDataframe Get info for a solution
getTextFromSolution Converts a solution to text
getUserVariables Gets user variables for a solution
parseDate Converts date (class 'character') column from output file to column of class 'Date'
plotLayeredOutput Plots layered output
plotScalarOutput Plots scalar output
removeComponentInput Removes an input for component
removeNonMemoryOutputs Removes all non-MEMORY outputs from solution.
removeOutput Removes output with given id
removeOutputVariable Removes an output variable from a given output
replaceVariable Replaces a variable with another.
replaceVariablesWithValues Replaces variables with content
runSimplaceGuiApp Runs Shiny app
setInputValue Sets the value of an input for a given parent element
setInputValueForCategory Sets the value of an input in all elements of the given category
simplaceUtil Package with utility function for working with Simplace
solutionToGraph Creates a graph from a solution
swapComponents Swaps the order of SimComponents in the solution
transformLayeredData Transform layered output data in long format
writeSolutionToFile Writes solution to file