Processor Editor

With a Processor Editor, you can create a processor flow by clicking and dropping the state icons and transitions from the palette onto the canvas.

A BTT Processor Editor consists of the following views:

  1. Toolbar: you can change the appearance of the processor editor using tools in the toolbar. The following table illustrates some of the tools in the toolbar:
    Table 1. Tools in the toolbar
    Section Item Description
    Select
    Select All
    Selects all the elements in the diagram.
    Select All Shapes
    Selects all the shapes in the diagram.
    Select All Connectors
    Selects all the connectors in the diagram.
    Arrange
    Arrange All
    Adjusts automatically the layout of all the elements in the diagram.
    Arrange selection
    Adjusts automatically the layout of all the selected elements in the diagram.
    Align
    Align Left
    Aligns all the selected elements in the diagram to the left.
    Align Center
    Aligns all the selected elements in the diagram to the center.
    Align Right
    Aligns all the selected elements in the diagram to the right.
    Align Top
    Aligns all the selected elements in the diagram to the top.
    Align Middle
    Aligns all the selected elements in the diagram to the middle.
    Align Bottom
    Aligns all the selected elements in the diagram to the bottom.
     
    Auto Size
      Resizes automatically the selected diagram elements.
  2. Palette view:

    The palette consists of three sections: general, the processor and the transition, as shown in the following screen capture:

    Screen capture showing the palette of processor editor

    You can define the number of state and transition type by the configuration in class table of processor definition in btt configuration file. For example, if you define state and its implement class in processor class table section in btt configuration file:
    <field id="state" value="com.ibm.btt.automaton.DSEState" />
    the "state" entry appears in the palette.
    Table 2. Items in the palette of the Processor Editor: General, Processor, and Transition
    Section Item Description
    General Select Selects an element in the diagram.
    Zoom Zooms into your diagram; if you press Shift, zooms out of your diagram.
    Processor State Creates a state.
    htmlState Creates an htmlState.
    operationState Creates a operationState.
    syncProcState Creates a syncProcState.
    xuistate Creates an xuiState.
     
    Transition transition Creates a transition between the states to show the relation between the states.
    htmlTransition Creates a htmlTransition between the states to show the relation between the states.
  3. Properties view:

    To open Properties view, click Window > Show View > Properties. The title of the Properties view shows the type and name of the element.

    You can modify the properties of an selected element in the Properties view.

    • The property of processor:

      Click the processor, the properties of the processor is displayed in the Properties view. There are three sub tabs:

      • General Tab: defines the general properties, such as ID and Context.
      • Appearance Tab: defines the fonts and colors.
      • Rules & Grid Tab: defines the display, measurement and gird line.
    • The property of state:

      Click a state, the properties of the state is displayed in the Properties view. There are four tabs:

      • General Tab: defines the general properties, such as ID and type.
      • EntryActions Tab: defines the entry actions and action attributes.
      • ExitActions Tab: defines the exit actions and action attributes.
      • Appearance Tab: defines fonts and colors.
    • The property of transition:

      Click a transition, the properties of the transition is displayed in the Properties view. There are three tabs:

      • General Tab: defines the general properties, such as ID.
      • TransitionActions Tab: defines the transition actions and action attributes.
      • Appearance Tab: defines fonts and colors.
  4. Outline view

    The Outline view displays an outline of the processor elements, context elements, data elements and operation elements. The structure of each category can be seen in the outline.