mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestControllerMgrImpl.java
private void mockSystemModeEvent(int systemId, OperationMode mode)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        props.put(TerraHarvestController.EVENT_PROP_SYSTEM_MODE, mode.value());
        
        final Event event = createOsgiEvent(TerraHarvestController.TOPIC_CONTROLLER_MODE_CHANGED 
                + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        m_ModeEventHandler.handleEvent(event);
    }
/**
     * Used to mock a SystemMode event regarding a mode change for a particular controller. 
     */
Used to mock a SystemMode event regarding a mode change for a particular controller.
Used to mock a SystemMode event regarding a mode change for a particular controller .
private void mockSystemModeEvent(int systemId, OperationMode mode)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID, systemId);
        props.put(TerraHarvestController.EVENT_PROP_SYSTEM_MODE, mode.value());
        final Event event = createOsgiEvent(TerraHarvestController.TOPIC_CONTROLLER_MODE_CHANGED 
                + RemoteConstants.REMOTE_TOPIC_SUFFIX, props);
        m_ModeEventHandler.handleEvent(event);
    }
private void mockSystemModeEvent ( int systemId , OperationMode mode ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID , systemId ) ; props . put ( TerraHarvestController . EVENT_PROP_SYSTEM_MODE , mode . value ( ) ) ; final Event event = createOsgiEvent ( TerraHarvestController . TOPIC_CONTROLLER_MODE_CHANGED + RemoteConstants . REMOTE_TOPIC_SUFFIX , props ) ; m_ModeEventHandler . handleEvent ( event ) ; }
Used to mock a SystemMode event regarding a mode change for a particular controller.
Used to mock a SystemMode event regarding a mode change for a particular controller .