12.7 PowerNet - Network Interface
12.7.1 Introduction
PowerNet is the most powerful plug-in included in VEGA ZZ because it's a bridge between VEGA ZZ and the other applications trough the TCP/IP protocol. These applications can run on the local machine:
or on remote machine:
PowerNet adds to VEGA a TCP/IP port that is usable to send and receive command-line instructions, working in the same way of a POP3 server. An interface application example is the REBOL scripting language that is useful to create simple scripts to automate the most common procedures. PowerNet allows to communicate virtually with all applications that include a minimalist TCP/IP client. PowerNet includes the access control in order to protect your system by hacking attacks from Internet.
12.7.2 Configuration
The configuration interface can be displayed from the main menu clicking on Tools -> Plugin configuration -> PowerNet, or using the plug-in manager (Tools -> Plugin configuration -> Manage). The configuration parameters are stored in the Plugins\plugins.ini file.
12.7.2.4 PDB Tab
PowerNet adds to VEGA the capability to connect to PDB archives and to download directly the structures from these databases (click here for more information). In this tab, you can specify your preferred PDB server and the string required to query the database. The downloaded files can be removed from the disk immediately after the download or stored in a specified folder (Store directory) in order to build a personalized local database. Special tags can be used in these fields that can be automatically completed by PowerNet: %PDBID% = PDB entry ID.
|
![]() Default settings: |
![]() Default settings: |
12.7.2.5 REBOL tab
PowerNet adds to VEGA the capability to manage REBOL scripts trough the graphic interface (see script section). In this tab you can change the REBOL interpreter and the directory path in which the REBOL scripts are placed. PowerNet includes the REBOL/core package but you can use other distributions with more features like the REBOL/view that can be used to create in simple way graphic interfaces for your scripts. For more information about REBOL and REBOL/view please click here. |
12.7.3 Testing the configuration
In order to check the TCP/IP configuration, you can use a simple telnet client (e.g. telnet.exe included in Windows), follow this procedure:
Start VEGA.
Open the command prompt from the Windows Start menu.
Type: telnet loclahost 2000 (or another port number if you changed it).
If the connection was done correctly, the message +OK PowerNet for VEGA is shown.
If you enabled the password check, you must type
(¶ = return/enter key, red = that you type, black = result
from VEGA):
user UserName¶
+OK Password required
pass Password¶
+OK Access authorized
If you disabled the password check and you type the user and/or pass commands, the access is always authorized.
Please remember that all commands are case insensitive and the PowerNet server doesn't have got the echo.
At this step, you can type all VEGA commands (menu
and extended commands) trough the telnet client. As an example:
get CurLang¶
english
mNew¶
+OK
For more information, see the main menu and the extend command sections.
Type CTRL+D to close the connection.
Another PowerNet feature is the interface to download the PDB structures directly into the VEGA framework. To set this service, please refer to the configuration section. Picking the PDB download item from VEGA File menu, you can access to the interface window:
In the PDB Id field you must put the PDB
entry code and when done, you must press the button. PowerNet before starting a new download from
PDB, checks if the molecule is already present in the local database and ask you to
proceed with the new download or to use the local file (see the configuration
section to create a local PDB database). The status bar indicates the download
progress and if an error occurs. When the download ends, the structure is automatically
loaded in the VEGA workspace.
At the present time, PowerNet supports the direct execution of DOS and REBOL scripts only, but in the future can be added the integration with other languages. The scripts files must be placed in the scripts directory (or in its subdirectories), as explained in the configuration section. The scripts can be managed selecting Run script from the VEGA File menu:
This dialog box allows to create, edit, run, rename, delete and move your scripts. The structure of the Scripts directory is shown as a tree that can be explored with the keyboard (cursor arrows, home, end, pg. up, pg. down and enter keys) and with the mouse:
Selecting a script, you can run it pressing the button or you can
manage it showing the context menu:
By the context menu you can run and edit the selected script, rename, delete and create (New) scripts and directories. You can move scripts and directories from a folder to another also trough drag & drop operations. The Update item is useful to refresh the script list.