Class FlockStub

java.lang.Object
  |
  +--Flock
        |
        +--FlockStub

public class FlockStub
extends Flock

A flock to use when developing the ui


Inner classes inherited from class Flock
Flock.DefaultListener, Flock.ExamineListener
 
Field Summary
private  Capture parent
           
 
Fields inherited from class Flock
ANGLE_ALIGN2_DATA_SIZE, ANGLE_ALIGN2_PARAM, ANGLES_DATA, AUTOCONFIG_PARAM, azimReference, birds, captureData, CHANGEVALUE_COMMAND, debug, defaultListener, defaultMeasurementRate, elevReference, eListener, EXAMINE_VALUE_COMMAND, flockSize, GROUP_MODE_PARAM, groupMode, isConnected, master, MATRIX_MODE, maxFlockSize, MEASUREMENT_RATE_PARAM, measurementRate, POINT_COMMAND, portNames, POSITION_ANGLES_MODE, POSITION_ANGLES_NUM_BYTES, POSITION_MATRIX_MODE, POSITION_MATRIX_NUM_BYTES, POSITION_MODE, POSITION_NUM_BYTES, QUATERNION_DATA, readableFileName, reconfig, REFERENCE_FRAME2_PARAM, referenceFrameChanged, rollReference, RS232_TO_FBB, RUN_COMMAND, SLEEP_COMMAND, sleeping, startTime, stopTime, STREAM_COMMAND, streaming
 
Constructor Summary
(package private) FlockStub()
           
  FlockStub(Capture app)
          Default constructor for Flock.
 
Method Summary
 void fly()
          When the flock is running with a master and slaves, this method is used to tell the flock to start flying.
 void sendPointCommand()
          Sends the point command to the Master bird
 void sendSleepCommand()
          Sends the sleep command to the Master bird.
 void sendStreamCommand()
          Sends the stream command to all of the birds in the flock
 void setFlockSize(int size)
          Sets the size of the flock.
 void shutdown()
          Puts the birds to sleep and closes the serial connections to the flock.
 void startCapture()
          Start capturing data
 void stopCapture()
          Stop capturing
 void stopStream()
          Stops the stream
 
Methods inherited from class Flock
beginCapture, calibrate, changeAngleAlign2, changeAngleAlign2, changeAutoconfig, changeMeasurementRate, changeMeasurementRate, changeReferenceFrame2, enableGroupMode, endCapture, examineAngleAlign2, examineMeasurementRate, examineMeasurementRate, examineReferenceFrame2, getDefaultListener, getFlockSize, getQuaternion, isGroupMode, isStreaming, saveCaptureToFile, sendAutoconfig, sendPointCommand, setAnglesMode, setAnglesMode, setFlockSize, setMatrixMode, setMatrixMode, setQuaternionMode, setQuaternionMode
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

parent

private Capture parent
Constructor Detail

FlockStub

public FlockStub(Capture app)
Default constructor for Flock. Assumes that the flock size is 3.

FlockStub

FlockStub()
Method Detail

sendPointCommand

public void sendPointCommand()
Sends the point command to the Master bird
Overrides:
sendPointCommand in class Flock

startCapture

public void startCapture()
Start capturing data

stopCapture

public void stopCapture()
Stop capturing

fly

public void fly()
When the flock is running with a master and slaves, this method is used to tell the flock to start flying.
Overrides:
fly in class Flock

setFlockSize

public void setFlockSize(int size)
Sets the size of the flock.
Parameters:
size - is the number of birds in the flock.

sendStreamCommand

public void sendStreamCommand()
Sends the stream command to all of the birds in the flock
Overrides:
sendStreamCommand in class Flock

stopStream

public void stopStream()
Stops the stream
Overrides:
stopStream in class Flock

sendSleepCommand

public void sendSleepCommand()
Sends the sleep command to the Master bird.
Overrides:
sendSleepCommand in class Flock

shutdown

public void shutdown()
Puts the birds to sleep and closes the serial connections to the flock.
Overrides:
shutdown in class Flock