mil.dod.th.ose.bbb.platform/src/mil/dod/th/ose/bbb/platform/BeagleBoneBlackPowerManager.java
@Activate
    public void activate(final Map<String, Object> props)
    {
        m_WakeSources = new HashSet<>();
        m_SupportedLinks = new HashMap<>();
        m_SupportedLinks.put("/dev/ttyS1", "gpio0_4_wake");
        m_SupportedLinks.put("/dev/ttyS2", "gpio0_5_wake");
        
        final BeagleBoneBlackPowerManagerConfig config = 
                Configurable.createConfigurable(BeagleBoneBlackPowerManagerConfig.class, props);
        m_WakeMgr.update(config);
        
        m_TimerMgr.addScheduledAtFixedRateTask(m_LockMgr, 0, SECOND_MS);
        final long startupDelay = config.enabled() ? config.startupTimeMs() : 0;
        m_TimerMgr.addScheduledAtFixedRateTask(m_WakeMgr, startupDelay, SECOND_MS);
    }
/**
     * Method that is called upon activation of the service.
     * 
     * @param props
     *      Map that contains the initial configuration properties for the service.
     */
Method that is called upon activation of the service.

@param props
Map that contains the initial configuration properties for the service.
Method that is called upon activation of the service . @param props Map that contains the initial configuration properties for the service .
@Activate
    public void activate(final Map<String, Object> props)
    {
        m_WakeSources = new HashSet<>();
        m_SupportedLinks = new HashMap<>();
        m_SupportedLinks.put("/dev/ttyS1", "gpio0_4_wake");
        m_SupportedLinks.put("/dev/ttyS2", "gpio0_5_wake");
        final BeagleBoneBlackPowerManagerConfig config = 
                Configurable.createConfigurable(BeagleBoneBlackPowerManagerConfig.class, props);
        m_WakeMgr.update(config);
        m_TimerMgr.addScheduledAtFixedRateTask(m_LockMgr, 0, SECOND_MS);
        final long startupDelay = config.enabled() ? config.startupTimeMs() : 0;
        m_TimerMgr.addScheduledAtFixedRateTask(m_WakeMgr, startupDelay, SECOND_MS);
    }
@ Activate public void activate ( final Map < String , Object > props ) { m_WakeSources = new HashSet < > ( ) ; m_SupportedLinks = new HashMap < > ( ) ; m_SupportedLinks . put ( "/dev/ttyS1" , "gpio0_4_wake" ) ; m_SupportedLinks . put ( "/dev/ttyS2" , "gpio0_5_wake" ) ; final BeagleBoneBlackPowerManagerConfig config = Configurable . createConfigurable ( BeagleBoneBlackPowerManagerConfig . class , props ) ; m_WakeMgr . update ( config ) ; m_TimerMgr . addScheduledAtFixedRateTask ( m_LockMgr , 0 , SECOND_MS ) ; final long startupDelay = config . enabled ( ) ? config . startupTimeMs ( ) : 0 ; m_TimerMgr . addScheduledAtFixedRateTask ( m_WakeMgr , startupDelay , SECOND_MS ) ; }
Method that is called upon activation of the service.
Method that is called upon activation of the service .