Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "COSMOS SDD Tooling Examples"

(Creating SDDs)
(Creating SDDs)
Line 9: Line 9:
 
The SPI is controlled through one instance of a session. In order to use any methods in the SPI, a session must first be created.
 
The SPI is controlled through one instance of a session. In order to use any methods in the SPI, a session must first be created.
  
<code>
+
<code><pre>SPISession spi = SPISession.DEFAULT_INSTANCE;
SPISession spi = SPISession.DEFAULT_INSTANCE;
+
BaseFactory baseFactory = spi.createBaseFactory();</pre></code>
BaseFactory baseFactory = spi.createBaseFactory();
+
</code>
+

Revision as of 15:50, 3 October 2008

This page contains examples of how to use various functions of the SDD tooling. Please use these examples as references as you create your own applications.

SDD Programmatic Interface

The SPI is used to read and write SDDs with a Java interface. These examples will take the reader through reading, writing, and creating SDDs.

Creating SDDs

The SPI is controlled through one instance of a session. In order to use any methods in the SPI, a session must first be created.

SPISession spi = SPISession.DEFAULT_INSTANCE;
BaseFactory baseFactory = spi.createBaseFactory();

Back to the top