BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.beastui.web.controller.VolumeRoutesController Class Reference

Public Member Functions

 VolumeRoutesController ()
 
void setManager (IRouterManager manager)
 
void setAdaptorManager (IBltAdaptorManager adaptormanager)
 
void setRuleUtilities (IRuleUtilities utils)
 
void setAnomalyDetectorManager (IAnomalyDetectorManager anomalymanager)
 
String createRoute (Model model, @RequestParam(value="name", required=false) String name, @RequestParam(value="author", required=false) String author, @RequestParam(value="active", required=false) Boolean active, @RequestParam(value="description", required=false) String description, @RequestParam(value="ascending", required=false) Boolean ascending, @RequestParam(value="mine", required=false) Double mine, @RequestParam(value="maxe", required=false) Double maxe, @RequestParam(value="elangles", required=false) String elangles, @RequestParam(value="adaptive_elangles", required=false) Boolean adaptive_elangles, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="interval", required=false) Integer interval, @RequestParam(value="timeout", required=false) Integer timeout, @RequestParam(value="nominal_timeout", required=false) Boolean nominal_timeout, @RequestParam(value="sources", required=false) List< String > sources, @RequestParam(value="detectors", required=false) List< String > detectors, @RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode, @RequestParam(value="filterJson", required=false) String filterJson)
 
String showRoute (Model model, @RequestParam(value="name", required=false) String name, @RequestParam(value="author", required=false) String author, @RequestParam(value="active", required=false) Boolean active, @RequestParam(value="description", required=false) String description, @RequestParam(value="ascending", required=false) Boolean ascending, @RequestParam(value="mine", required=false) Double mine, @RequestParam(value="maxe", required=false) Double maxe, @RequestParam(value="elangles", required=false) String elangles, @RequestParam(value="adaptive_elangles", required=false) Boolean adaptive_elangles, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="interval", required=false) Integer interval, @RequestParam(value="timeout", required=false) Integer timeout, @RequestParam(value="nominal_timeout", required=false) Boolean nominal_timeout, @RequestParam(value="sources", required=false) List< String > sources, @RequestParam(value="detectors", required=false) List< String > detectors, @RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode, @RequestParam(value="filterJson", required=false) String filterJson, @RequestParam(value="submitButton", required=false) String operation)
 

Protected Member Functions

String viewCreateRoute (Model model, String name, String author, Boolean active, String description, Boolean ascending, Double mine, Double maxe, String elangles, Boolean adaptive_elangles, List< String > recipients, Integer interval, Integer timeout, Boolean nominal_timeout, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter, String emessage)
 
String viewShowRoute (Model model, String name, String author, Boolean active, String description, Boolean ascending, Double mine, Double maxe, String elangles, Boolean adaptive_elangles, List< String > recipients, Integer interval, Integer timeout, Boolean nominal_timeout, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter, String emessage)
 
String viewShowRoutes (Model model, String emessage)
 
String modifyRoute (Model model, String name, String author, Boolean active, String description, Boolean ascending, Double mine, Double maxe, String elangles, Boolean adaptive_elangles, List< String > recipients, Integer interval, Integer timeout, Boolean nominal_timeout, List< String > sources, List< String > detectors, Integer quality_control_mode, String jsonFilter)
 
List< Integer > getIntervals ()
 
List< AnomalyDetector > createOrderedDetectorList (List< AnomalyDetector > detectors, List< String > selectedDetectors)
 
VolumeRule createRule (boolean ascending, double mine, double maxe, String elangles, boolean adaptive_elangles, int interval, List< String > sources, List< String > detectors, int iqc_mode, int timeout, boolean nominal_timeout, String jsonFilter)
 

Detailed Description

Manages the volume routes and routing rules. This controller manages the possibility to specify what scans should be included in a volume.

Author
Anders Henja
Date
2011-01-05

Constructor & Destructor Documentation

◆ VolumeRoutesController()

