New Subnet. This button creates new subnet.

Delete Subnet. This buttons deletes the current subnet.

Normal State. Click this button and then click anywhere in current subnet to add normal state.

Select State. Click this button and then click anywhere in current subnet to add select state.

Order State. Click this button and then click anywhere in current subnet to add order state.

Range State. Click this button and then click anywhere in current subnet to add range state.

Return State. Click this button and then click anywhere in current subnet to add return state.

Stop State. Click this button and then click anywhere in current subnet to add stop state.

Finish State. Click this button and then click anywhere in current subnet to add finish state.

Arrow/Link. Click this button and then click two states you want to connect.

Lock Nodes

Lock Links

Show Grid. This button shows grids in subnet

Save

Compile. This button compile your project

Trace. This button compile your project, then starts tracing.

Compile&Run. This button compiles and runs your project.

Print

Zoom in

Zoom out

Copy. This button copies selected elements in subnet

Cut. This button cut selected elements in subnet

Paste. This button pastes elements to subnet

Delete. This button deletes selected elements in subnet

Undo.

Redo.

Select All. Selects all elements in current subnet.

Edit Mode

Text Font. You can change text font.

Text Size. You can change text size.

You can change text to bold, italic and underlined.

Align Horizontal

Align Vertical

Properties

bring _to_front

send_to_back

align

size

Graph View

Text View

Spider Unit

Console Main

Main Network

SubNetwork

Workspace

file

edit

objects

view

help

Home>>CNP IDE

IDE General Overview

CNP IDE is used to create CNP application. This IDE is integrated to Lazarus (Free Pascal Compiler). You should open Spider CNP Environment from Lazarus. You will see the environment like image below after selecting Tools > Spider CNP Environment in Lazarus. You can mouse over image to see more detail.

new_subnet delete_subnet normal_state select_state order_state range_state return_state stop_state finish_state arrow lock_nodes lock_links show_grid save compile trace compile_run print zoom_in zoom_out copy cut paste delete undo redo select_all edit_mode text_font text_size bold_italic_underline align_horizontal align_vertical properties bring _to_front send_to_back align size graph_view text_view spiderunit consolemain mainnetwork subnetwork worksapce file edit objects view help

Graphical View and Edit

In Graphical you are able to create subnets interactively and see your subnet. You can select states from menu connect them with arrows/links. You can also add primitives to arrows/links, set state's options and other features using object inspector. Created subnets in graphical view added automatically to text view. Spider Compiler uses this information for subnets.



Text View

Text View contains all information of subnets. You can create subnets with using either Text View or Graphical View, but when you edit Text View you can not edit and see your subnet in Graphical View. In project folder SpiderNet.txt is corresponding file for Text View.



SpiderUnit

In SpiderUnit you can define global variables, primitives and functions. These variables and primitives are accessible from subnets.



Console Main

Console Main is consists integration codes with Lazarus. Codes to print total solutions found are added in this section.



Object Inspector

Object inspector is tool to set features of subnets, states, arrows. It can be opened with selecting View > Show Object Inspector.


Subnet

When you open object inspector for a subnet you are able to;

  • change name of the subnet
  • define global options
  • define subnet options
  • define subnet parameters
  • define subnet variables


Trace

Tracing is an important feature of Spider Compiler. You can see how your code is implemented step by step, and debug your code. You can start tracing by pressing button. When tracing is started trace menu shows up like below. In tracing you are able to see;

You can pause tracing on every;

Stop on every subnet

Stop on every state

Stop on every arrow/link

Stop on every primitive

Stop on every stop state

Stop on every finish state

Continue after stop

Execution Speed

Start Execution

Terminate Execution

Trace Monitor

Workspace

stop_subnet stop_every_state stop_every_arrow stop_every_primitive stop_every_stop stop_every_finish continue_after_stop execution_speed execution_start execution_terminate trace_area work_space
Home>>CNP IDE