rcxport
Class RCXProgram

java.lang.Object
  |
  +--rcxport.RCXProgram

public class RCXProgram
extends Object
implements Serializable

Representation of an RCX program. Includes both a set of tasks and a set of subroutines.

Author:
Scott B. Lewis, slewis@teleport.com
See Also:
Serialized Form

Field Summary
static int MAX_PROGS
           
static int MAX_TASKS
           
(package private)  byte myProgNum
           
(package private)  Vector mySubs
           
(package private)  Vector myTasks
           
 
Constructor Summary
RCXProgram(byte prog)
           
RCXProgram(byte prog, byte[] aTask)
           
RCXProgram(byte prog, RCXTask aTask)
           
 
Method Summary
 RCXProgram addSub(RCXSub aSub)
           
 RCXProgram addTask(RCXTask task)
           
protected  void downloadSubroutines(RCXPort aPort)
           
protected  void downloadTasks(RCXPort aPort)
           
protected  int getProgramNum()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_TASKS

public static final int MAX_TASKS

MAX_PROGS

public static final int MAX_PROGS

myTasks

Vector myTasks

mySubs

Vector mySubs

myProgNum

byte myProgNum
Constructor Detail

RCXProgram

public RCXProgram(byte prog)

RCXProgram

public RCXProgram(byte prog,
                  RCXTask aTask)

RCXProgram

public RCXProgram(byte prog,
                  byte[] aTask)
Method Detail

addTask

public RCXProgram addTask(RCXTask task)

addSub

public RCXProgram addSub(RCXSub aSub)

downloadTasks

protected void downloadTasks(RCXPort aPort)
                      throws IOException

downloadSubroutines

protected void downloadSubroutines(RCXPort aPort)
                            throws IOException

getProgramNum

protected int getProgramNum()