example.platform.power/src/example/platform/power/ExamplePlatformKernel.java
public void enableWakeSource(PhysicalLink link) throws IllegalStateException
    {
        if (m_WakeSources.contains(link))
        {
            throw new IllegalStateException(String.format("Requested wake source [%s] already enabled.", 
                    link.getName()));
        }
        
        m_WakeSources.add(link);
        m_Logging.log(LogService.LOG_INFO, "Wake source [%s] enabled.", link.getName());
    }
/**
     * Sets a {@link PhysicalLink} as a valid wake source for the platform
     * @param link
     *      the PhysicalLink to set
     * @throws IllegalStateException
     *      if the PhysicalLink is already enabled as a wake source
     */
Sets a  PhysicalLink as a valid wake source for the platform
@param link
the PhysicalLink to set
@throws IllegalStateException
if the PhysicalLink is already enabled as a wake source
Sets a PhysicalLink as a valid wake source for the platform @param link the PhysicalLink to set @throws IllegalStateException if the PhysicalLink is already enabled as a wake source
public void enableWakeSource(PhysicalLink link) throws IllegalStateException
    {
        if (m_WakeSources.contains(link))
        {
            throw new IllegalStateException(String.format("Requested wake source [%s] already enabled.", 
                    link.getName()));
        }
        m_WakeSources.add(link);
        m_Logging.log(LogService.LOG_INFO, "Wake source [%s] enabled.", link.getName());
    }
public void enableWakeSource ( PhysicalLink link ) throws IllegalStateException { if ( m_WakeSources . contains ( link ) ) { throw new IllegalStateException ( String . format ( "Requested wake source [%s] already enabled." , link . getName ( ) ) ) ; } m_WakeSources . add ( link ) ; m_Logging . log ( LogService . LOG_INFO , "Wake source [%s] enabled." , link . getName ( ) ) ; }
Sets a {@link PhysicalLink} as a valid wake source for the platform
 @param link
      the PhysicalLink to set
 @throws IllegalStateException
      if the PhysicalLink is already enabled as a wake source
Sets a { @link PhysicalLink } as a valid wake source for the platform @param link the PhysicalLink to set @throws IllegalStateException if the PhysicalLink is already enabled as a wake source