mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/asset/AssetImpl.java
private void postStatusObservation(final Observation observation)
            throws PersistenceFailedException, ValidationFailedException
    {
        persistObservation(observation);

        m_LastStatusObservation = observation;

        final Map<String, Object> props = new HashMap<>();
        if (observation.getStatus() != null && observation.getStatus().getSummaryStatus() != null)
        {
            final OperatingStatus summaryStatus = observation.getStatus().getSummaryStatus();
            props.put(EVENT_PROP_ASSET_STATUS_SUMMARY, summaryStatus.getSummary().toString());

            final String desc = summaryStatus.getDescription();
            if (desc != null)
            {
                props.put(EVENT_PROP_ASSET_STATUS_DESCRIPTION, desc);
            }
        }
        else
        {
            props.put(EVENT_PROP_ASSET_STATUS_SUMMARY, SummaryStatusEnum.UNKNOWN.toString());
        }

        props.put(EVENT_PROP_ASSET_STATUS_OBSERVATION_UUID, observation.getUuid());

        postEvent(TOPIC_STATUS_CHANGED, props);
    }
/**
     * Method that posts that a status observation has occurred.
     * 
     * @param observation
     *            the observation that has the status to post
     * @throws ValidationFailedException
     *             thrown if the status observation is not valid
     * @throws PersistenceFailedException
     *             thrown if the status observations cannot be persisted by the observation store
     */
Method that posts that a status observation has occurred.

@param observation
the observation that has the status to post
@throws ValidationFailedException
thrown if the status observation is not valid
@throws PersistenceFailedException
thrown if the status observations cannot be persisted by the observation store
Method that posts that a status observation has occurred . @param observation the observation that has the status to post @throws ValidationFailedException thrown if the status observation is not valid @throws PersistenceFailedException thrown if the status observations cannot be persisted by the observation store
private void postStatusObservation(final Observation observation)
            throws PersistenceFailedException, ValidationFailedException
    {
        persistObservation(observation);
        m_LastStatusObservation = observation;
        final Map<String, Object> props = new HashMap<>();
        if (observation.getStatus() != null && observation.getStatus().getSummaryStatus() != null)
        {
            final OperatingStatus summaryStatus = observation.getStatus().getSummaryStatus();
            props.put(EVENT_PROP_ASSET_STATUS_SUMMARY, summaryStatus.getSummary().toString());
            final String desc = summaryStatus.getDescription();
            if (desc != null)
            {
                props.put(EVENT_PROP_ASSET_STATUS_DESCRIPTION, desc);
            }
        }
        else
        {
            props.put(EVENT_PROP_ASSET_STATUS_SUMMARY, SummaryStatusEnum.UNKNOWN.toString());
        }
        props.put(EVENT_PROP_ASSET_STATUS_OBSERVATION_UUID, observation.getUuid());
        postEvent(TOPIC_STATUS_CHANGED, props);
    }
private void postStatusObservation ( final Observation observation ) throws PersistenceFailedException , ValidationFailedException { persistObservation ( observation ) ; m_LastStatusObservation = observation ; final Map < String , Object > props = new HashMap < > ( ) ; if ( observation . getStatus ( ) != null && observation . getStatus ( ) . getSummaryStatus ( ) != null ) { final OperatingStatus summaryStatus = observation . getStatus ( ) . getSummaryStatus ( ) ; props . put ( EVENT_PROP_ASSET_STATUS_SUMMARY , summaryStatus . getSummary ( ) . toString ( ) ) ; final String desc = summaryStatus . getDescription ( ) ; if ( desc != null ) { props . put ( EVENT_PROP_ASSET_STATUS_DESCRIPTION , desc ) ; } } else { props . put ( EVENT_PROP_ASSET_STATUS_SUMMARY , SummaryStatusEnum . UNKNOWN . toString ( ) ) ; } props . put ( EVENT_PROP_ASSET_STATUS_OBSERVATION_UUID , observation . getUuid ( ) ) ; postEvent ( TOPIC_STATUS_CHANGED , props ) ; }
Method that posts that a status observation has occurred.
Method that posts that a status observation has occurred .