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

Public Member Functions

void setManager (IRouterManager manager)
 
void setAdaptorManager (IBltAdaptorManager adaptormanager)
 
void setRuleUtilities (IRuleUtilities utils)
 
void setAvailableFields (List< String > fields)
 
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="interval", required=false) Integer interval, @RequestParam(value="maxheight", required=false) Integer maxheight, @RequestParam(value="mindistance", required=false) Integer mindistance, @RequestParam(value="maxdistance", required=false) Integer maxdistance, @RequestParam(value="minelangle", required=false) Double minelangle, @RequestParam(value="maxelangle", required=false) Double maxelangle, @RequestParam(value="minvelocitythreshold", required=false) Double minvelocitythreshold, @RequestParam(value="maxvelocitythreshold", required=false) Double maxvelocitythreshold, @RequestParam(value="minsamplesizereflectivity", required=false) Integer minsamplesizereflectivity, @RequestParam(value="minsamplesizewind", required=false) Integer minsamplesizewind, @RequestParam(value="fields", required=false) List< String > fields, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="sources", required=false) List< String > sources, @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="interval", required=false) Integer interval, @RequestParam(value="maxheight", required=false) Integer maxheight, @RequestParam(value="mindistance", required=false) Integer mindistance, @RequestParam(value="maxdistance", required=false) Integer maxdistance, @RequestParam(value="minelangle", required=false) Double minelangle, @RequestParam(value="maxelangle", required=false) Double maxelangle, @RequestParam(value="minvelocitythreshold", required=false) Double minvelocitythreshold, @RequestParam(value="maxvelocitythreshold", required=false) Double maxvelocitythreshold, @RequestParam(value="minsamplesizereflectivity", required=false) Integer minsamplesizereflectivity, @RequestParam(value="minsamplesizewind", required=false) Integer minsamplesizewind, @RequestParam(value="fields", required=false) List< String > fields, @RequestParam(value="recipients", required=false) List< String > recipients, @RequestParam(value="sources", required=false) List< String > sources, @RequestParam(value="filterJson", required=false) String filterJson, @RequestParam(value="submitButton", required=false) String operation)
 

Protected Member Functions

String modifyRoute (Model model, String name, String author, Boolean active, String description, Integer interval, Integer maxheight, Integer mindistance, Integer maxdistance, Double minelangle, Double maxelangle, Double minvelocitythreshold, Double maxvelocitythreshold, Integer minsamplesizereflectivity, Integer minsamplesizewind, List< String > fields, List< String > recipients, List< String > sources, String jsonFilter)
 
String viewCreateRoute (Model model, String name, String author, Boolean active, String description, Integer interval, Integer maxheight, Integer mindistance, Integer maxdistance, Double minelangle, Double maxelangle, Double minvelocitythreshold, Double maxvelocitythreshold, Integer minsamplesizereflectivity, Integer minsamplesizewind, List< String > fields, List< String > recipients, List< String > sources, String jsonFilter, String emessage)
 
String viewShowRoute (Model model, String name, String author, Boolean active, String description, Integer interval, Integer maxheight, Integer mindistance, Integer maxdistance, Double minelangle, Double maxelangle, Double minvelocitythreshold, Double maxvelocitythreshold, Integer minsamplesizereflectivity, Integer minsamplesizewind, List< String > fields, List< String > recipients, List< String > sources, String filterJson, String emessage)
 
String viewJspRoute (Model model, String name, String author, Boolean active, String description, Integer interval, Integer maxheight, Integer mindistance, Integer maxdistance, Double minelangle, Double maxelangle, Double minvelocitythreshold, Double maxvelocitythreshold, Integer minsamplesizereflectivity, Integer minsamplesizewind, List< String > fields, List< String > recipients, List< String > sources, String jsonFilter, String emessage, String jsppage)
 
String viewShowRoutes (Model model, String emessage)
 
WrwpRule createRule (int interval, int maxheight, int mindistance, int maxdistance, double elangle, double maxelangle, double velocitythreshold, double maxvelocitythreshold, int minsamplesizereflectivity, int minsamplesizewind, List< String > fields, List< String > sources, String jsonFilter)
 

Detailed Description

Manages the wrwp routes and routing rules.

Author
Anders Henja

Member Function Documentation

◆ createRoute()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.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="interval", required=false) Integer interval,
@RequestParam(value="maxheight", required=false) Integer maxheight,
@RequestParam(value="mindistance", required=false) Integer mindistance,
@RequestParam(value="maxdistance", required=false) Integer maxdistance,
@RequestParam(value="minelangle", required=false) Double minelangle,
@RequestParam(value="maxelangle", required=false) Double maxelangle,
@RequestParam(value="minvelocitythreshold", required=false) Double minvelocitythreshold,
@RequestParam(value="maxvelocitythreshold", required=false) Double maxvelocitythreshold,
@RequestParam(value="minsamplesizereflectivity", required=false) Integer minsamplesizereflectivity,
@RequestParam(value="minsamplesizewind", required=false) Integer minsamplesizewind,
@RequestParam(value="fields", required=false) List< String > fields,
@RequestParam(value="recipients", required=false) List< String > recipients,
@RequestParam(value="sources", required=false) List< String > sources,
@RequestParam(value="filterJson", required=false) String filterJson )
inline

