mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/observation/TestRemoteObservationListener.java
private Event createEvent(final Message message, Namespace namespace, final String messageType)
    {
        // properties for the event
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, message);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, 1);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, namespace.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            messageType);
        //the event
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
/**
     * Create an event with the specified fields assigned appropriately.
     */
Create an event with the specified fields assigned appropriately.
Create an event with the specified fields assigned appropriately .
private Event createEvent(final Message message, Namespace namespace, final String messageType)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, message);
        props.put(RemoteConstants.EVENT_PROP_SOURCE_ID, 1);
        props.put(RemoteConstants.EVENT_PROP_DEST_ID, 0);
        props.put(RemoteConstants.EVENT_PROP_NAMESPACE, namespace.toString());
        props.put(RemoteConstants.EVENT_PROP_MESSAGE_TYPE, 
            messageType);
        return new Event(RemoteConstants.TOPIC_MESSAGE_RECEIVED, props);
    }
private Event createEvent ( final Message message , Namespace namespace , final String messageType ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . EVENT_PROP_DATA_MESSAGE , message ) ; props . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , 1 ) ; props . put ( RemoteConstants . EVENT_PROP_DEST_ID , 0 ) ; props . put ( RemoteConstants . EVENT_PROP_NAMESPACE , namespace . toString ( ) ) ; props . put ( RemoteConstants . EVENT_PROP_MESSAGE_TYPE , messageType ) ; return new Event ( RemoteConstants . TOPIC_MESSAGE_RECEIVED , props ) ; }
Create an event with the specified fields assigned appropriately.
Create an event with the specified fields assigned appropriately .
// properties for the event //the event