Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2008-2013 LimeTri. All rights reserved. AgroSense is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. There are special exceptions to the terms and conditions of the GPLv3 as it is applied to this software, see the FLOSS License Exception <http://www.agrosense.eu/foss-exception.html>. AgroSense is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with AgroSense. If not, see <http://www.gnu.org/licenses/>.
 
 
 package eu.agrosense.api.observations;

TEMPORARY list based on old enums (client-util / mapviewer-api), use until jsr275 replacement is ready. though the new api will probably pass around strings like these and hide the jsr275 impl.

Author(s):
johan
 
 enum UOM {
     NOT_SPECIFIED(""),//"Not specified" TODO: see if we can use null to distinguish unknown from true dimensionless units.
     
1/m2 - Amount per area unit
 
     AMOUNT_PER_M2("1/m^2"),
    
1/second - Amount per time unit
 
     AMOUNT_PER_SECOND("1/s"),
    
1 - Amount/Count
 
     COUNT(""),//"Amount/Count"
     
Millimeter
 
     MM("mm"),
    
Centimeter
 
     CM("cm"),
    
square meter
 
     M2("m^2"),
    
ml - Capacity large
 
     ML("mL"),
    
L - Capacity count
 
     LITERS("L"),
    
mm2/s - Area per time unit
 
     MM2_PER_SECOND("mm^2/s"),
     MM3_PER_M2("mm^3/m^2"),
     MM3_PER_M3("mm^3/m^3"),
     MM3_PER_KG("mm^3/kg"),
    
mm3/second - Flow
 
     MM3_PER_SECOND("mm^3/s"),
    
Liter per Hectare
 
     L_PER_HA("L/ha"),
    
ml/m2 - Capacity per area large
 
     ML_PER_M2("mL/m^2"),
    
ml/s - Float large
 
     ML_PER_SEC("mL/s"),
    
Milligram per square meter
 
     MG_PER_M2("mg/m^2"),
    
Milligram per Kilogram
 
     MG_PER_KG("mg/kg"),
    
Milligram per 100 gram
 
     MG_PER_100G("mg/100g"),//FIXME: the '100' won't likely parse; "mg/dag" (per decagram) won't be clear (espacially with dutch users
    
Milligram per second = Mass flow
    MG_PER_SECOND("mg/s"),
    
mg/l - Mass per capacity unit
    MG_PER_L("mg/L"),
    KG_PER_HA("kg/ha"),
    
g - Mass large
    GRAM("g"),
    
Kilogram
    KG("kg"),
    
    
Second
    SECOND("s"),
    
Milli second
    MS("ms"),
    
ppm - Parts per million
    PARTS_PER_MILLION("ppm"),
    
° - Angle
    ANGLE("°"),
    
Acidity pH Pondus hydrogenii
    PH("pH"),
    
Percentage of CLAY Humus CEC
    CEC_PERCENTAGE("%-CEC"),// TODO: check parser!
    
Percentage available in soil
    SOIL_PERCENTAGE("%"),
    
Milli Moles per Kilogram
    MMOL_PER_KG("mmol/kg"),
    
Range for bodenpunkte rages from 1 to 100
    BODENPUNKTE("");//"1-100"
    
    ;
    
    private final String symbol;
    private UOM(String symbol) {
        this. = symbol;
    }
    public String getSymbol() {
        return ;
    }
    @Override
    public String toString() {
        return ;
    }
    
New to GrepCode? Check out our FAQ X