SoftPkg Editor

The SoftPkg Editor presents all the content that can be found within the spd.xml file in an editing environment designed for ease of use.

SoftPkg Editor

To open the SoftPkg Editor, double-click a Software Package Descriptor (SPD) file from the Project Explorer view. If the SPD file references a Properties File (PRF) or Software Component Descriptor (SCD) file, additional tabs are made available that represent these files in similar fashion.

Each of the editor tabs, with the exception of the raw XML tabs, have the following buttons located in the top right corner:

The SoftPkg Editor is organized into four main tabs:

The following sections describe each of these tabs.

Overview Tab

The Overview tab is a representation of content found in the SPD file and contains five sections:

  1. The General Information section provides the ability to view and set (if write permissions are granted) the resource’s ID and Name as well as the location of the PRF and SCD files. The initial content of these fields is auto-generated when the project is created and is generally left unaltered. The optional fields, Version, Title, and Description, may be set to aid in the project’s documentation.
  2. The Interfaces section lists the Interface Description Language (IDL) interfaces that this resource inherits. This includes IDLs used by the resource’s ports, lifecycle, and properties. This table is read only, and additional IDL interfaces cannot be added here.
  3. The Component Content section displays hyperlinks to navigate to the Properties and Implementations tabs of the SoftPkg Editor.
  4. The Testing section displays two hyperlinks. Launch a local component launches a local instantiation of this resource within the Sandbox. Launch a local component in debug mode provides additional runtime control, including the ability to place breakpoints, pause execution, and inspect and modify variables. See Debugging REDHAWK Components and Devices with Eclipse for more information.
  5. The Exporting section provides a hyperlink for deploying a project to the SDRROOT. Use the following procedure to export a project using the Export Wizard:

    1. Click Export Wizard.
    2. Select the projects to export.
    3. Type or browse to the export location.
    4. Click Finish.

Properties Tab

The Properties tab provides a view of all of the properties defined for a component or device.

SoftPkg Editor Properties Tab
SoftPkg Editor Properties Tab

Within the Properties tab, the All Properties section displays all of the properties defined for the selected component or device.

To add a property, click on one of Add Simple, Add Sequence, Add Struct or Add StructSeq to create a new property of the corresponding type. To remove a property, select it in the All Properties section and click the Remove button on the right. To clone existing properties, click Browse… and select from items in the SDRROOT, projects in the workspace, or well-known properties. In addition to creating a new property from scratch, a user may also copy an existing property from a deployed resource:

  1. In the All Properties Section, click Browse….
  2. Expand Target SDR.
  3. Drill down to and select the desired property.
  4. Click Finish.

When a property is selected in the All Properties section, a type-specific details section appears on the right-hand side of the tab. All property types include a few common fields:

Nested properties—fields in a struct, or the struct definition for a struct sequence—do not include Kind or Mode. The parent property determines these fields.

The Simple Property details section includes additional fields:

Ordinarily, properties are set to their initial value via a call to the component or device’s initializeProperties() method. However, for certain use cases, simple properties may receive their initial value on the executable command line by enabling the Pass on command line checkbox, located next to Kind.

In the Simple Sequence details section, the fields Type, Units, Action and Range are identical to those for simple properties. The default value of a simple sequence property can be viewed or edited via the Values list.

The fields that make up a struct property are displayed as children of the struct in the All Properties section.

The default value of a struct property is the determined by the default values of its fields.

If any field has a default value, all fields must have a default value.

The default value of a struct sequence may be viewed or edited via the StructValue section in the Struct Sequence Property details section.

The struct definition appears as a child of the struct sequence in the All Properties section. It may be modified in the same manner as a struct property.

Ports Tab

The Ports tab provides the ability to add, edit, and view port information.

SoftPkg Editor Ports Tab
SoftPkg Editor Ports Tab

Click Add to create a new port with default values. The Port Details section shows the new port, which can be modified as needed:

Only Message Consumer ports should be bidirectional.

An existing port may be edited by selecting it from the All Ports section and changing its options via the Port Details section.

To remove a port, select it from the All Ports section and click the Remove button.

Implementations Tab

The Implementations tab is a representation of content found in the SPD file. It describes the programming language implementations that are generated and the hardware dependencies required for this resource.

SoftPkg Editor Implementations Tab

During the New Project Wizard, the initial programming language and code generation template were selected. In the All Implementations section there is the option to add additional programming language implementations.

The right portion of the editor is context sensitive, and displays the information pertaining to the selected implementation.