eu.baltrad.beastui.web.controller.VolumeRoutesController.VolumeRoutesController ( )
inline

Default constructor

Member Function Documentation

◆ createOrderedDetectorList()

List< AnomalyDetector > eu.baltrad.beastui.web.controller.VolumeRoutesController.createOrderedDetectorList ( List< AnomalyDetector > detectors,
List< String > selectedDetectors )
inlineprotected

Organizes so that the selected detectors comes in order in the list of anomaly detectors. We are doing it like this since we don't want to have 2 different select lists where one contains the "not selected" and another containing the selected.

Parameters
detectorsall anomaly detectors
selectedDetectorsthe selected detectors
Returns
a reorganized list of detectors

◆ createRoute()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.createRoute ( Model model,
@RequestParam(value="name", required=false) String name,
@RequestParam(value="author", required=false) String author,
@RequestParam(value="active", required=false) Boolean active,
@RequestParam(value="description", required=false) String description,
@RequestParam(value="ascending", required=false) Boolean ascending,
@RequestParam(value="mine", required=false) Double mine,
@RequestParam(value="maxe", required=false) Double maxe,
@RequestParam(value="elangles", required=false) String elangles,
@RequestParam(value="adaptive_elangles", required=false) Boolean adaptive_elangles,
@RequestParam(value="recipients", required=false) List< String > recipients,
@RequestParam(value="interval", required=false) Integer interval,
@RequestParam(value="timeout", required=false) Integer timeout,
@RequestParam(value="nominal_timeout", required=false) Boolean nominal_timeout,
@RequestParam(value="sources", required=false) List< String > sources,
@RequestParam(value="detectors", required=false) List< String > detectors,
@RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode,
@RequestParam(value="filterJson", required=false) String filterJson )
inline

Handles create route requests

Parameters
modelthe model
namethe name of the route
authorthe author
activeif route is active or not
descriptionthe description of this route
ascendingif it is ascending or descending elevation angles
minethe minimum elevation angle
maxethe maximum elevation angle
recipientsthe recipients
intervalthe interval
timeoutthe timeout
sourcesthe sources this rule should affect
Returns
a jsp page string or redirect

◆ createRule()

VolumeRule eu.baltrad.beastui.web.controller.VolumeRoutesController.createRule ( boolean ascending,
double mine,
double maxe,
String elangles,
boolean adaptive_elangles,
int interval,
List< String > sources,
List< String > detectors,
int iqc_mode,
int timeout,
boolean nominal_timeout,
String jsonFilter )
inlineprotected

Creates a volume rule.

Parameters
areaid
interval
sources
timeout
byscan
Returns

◆ getIntervals()

List< Integer > eu.baltrad.beastui.web.controller.VolumeRoutesController.getIntervals ( )
inlineprotected

Returns the allowed intervals when generating volumes.

Returns
the allowed intervals

◆ modifyRoute()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.modifyRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Boolean ascending,
Double mine,
Double maxe,
String elangles,
Boolean adaptive_elangles,
List< String > recipients,
Integer interval,
Integer timeout,
Boolean nominal_timeout,
List< String > sources,
List< String > detectors,
Integer quality_control_mode,
String jsonFilter )
inlineprotected

Modifies an existing route

Parameters
modelthe model
namethe name of the route definition
authorthe author
activeif route is active or not
descriptionthe description of the route
ascendingif ascending order or not
minemin elevation angle
maxemax elevation angle
recipientsthe recipients
scriptthe script
Returns
the redirection string

◆ setAdaptorManager()

void eu.baltrad.beastui.web.controller.VolumeRoutesController.setAdaptorManager ( IBltAdaptorManager adaptormanager)
inline

Sets the adaptor manager

Parameters
adaptormanager

◆ setAnomalyDetectorManager()

void eu.baltrad.beastui.web.controller.VolumeRoutesController.setAnomalyDetectorManager ( IAnomalyDetectorManager anomalymanager)
inline
Parameters
anomalymanagerthe anomaly manager to set

