com.buglabs.module
Interface IModuleControl

All Known Subinterfaces:
IGPSModuleControl, IGSMModuleControl, ILCDModuleControl, IMDACCModuleControl
All Known Implementing Classes:
AudioModlet, BUGBeeModlet, CameraModlet, GPSModlet, GSMModlet, LCDModlet, MotionModlet, PBModlet, SensorModlet, VonHippelModlet, WifiModlet

public interface IModuleControl

An implementor exposes a BUG module to the runtime. This module can be queried and manipulated by clients such as the IDE.


Method Summary
 java.lang.String getModuleName()
          Get the human-readable name of this module.
 java.util.List getModuleProperties()
          Return a list of IModuleProperty elements.
 int getSlotId()
           
 int resume()
          Resume the module.
 boolean setModuleProperty(IModuleProperty property)
          Set a property.
 int suspend()
          Suspend the module.
 

Method Detail

getModuleProperties

java.util.List getModuleProperties()
Return a list of IModuleProperty elements.

Returns:

getModuleName

java.lang.String getModuleName()
Get the human-readable name of this module.

Returns:

getSlotId

int getSlotId()

setModuleProperty

boolean setModuleProperty(IModuleProperty property)
Set a property. This is from a client request.

Parameters:
property -
Returns:

suspend

int suspend()
            throws java.io.IOException
Suspend the module.

Throws:
java.io.IOException

resume

int resume()
           throws java.io.IOException
Resume the module.

Throws:
java.io.IOException