mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/ObservationMgrImpl.java
private ObservationSubTypeEnum determineObservationSubType(final Observation observation)
    {
        ObservationSubTypeEnum type = null;
        
        if (observation.isSetDetection())
        {
            type = ObservationSubTypeEnum.DETECTION;
        }
        else if (observation.isSetStatus())
        {
            type = ObservationSubTypeEnum.STATUS;
        }
        else if (observation.isSetWeather())
        {
            type = ObservationSubTypeEnum.WEATHER;
        }
        else if (observation.isSetDigitalMedia())
        {
            type = determineDigitalMediaSubType(observation);
        }
        else if (observation.isSetBiological())
        {
            type = ObservationSubTypeEnum.BIOLOGICAL;
        }
        else if (observation.isSetChemical())
        {
            type = ObservationSubTypeEnum.CHEMICAL;
        }
        else if (observation.isSetCbrneTrigger())
        {
            type = ObservationSubTypeEnum.CBRNE_TRIGGER;
        }
        else if (observation.isSetWaterQuality())
        {
            type = ObservationSubTypeEnum.WATER_QUALITY;
        }
        else if (observation.isSetPower())
        {
            type = ObservationSubTypeEnum.POWER;
        }
        
        return type;
    }
/**
     * Method to determine the observation type of the given observation.
     * @param observation
     *  the observation for which the type is to be determined
     * @return
     *  the observation type that describes the information that this observation holds.
     *  if the observation does not satisfy any of the known types then null will be returned.
     */
Method to determine the observation type of the given observation.
@param observation
the observation for which the type is to be determined
@return
the observation type that describes the information that this observation holds.
if the observation does not satisfy any of the known types then null will be returned.
Method to determine the observation type of the given observation . @param observation the observation for which the type is to be determined @return the observation type that describes the information that this observation holds . if the observation does not satisfy any of the known types then null will be returned .
private ObservationSubTypeEnum determineObservationSubType(final Observation observation)
    {
        ObservationSubTypeEnum type = null;
        if (observation.isSetDetection())
        {
            type = ObservationSubTypeEnum.DETECTION;
        }
        else if (observation.isSetStatus())
        {
            type = ObservationSubTypeEnum.STATUS;
        }
        else if (observation.isSetWeather())
        {
            type = ObservationSubTypeEnum.WEATHER;
        }
        else if (observation.isSetDigitalMedia())
        {
            type = determineDigitalMediaSubType(observation);
        }
        else if (observation.isSetBiological())
        {
            type = ObservationSubTypeEnum.BIOLOGICAL;
        }
        else if (observation.isSetChemical())
        {
            type = ObservationSubTypeEnum.CHEMICAL;
        }
        else if (observation.isSetCbrneTrigger())
        {
            type = ObservationSubTypeEnum.CBRNE_TRIGGER;
        }
        else if (observation.isSetWaterQuality())
        {
            type = ObservationSubTypeEnum.WATER_QUALITY;
        }
        else if (observation.isSetPower())
        {
            type = ObservationSubTypeEnum.POWER;
        }
        return type;
    }
private ObservationSubTypeEnum determineObservationSubType ( final Observation observation ) { ObservationSubTypeEnum type = null ; if ( observation . isSetDetection ( ) ) { type = ObservationSubTypeEnum . DETECTION ; } else if ( observation . isSetStatus ( ) ) { type = ObservationSubTypeEnum . STATUS ; } else if ( observation . isSetWeather ( ) ) { type = ObservationSubTypeEnum . WEATHER ; } else if ( observation . isSetDigitalMedia ( ) ) { type = determineDigitalMediaSubType ( observation ) ; } else if ( observation . isSetBiological ( ) ) { type = ObservationSubTypeEnum . BIOLOGICAL ; } else if ( observation . isSetChemical ( ) ) { type = ObservationSubTypeEnum . CHEMICAL ; } else if ( observation . isSetCbrneTrigger ( ) ) { type = ObservationSubTypeEnum . CBRNE_TRIGGER ; } else if ( observation . isSetWaterQuality ( ) ) { type = ObservationSubTypeEnum . WATER_QUALITY ; } else if ( observation . isSetPower ( ) ) { type = ObservationSubTypeEnum . POWER ; } return type ; }
Method to determine the observation type of the given observation.
Method to determine the observation type of the given observation .