mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/ObservationStoreImpl.java
private void postEventWithObs(final String topic, final Map<String, Object> props, final Observation observation)
    {
        //post the event again with the observation
        props.put(EVENT_PROP_OBSERVATION, observation);

        if (topic.equals(ObservationStore.TOPIC_OBSERVATION_PERSISTED))
        {
            postEvent(ObservationStore.TOPIC_OBSERVATION_PERSISTED_WITH_OBS, props);
        }
        else if (topic.equals(ObservationStore.TOPIC_OBSERVATION_MERGED))
        {
            postEvent(ObservationStore.TOPIC_OBSERVATION_MERGED_WITH_OBS, props);
        }
    }
/**
     * Post an event with the topic adjusted to identify that the event includes the actual observation object.
     * @param topic
     *     the specified event topic
     * @param props
     *     the properties for the event
     * @param observation
     *     the specified observation
     */
Post an event with the topic adjusted to identify that the event includes the actual observation object.
@param topic
the specified event topic
@param props
the properties for the event
@param observation
the specified observation
Post an event with the topic adjusted to identify that the event includes the actual observation object . @param topic the specified event topic @param props the properties for the event @param observation the specified observation
private void postEventWithObs(final String topic, final Map<String, Object> props, final Observation observation)
    {
        props.put(EVENT_PROP_OBSERVATION, observation);
        if (topic.equals(ObservationStore.TOPIC_OBSERVATION_PERSISTED))
        {
            postEvent(ObservationStore.TOPIC_OBSERVATION_PERSISTED_WITH_OBS, props);
        }
        else if (topic.equals(ObservationStore.TOPIC_OBSERVATION_MERGED))
        {
            postEvent(ObservationStore.TOPIC_OBSERVATION_MERGED_WITH_OBS, props);
        }
    }
private void postEventWithObs ( final String topic , final Map < String , Object > props , final Observation observation ) { props . put ( EVENT_PROP_OBSERVATION , observation ) ; if ( topic . equals ( ObservationStore . TOPIC_OBSERVATION_PERSISTED ) ) { postEvent ( ObservationStore . TOPIC_OBSERVATION_PERSISTED_WITH_OBS , props ) ; } else if ( topic . equals ( ObservationStore . TOPIC_OBSERVATION_MERGED ) ) { postEvent ( ObservationStore . TOPIC_OBSERVATION_MERGED_WITH_OBS , props ) ; } }
Post an event with the topic adjusted to identify that the event includes the actual observation object.
Post an event with the topic adjusted to identify that the event includes the actual observation object .
//post the event again with the observation