Skip to content
dmonsch edited this page Nov 8, 2019 · 4 revisions

Using the provided API for Java

The use of the offered API implementation is straightforward and prevents potential pitfalls. For example, it provides methods to prepare the PCM models for the simulation (building of the transitive closure and conversion of absolute paths to relative ones). Otherwise these tasks have to be performed manually, or you have to make sure in advance that the models are also valid on a different system. To be able to use the API for Java, you simply have to integrate the JAR (which is provided under Releases) into your application. Be sure to choose the correct version for your use case ("-with-dependencies.jar" if you do not have any PCM related library included in your application, "-slim.jar" if your application already consists of the PCM libraries).

Structure for using the API

def index
  puts "hello world"
end

Example 1

Example 2

Using the REST interface directly

DEF

Clone this wiki locally