Called when creating or a wrwp route or when the create wrwp page should be shown

Parameters
model
name
author
active
description
interval
maxheight
mindistance
maxdistance
minelangle
minvelocitythreshold
recipients
sources
Returns

◆ createRule()

WrwpRule eu.baltrad.beastui.web.controller.WrwpRoutesController.createRule ( int interval,
int maxheight,
int mindistance,
int maxdistance,
double elangle,
double maxelangle,
double velocitythreshold,
double maxvelocitythreshold,
int minsamplesizereflectivity,
int minsamplesizewind,
List< String > fields,
List< String > sources,
String jsonFilter )
inlineprotected

Creates the wrwp rule

Parameters
interval
maxheight
mindistance
maxdistance
elangle
velocitythreshold
Returns
the wrwp rule

◆ modifyRoute()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.modifyRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Integer interval,
Integer maxheight,
Integer mindistance,
Integer maxdistance,
Double minelangle,
Double maxelangle,
Double minvelocitythreshold,
Double maxvelocitythreshold,
Integer minsamplesizereflectivity,
Integer minsamplesizewind,
List< String > fields,
List< String > recipients,
List< String > sources,
String jsonFilter )
inlineprotected

Called when modifying a wrwp route.

Parameters
model
name
author
active
description
interval
maxheight
mindistance
maxdistance
minelangle
minvelocitythreshold
recipients
sources
Returns

◆ setAdaptorManager()

void eu.baltrad.beastui.web.controller.WrwpRoutesController.setAdaptorManager ( IBltAdaptorManager adaptormanager)
inline
Parameters
adaptormanagerthe adaptor manager to set

◆ setAvailableFields()

void eu.baltrad.beastui.web.controller.WrwpRoutesController.setAvailableFields ( List< String > fields)
inline
Parameters
fieldsthe available fields

◆ setManager()

void eu.baltrad.beastui.web.controller.WrwpRoutesController.setManager ( IRouterManager manager)
inline
Parameters
managerthe manager to set

◆ setRuleUtilities()

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

◆ showRoute()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.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="interval", required=false) Integer interval,
@RequestParam(value="maxheight", required=false) Integer maxheight,
@RequestParam(value="mindistance", required=false) Integer mindistance,
@RequestParam(value="maxdistance", required=false) Integer maxdistance,
@RequestParam(value="minelangle", required=false) Double minelangle,
@RequestParam(value="maxelangle", required=false) Double maxelangle,
@RequestParam(value="minvelocitythreshold", required=false) Double minvelocitythreshold,
@RequestParam(value="maxvelocitythreshold", required=false) Double maxvelocitythreshold,
@RequestParam(value="minsamplesizereflectivity", required=false) Integer minsamplesizereflectivity,
@RequestParam(value="minsamplesizewind", required=false) Integer minsamplesizewind,
@RequestParam(value="fields", required=false) List< String > fields,
@RequestParam(value="recipients", required=false) List< String > recipients,
@RequestParam(value="sources", required=false) List< String > sources,
@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.WrwpRoutesController.viewCreateRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Integer interval,
Integer maxheight,
Integer mindistance,
Integer maxdistance,
Double minelangle,
Double maxelangle,
Double minvelocitythreshold,
Double maxvelocitythreshold,
Integer minsamplesizereflectivity,
Integer minsamplesizewind,
List< String > fields,
List< String > recipients,
List< String > sources,
String jsonFilter,
String emessage )
inlineprotected

Sets the model with relevant information for showing the route_create_wrwp jsp page

Parameters
model
name
author
active
description
interval
maxheight
mindistance
maxdistance
minelangle
minvelocitythreshold
recipients
sources
emessage
Returns

◆ viewJspRoute()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.viewJspRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Integer interval,
Integer maxheight,
Integer mindistance,
Integer maxdistance,
Double minelangle,
Double maxelangle,
Double minvelocitythreshold,
Double maxvelocitythreshold,
Integer minsamplesizereflectivity,
Integer minsamplesizewind,
List< String > fields,
List< String > recipients,
List< String > sources,
String jsonFilter,
String emessage,
String jsppage )
inlineprotected

Utility page for setting the model and return the jsp page to load

Parameters
model
name
author
active
description
interval
maxheight
mindistance
maxdistance
minelangle
minvelocitythreshold
recipients
sources
emessage
jsppage
Returns

◆ viewShowRoute()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.viewShowRoute ( Model model,
String name,
String author,
Boolean active,
String description,
Integer interval,
Integer maxheight,
Integer mindistance,
Integer maxdistance,
Double minelangle,
Double maxelangle,
Double minvelocitythreshold,
Double maxvelocitythreshold,
Integer minsamplesizereflectivity,
Integer minsamplesizewind,
List< String > fields,
List< String > recipients,
List< String > sources,
String filterJson,
String emessage )
inlineprotected

Sets the model with relevant information for showing the route_show_wrwp jsp page

Parameters
model
name
author
active
description
interval
maxheight
mindistance
maxdistance
minelangle
minvelocitythreshold
recipients
sources
emessage
Returns

◆ viewShowRoutes()

String eu.baltrad.beastui.web.controller.WrwpRoutesController.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: