Through the use of user-defined variables, users can create their own models within WEAP. Collections of user-defined variables can be packaged into "Plugins" so that they can be added to an existing WEAP area all at once.
A plugin contains a set of user-defined variables, built-in variables for which you have changed the default expression, user-defined units used by those variables, event scripts, other files, a short description (up to 1000 characters) and complete documentation (in rich text format).
Each WEAP area can have one or more plugins loaded. Use the Plugins screen (below) to manage the plugins for the current area, and to create new plugins to use in your other WEAP areas or to share with others.
The following shows an example of a simple plugin named "Reservoir Evaporation (Hargreaves)" that is loaded into Weaping River Basin:
Highlight a plugin from the list on the left to see its details on the right. In the example above, the Summary tab shows the plugin's name (in bold), short description, list of the built-in and user-defined variables (both data and result), and a version history. The Variables tab gives the full details on all included variables; the Events tab lists any included event scripts (e.g., Before Calculation, After Scenario Calculation); the Files tab lists any included files; the Notes tab shows the full documentation.
The toolbar at the top gives access to a variety of options for managing plugins:
Import: Copy and apply an existing plugin from another WEAP area into the current area.
Download: Download and apply plugins from the WEAP website.
Create: If you have already created a few user-defined variables (in this area), you can create a new plugin.
Edit: Make changes to the highlighted plugin: name, description, variables, event scripts and files included and complete documentation. You can paste rich text from Microsoft Word (or other word processing software) into the Notes tab, and vice versa. Be aware that pasting large embedded graphics into the notes can make the plugin files quite large, and harder to share with others.
Delete: Delete the highlighted plugin. You can either keep or delete the user-defined variables contained in the plugin from your area.
Email: Send the highlighted plugin as an email attachment. WEAP will automatically package up the plugin into a single file with the file extension .WEAPPlugin. Note: The .WEAPPlugin file is a special format recognized by WEAP -- your recipient can simply double-click the .WEAPPlugin file attachment and WEAP will automatically apply it to the current area. (In the example above, the plugin file would be named "Reservoir Evaporation (Hargreaves).WEAPPlugin")
Backup: Save the highlighted plugin as a .WEAPPlugin file to any folder on your computer.
Menu option: Advanced, Plugins