Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The thresholds display can be activated by adding the following explorer task in the Explorer.xml file:

Code Block
languagexml
        <explorerTask name="Events">
            <iconFile>table.png</iconFile>
            <mnemonic>T</mnemonic>
            <taskClass>nl.wldelft.fews.gui.plugin.thresholdeventsviewer.ThresholdEventsTableViewer</taskClass>
            <toolbarTask>true</toolbarTask>
            <menubarTask>true</menubarTask>
            <allowMultipleInstances>false</allowMultipleInstances>
            <accelerator>ctrl T</accelerator>
            <loadAtStartup>false</loadAtStartup>
        </explorerTask>

...

Each thresholdValueSet file can contain a single EventTimeViewPeriod element. When multiple thresholdValueSet files are configured and they each have their own relative period then the overal view period is an extension of all the individual view periods.

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<thresholdValueSets xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/thresholdValueSets.xsd">
  <thresholdValueSet id="010H" name="H 010">
  ...
  </thresholdValueSet>
  <eventTimeViewPeriod start="0" end="7" unit="day"/>
</thresholdValueSets>

...

This configuration options allows you to control the visibility of threshold values. The 'visibleInEventsDisplay' field can be set for each threshold value separately. By default all threshold values are visible. To hide none interesting threshold values from being shown in the display, they must have their visibleInEventsDisplay value set to 'false'.

Code Block
languagexml
  <thresholdValueSet id="013H" name="H 013">
    <levelThresholdValue>
      <levelThresholdId>Alarm</levelThresholdId>
      <value>8.10</value>
      <visibleInEventsDisplay>false</visibleInEventsDisplay>
    </levelThresholdValue>
    ...

...

The second place where the thresholds display retrieves configuration information is in the TimSeriesDisplayConfig file. This file already contains an element that allows you to control the colors of the threshold values shown in the TimeSeries dialog. This section is also used by the threholds display to color the text in the Threshold Id column.

Code Block
languagexml
    <thresholdDisplayConfig>
        <thresholdDisplayOptions id="Alarm">
            <color>orange</color>
        </thresholdDisplayOptions>
        <thresholdDisplayOptions id="AlarmFase1">
            <color>orange red</color>
        </thresholdDisplayOptions>
        <thresholdDisplayOptions id="AlarmFase2">
            <color>red</color>
        </thresholdDisplayOptions>
        <thresholdDisplayOptions id="AlarmFase3">
            <color>indian red</color>
        </thresholdDisplayOptions>
    </thresholdDisplayConfig>

...