Motor

javadoc

A general DC continous Motor which is controlled by 2 inputs.
A motor controller (such as Arduino or AdafruitMotorShield) is needed for the Motor service to attach.
One of the most useful methods is the motor's move(powerLevel).  The powerLevel needs to be a float value between -1.0 and 1.0   
0.0 is stop.  1.0 is full power in a clockwise direction, and -1.0 is full power is a counter clockwise direction. And fractional value will resolve to a fractional amount of power which the motor controller can supply.  e.g. 0.5 would be clockwise at 1/2 power.

Interfacing a motor and motor controller in Python

# create a motor
Motor m1 = runtime.createAndStart("m1","Motor")
Arduino arduino = runtime.createAndStart("arduino", "Arduino")
arduino.setSerialDevice("COM9",57600,8,1,0) # connect the computer to the arduino

# attach the motor to the controller
# attach motor "m1" to the arduino - use PWM pin 9 for power & pin 8 for direction
arduino.motorAttach("m1", 9, 8) 

m1.move(0.5) # move CW at 1/2 power
m1.move(0.0) # stop
m1.move(-0.5) # move CCw at 1/2 power