OTX-Runtime for Java
|
|
The OTX-Runtime API can be used to browse inside the OTX data structure. Main use cases are:
Before browsing the following preconditions must be met:
3. A PTX or PPX file must be loaded, see LoadPtxNote: A RuntimeManager instance can be created inside the main thread or inside a new thread.
Note: The PTX file must contain the executable binary format, which can be created inside the OTX Development Environment.
The following diagram shows the main OTX data structure. The root element is the OTX Project. The project must contain one or more Packages. A package can contain another package in an arbitrary depth or it can contain one or more Documents. A document contains the Procedures and all global declarations like StateVariables and/or ContextVariables. A procedure can have one or more ProcedureParameters.
Note: One Document inside a Project is marked as IsStartup. This Document can contain a Main-Procedure. This main procedure can get quickly via the Project method GetMainProcedure.