== 8.8 Apply mediation == The ''Apply mediation'' form (''Time dynamic (Ecosim) > Input > Mediation > Apply Mediation'') is used to apply the trophic mediation functions you defined using the Mediation form. Before using the ''Apply mediation'' form, you must first define at least one trophic mediation function following the [wiki:EwEugMediation instructions for using the Mediation form]. It is recommended you first read the introductory material on [wiki:EwEugLinkingMediationAndTimeForcingFunctionsToTrophicInteractionRates Linking mediation and time forcing functions to trophic interaction rates] to understand how trophic mediation functions are applied in Ecosim. Selecting ''Apply mediation'' opens a form that consists of a grid representing predator (j) / prey (i) interactions (Figure 8.13). Predators are represented in columns with prey in rows. Predator/prey interactions, as defined in the [wiki:EwEugDietComposition Diet composition] are indicated by white cells. 1. To apply a trophic mediation function, click once in the i,j cell representing the predator/prey interaction to which you wish to apply the function. This will open the ''Apply forcing and mediation functions'' dialogue box (Figure 8.14). The affected prey and predator group will be displayed at the top of the form. Next, select the parameter to which the mediation multiplier is to be applied using the radio buttons at the bottom of the dialogue box. There are four possible options: 1. Multiply overall predator rate of effective search (''a,,i,j,,''), for example to represent time-varying turbidity changes that affect predator search efficiency or mediation effects of algal biomass on search efficiency. 1. Multiply vulnerability exchange rate (''v,,i,j,,''), for example to represent increased movement rates of prey into vulnerable behavioural state at times when water mixing rates are higher; 1. Multiply area of foraging arenas (divide ''a,,i,j,,'' by multiplier), for example to represent increase in habitat area available for juvenile fish refuges; 1. Multiply area (divide'' a,,i,j,,'') and also multiply ''v,,i,j,,,'' for example to represent increase in safe foraging habitat available to a predator that feeds on prey that become available in foraging arenas through passive drift/mixing processes such that increasing area used by predator results in higher proportion of total prey population being available in foraging areas at any moment. The selected modifier will be shown in the ''Applied shape function''s window (Figure 8.14). 2. Next, select the desired mediation shape from the____Available shape functions____window at the left of the dialogue box by clicking the green arrow. This will move the shape function into the Applied shape functions window. You can remove a shape from this window by clicking the remove button immediately below the green arrow. Note that a common form is used to apply Mediation and [wiki:EwEugForcingFunction Seasonal/Forcing] functions. __Do not select a seasonal or forcing function__. 3. Finally, click ''OK''. You should see the number of the mediation function (preceded by 'M') you selected in the predator/prey cell. Note that you can apply up to five seasonal, forcing and/or mediation functions to each predator-prey interaction. '''Clear all''' You can clear all applied seasonal, forcing and/or mediation functions from the predator-prey grid by selecting'' Clear all'' from the top of the ''Apply mediation'' form. To apply a mediation function to the interactions between a particular predator and all of its prey species, click on the number of the predator at the top of the form. When the ''Apply forcing and mediation functions'' dialogue box opens you will see a message at the top of the box reflecting that all the prey are affected. [[Image(wiki:EwEugImages:ApplyMediation_sc.bmp)]] '''Figure 8.13''' The'' Apply mediation'' form. [[Image(wiki:EwEugImages:ApplyForcingMediationDialogue_Med_sc.bmp)]] '''Figure 8.14''' The ''Apply forcing and mediation functions'' dialogue box. Select only Mediation shapes.