Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FacetTypes.java @ 3061:49baebb39305
FixA: Add interpolation of parameters that better suits the instantiation real functions.
flys-artifacts/trunk@4641 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 12 Jun 2012 08:11:36 +0000 |
parents | 22da13d1b180 |
children | 0d3dd8230064 |
line wrap: on
line source
package de.intevation.flys.artifacts.model; /** 'Types' of facets. */ public interface FacetTypes { public class IS { public static boolean WQ_KM(String type) { return type.equals(DISCHARGE_LONGITUDINAL_W) || type.equals(LONGITUDINAL_W); } public static boolean W_KM(String type) { return type.equals(STATIC_WKMS) || type.equals(HEIGHTMARKS_POINTS) || WQ_KM(type); } public static boolean AREA(String type) { return type.equals(AREA) || type.equals(CROSS_SECTION_AREA) || type.equals(LONGITUDINAL_SECTION_AREA); } public static boolean W(String type) { return type.equals(LONGITUDINAL_W) || type.equals(DISCHARGE_LONGITUDINAL_W) || type.equals(DURATION_W) || type.equals(STATIC_WKMS) || type.equals(STATIC_WQKMS_W); } public static boolean Q(String type) { return type.equals(LONGITUDINAL_Q) || type.equals(DISCHARGE_LONGITUDINAL_Q) || type.equals(DURATION_Q) || type.equals(STATIC_WQKMS_Q); } public static boolean V(String type) { return type.equals(FLOW_VELOCITY_MAINCHANNEL) || type.equals(FLOW_VELOCITY_TOTALCHANNEL); } public static boolean T(String type) { return type.equals(FLOW_VELOCITY_TAU); } public static boolean H(String type) { return type.equals(MIDDLE_BED_HEIGHT_SINGLE) || type.equals(MIDDLE_BED_HEIGHT_EPOCH); } public static boolean MANUALPOINTS(String type) { return type.endsWith("manualpoints"); } }; public enum ChartType { LS("longitudinal_section"), CS("cross_section"), DLS("discharge_longitudinal_section"), CDC("computed_discharge_curve"), DUC("duration_curve"), DIC("discharge_curve"), RC("reference_curve"), RCN("reference_curve_normalized"), WD("wdifferences"), HD("historical_discharge"); private String chartTypeString; ChartType(String description) { this.chartTypeString = description; } public String toString() { return chartTypeString; } } String AREA = "area"; String CROSS_SECTION_AREA = "cross_section.area"; String LONGITUDINAL_SECTION_AREA = "longitudinal_section.area"; String FLOODMAP_WSPLGEN = "floodmap.wsplgen"; String FLOODMAP_BARRIERS = "floodmap.barriers"; String FLOODMAP_USERSHAPE = "floodmap.usershape"; String FLOODMAP_RIVERAXIS = "floodmap.riveraxis"; String FLOODMAP_WMSBACKGROUND = "floodmap.wmsbackground"; String FLOODMAP_KMS = "floodmap.kms"; String FLOODMAP_QPS = "floodmap.qps"; String FLOODMAP_HWS = "floodmap.hws"; String FLOODMAP_HYDR_BOUNDARY = "floodmap.hydr_boundaries"; String FLOODMAP_HYDR_BOUNDARY_POLY = "floodmap.hydr_boundaries_poly"; String FLOODMAP_CATCHMENT = "floodmap.catchment"; String FLOODMAP_FLOODPLAIN = "floodmap.floodplain"; String FLOODMAP_LINES = "floodmap.lines"; String FLOODMAP_BUILDINGS = "floodmap.buildings"; String FLOODMAP_FIXPOINTS = "floodmap.fixpoints"; String FLOODMAP_FLOODMAPS = "floodmap.floodmaps"; String FLOODMAP_GAUGE_LOCATION = "floodmap.gauge_location"; String FLOODMAP_EXTERNAL_WMS = "floodmap.externalwms"; String DISCHARGE_LONGITUDINAL_W = "discharge_longitudinal_section.w"; String DISCHARGE_LONGITUDINAL_Q = "discharge_longitudinal_section.q"; String DISCHARGE_LONGITUDINAL_C = "discharge_longitudinal_section.c"; String LONGITUDINAL_W = "longitudinal_section.w"; String LONGITUDINAL_Q = "longitudinal_section.q"; String LONGITUDINAL_ANNOTATION = "longitudinal_section.annotations"; String LONGITUDINAL_MANUALPOINTS = "longitudinal_section.manualpoints"; String W_DIFFERENCES = "w_differences"; String COMPUTED_DISCHARGE_Q = "computed_discharge_curve.q"; String COMPUTED_DISCHARGE_MAINVALUES_Q = "computed_discharge_curve.mainvalues.q"; String COMPUTED_DISCHARGE_MAINVALUES_W = "computed_discharge_curve.mainvalues.w"; String MAINVALUES_Q = "mainvalues.q"; String MAINVALUES_W = "mainvalues.w"; String CROSS_SECTION = "cross_section"; String CROSS_SECTION_WATER_LINE = "cross_section_water_line"; String HYK = "hyk"; String DISCHARGE_CURVE = "discharge_curve.curve"; String DURATION_W = "duration_curve.w"; String DURATION_Q = "duration_curve.q"; String DURATION_MAINVALUES_Q = "duration_curve.mainvalues.q"; String MANUALPOINTS = "manualpoints"; String STATIC_WQ = "other.wq"; String STATIC_WQ_ANNOTATIONS = "other.wq.annotations"; String STATIC_WKMS = "other.wkms"; String STATIC_WQKMS = "other.wqkms"; String STATIC_WQKMS_W = "other.wqkms.w"; String STATIC_WQKMS_Q = "other.wqkms.q"; String STATIC_WKMS_INTERPOL = "other.wkms.interpol"; String HEIGHTMARKS_POINTS = "heightmarks_points"; String CSV = "csv"; String WST = "wst"; String AT = "at"; String PDF = "pdf"; String REPORT = "report"; String HISTORICAL_DISCHARGE_Q = "historical_discharge.historicalq"; String HISTORICAL_DISCHARGE_Q_DIFF = "historical_discharge.historicalq.diff"; String REFERENCE_CURVE = "reference_curve"; String REFERENCE_CURVE_NORMALIZED = "reference_curve_normalized"; String FLOW_VELOCITY_MAINCHANNEL = "flow_velocity.mainchannel"; String FLOW_VELOCITY_TOTALCHANNEL = "flow_velocity.totalchannel"; String FLOW_VELOCITY_TAU = "flow_velocity.tau"; String FLOW_VELOCITY_ANNOTATION = "flow_velocity.annotation"; String MIDDLE_BED_HEIGHT_SINGLE = "bedheight_middle.single"; String MIDDLE_BED_HEIGHT_EPOCH = "bedheight_middle.epoch"; String MIDDLE_BED_HEIGHT_ANNOTATION = "bedheight_middle.annotation"; String RELATIVE_POINT = "relativepoint"; String FIX_ANALYSIS_EVENTS_DWT = "fix_analysis_events_dwt"; String FIX_ANALYSIS_EVENTS_LS = "fix_analysis_events_ls"; String FIX_ANALYSIS_EVENTS_WQ = "fix_analysis_events_wq"; String FIX_REFERENCE_EVENTS_DWT = "fix_reference_events_dwt"; String FIX_REFERENCE_EVENTS_LS = "fix_reference_events_ls"; String FIX_REFERENCE_EVENTS_WQ = "fix_reference_events_wq"; String FIX_SECTOR_AVERAGE_DWT = "fix_sector_average_dwt"; String FIX_SECTOR_AVERAGE_LS = "fix_sector_average_ls"; String FIX_SECTOR_AVERAGE_WQ = "fix_sector_average_wq"; String FIX_WQ_CURVE = "fix_wq_curve"; String FIX_OUTLIER = "fix_outlier"; String FIX_ANALYSIS_PERIODS_DWT = "fix_analysis_periods_dwt"; String FIX_ANALYSIS_PERIODS_LS = "fix_analysis_periods_ls"; String FIX_ANALYSIS_PERIODS_WQ = "fix_analysis_periods_wq"; String FIX_DERIVATE = "fix_derivate"; } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :