Versions Compared

Key

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

...

Code Block
        <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>

...

Configure Display

The thresholds display does not require a display configurations file. It obtains all information for thresholds configuration that is already available in the ThresholdsValueSets.xml file and also in the TimeSeriesDisplayConfig.xml file.

Firstly the most information is retrieved from the ThresholdValueSets file. Here is where all threshold levels are configured and how they relate to timeseries sets. For the purpose of the Thresholds Display some configuration options have been added to this file to control the view period and visibility of the threshold events.

EventTimeViewPeriod

This configuration option consists of a relative view period that controls which threshold events are shown in the display by default. The relative period is converted to an absolute period based on the current system time. Only threshold events will be shown if their Event Time lies within the configured period. Changing the System Time is one way to change  the view period the events.

Code Block
<?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>