Eclipse.org Eclipse.org - Device Kit

Using the transport wizard

This section provides instructions to use the transport wizard to create transports. Refer to the information in this section to understand how to use the transport wizard and for descriptions of the fields in the transport wizard. Refer to Examples for instructions to use the device wizard to create transports for specific devices.

  1. Change to the Java perspective by clicking the Open a Perspective button on the left side of the WebSphere Studio Device Developer interface.
  2. Create a new project by clicking the Open the New Wizard button

    on the right side of the interface.

  3. Open the Transport wizard by selecting Device Kit in the left pane and by selecting Transport in the right pane on the New panel. Then click Next.

    Figure 4. Open transport wizard panel



  4. Enter the appropriate information into the text boxes and select Create test project if you would like a test project to be generated.
  5. Refer to the following table for descriptions to complete the fields on the Transport panel. After you complete the fields, click Finish to create the new transport.

    Table 3. Transport fields and descriptions


    Field Description
    Transport Name Specify the unique name for this transport.
    Note:
    Do no use the word "Transport" in the name you specify. The wizard automatically appends "Transport" to the name when the transport is created.
    Package Base Specify the package base to use to generate Java.
    Version Specify the version number that you want to assign to your transport.
    Vendor Specify the appropriate vendor for the transport.
    Description Specify a description for your transport. This field is optional.
    Response Timeout Specify a response timeout for the transport. The response timeout is the time in milliseconds that the transport will wait on a response. optional.
    Connection Specify the connection used by the transport This field is optional.
    Connection Implementation Specify an implementation of the transport service that you selected.
    Note:
    This option is only available if you use a custom connection.
    Create Test Project Select Create Test Project to generate a test project.
    Abstract Transport Select Abstract Transport if the transport will be a superclass. If this option is selected, a transport test project cannot be created.
    Generate a processInput Method Select Generate processInput Method if the transport should implement the processInput method which is used to process incoming bytes from the transport.
    Generate a write Method Select Generate write Method if the transport should implement the write method which is used to process outgoing bytes.
    Generate a Bundle Activator Select Generate a Bundle Activator to generate a bundle activator for the transport.
    Generate a Managed Bundle Activator Select Generate a Managed Bundle Activator to generate a managed bundle activator for the transport.
    Generate a Managed Factory Bundle Activator Select Generate a Managed Factory Bundle Activator to generate a managed factory bundle activator for the transport.

    Figure 5. New transport wizard


    Transport Wizard

    After you create a new transport with the transport wizard, the Device Kit creates a new project in your workspace. The name of this project is the name that was entered for Transport Name followed by "Transport".

    If you selected Create test project, the Device Kit creates a second new project in your workspace. The name of the test project is the name that was entered for Transport Name followed by "TransportTest".