com.buglabs.bug.module.motion.commands
Class MotionCommand

java.lang.Object
  extended by com.buglabs.bug.module.motion.commands.MotionCommand
All Implemented Interfaces:
ICommand

public class MotionCommand
extends java.lang.Object
implements ICommand


Constructor Summary
MotionCommand(IMotionSubject motionSubject)
           
 
Method Summary
 void execute()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getUsage()
           
 void initialize(java.util.List arguments, java.io.OutputStream out, java.io.OutputStream err, org.osgi.framework.BundleContext context)
           
 boolean isValid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MotionCommand

public MotionCommand(IMotionSubject motionSubject)
Method Detail

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface ICommand
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ICommand

getName

public java.lang.String getName()
Specified by:
getName in interface ICommand

getUsage

public java.lang.String getUsage()
Specified by:
getUsage in interface ICommand

initialize

public void initialize(java.util.List arguments,
                       java.io.OutputStream out,
                       java.io.OutputStream err,
                       org.osgi.framework.BundleContext context)
Specified by:
initialize in interface ICommand

isValid

public boolean isValid()
Specified by:
isValid in interface ICommand