◆ setManager()

void eu.baltrad.beastui.web.controller.VolumeRoutesController.setManager ( IRouterManager manager)
inline

Sets the router manager instance

Parameters
managerthe manager

◆ setRuleUtilities()

void eu.baltrad.beastui.web.controller.VolumeRoutesController.setRuleUtilities ( IRuleUtilities utils)
inline
Parameters
utilsthe rule utilities

◆ showRoute()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.showRoute ( Model model,
@RequestParam(value="name", required=false) String name,
@RequestParam(value="author", required=false) String author,
@RequestParam(value="active", required=false) Boolean active,
@RequestParam(value="description", required=false) String description,
@RequestParam(value="ascending", required=false) Boolean ascending,
@RequestParam(value="mine", required=false) Double mine,
@RequestParam(value="maxe", required=false) Double maxe,
@RequestParam(value="elangles", required=false) String elangles,
@RequestParam(value="adaptive_elangles", required=false) Boolean adaptive_elangles,
@RequestParam(value="recipients", required=false) List< String > recipients,
@RequestParam(value="interval", required=false) Integer interval,
@RequestParam(value="timeout", required=false) Integer timeout,
@RequestParam(value="nominal_timeout", required=false) Boolean nominal_timeout,
@RequestParam(value="sources", required=false) List< String > sources,
@RequestParam(value="detectors", required=false) List< String > detectors,
@RequestParam(value="quality_control_mode", required=false) Integer quality_control_mode,
@RequestParam(value="filterJson", required=false) String filterJson,
@RequestParam(value="submitButton", required=false) String operation )
inline

Supports modification of a routing rule

Parameters
modelthe model
namethe name of the route
authorthe author
activeif route is active or not
descriptionthe description of this route
ascendingif it is ascending or descending elevation angles
minethe minimum elevation angle
maxethe maximum elevation angle
recipientsthe recipients
intervalthe interval
timeoutthe timeout
sourcesthe sources this rule should affect
Returns
a jsp page string or redirect

◆ viewCreateRoute()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.viewCreateRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Boolean ascending,
Double mine,
Double maxe,
String elangles,
Boolean adaptive_elangles,
List< String > recipients,
Integer interval,
Integer timeout,
Boolean nominal_timeout,
List< String > sources,
List< String > detectors,
Integer quality_control_mode,
String jsonFilter,
String emessage )
inlineprotected

Sets up the model for directing to the volumeroute_create page

Parameters
modelthe model
namethe name of the route
authorthe author
activeif active or not
descriptionthe description
ascendingif elevations should be triggered by ascending order or descending order
minethe min elevation
maxethe max elevation
recipientsthe recipients
intervalthe interval
timeoutthe timeout
sourcesthe sources
emessageif a message should be shown
Returns
compositeroute_create

◆ viewShowRoute()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.viewShowRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Boolean ascending,
Double mine,
Double maxe,
String elangles,
Boolean adaptive_elangles,
List< String > recipients,
Integer interval,
Integer timeout,
Boolean nominal_timeout,
List< String > sources,
List< String > detectors,
Integer quality_control_mode,
String jsonFilter,
String emessage )
inlineprotected

Sets up the model for directing to the volumeroute_show page

Parameters
modelthe model
namethe name of the route
authorthe author
activeif active or not
descriptionthe description
ascendingif elevations should be triggered by ascending order or descending order
minethe min elevation
maxethe max elevation
recipientsthe recipients
intervalthe interval
timeoutthe timeout
sourcesthe sources
emessageif a message should be shown
Returns
compositeroute_create

◆ viewShowRoutes()

String eu.baltrad.beastui.web.controller.VolumeRoutesController.viewShowRoutes ( Model model,
String emessage )
inlineprotected

Shows the routes view

Parameters
modelthe model
emessagethe error message if any
Returns
"routes"

The documentation for this class was generated from the following file: