|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.buglabs.bug.module.motion.MotionModlet
public class MotionModlet
| Constructor Summary | |
|---|---|
MotionModlet(org.osgi.framework.BundleContext context,
int slotId,
java.lang.String moduleName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getModuleId()
Return the MODULE ID. |
java.lang.String |
getModuleName()
Get the human-readable name of this module. |
java.util.List |
getModuleProperties()
Return a list of IModuleProperty elements. |
int |
getSlotId()
|
void |
notifyEventListeners(InputEvent[] events)
|
void |
notifyObservers()
|
void |
register(IMotionEventListener listener)
|
void |
register(IMotionObserver obs)
|
boolean |
setModuleProperty(IModuleProperty property)
Set a property. |
void |
setup()
Connect to any devices or do any initialization. |
void |
start()
Begin modlet. |
void |
stop()
Unregister services and release any resources. |
void |
unregister(IMotionEventListener listener)
|
void |
unregister(IMotionObserver obs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MotionModlet(org.osgi.framework.BundleContext context,
int slotId,
java.lang.String moduleName)
| Method Detail |
|---|
public void setup()
throws java.lang.Exception
IModlet
setup in interface IModletjava.lang.Exception
public void start()
throws java.lang.Exception
IModlet
start in interface IModletjava.lang.Exception
public void stop()
throws java.lang.Exception
IModlet
stop in interface IModletjava.lang.Exceptionpublic java.util.List getModuleProperties()
IModuleControlIModuleProperty elements.
getModuleProperties in interface IModuleControlpublic boolean setModuleProperty(IModuleProperty property)
IModuleControl
setModuleProperty in interface IModuleControlpublic java.lang.String getModuleName()
IModuleControl
getModuleName in interface IModuleControlpublic java.lang.String getModuleId()
IModlet
getModuleId in interface IModletpublic int getSlotId()
getSlotId in interface IModletgetSlotId in interface IModuleControlpublic java.lang.String getDescription()
public void register(IMotionObserver obs)
register in interface IMotionSubjectpublic void unregister(IMotionObserver obs)
unregister in interface IMotionSubjectpublic void notifyObservers()
notifyObservers in interface IMotionSubjectpublic void notifyEventListeners(InputEvent[] events)
notifyEventListeners in interface IMotionSubjectpublic void register(IMotionEventListener listener)
register in interface IMotionSubjectpublic void unregister(IMotionEventListener listener)
unregister in interface IMotionSubject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||