CS 1705 Library

cs1705.web
Class RunRobotTask

java.lang.Object
  extended by cs1705.web.RunRobotTask

public class RunRobotTask
extends Object

This class represents a main program that takes a command-line argument that names a RobotTask; it creates an instance of the named task and then runs it. If multiple command-line arguments are given, they are all interpreted as RobotTask names and are created and executed in turn.

As an example, to run a RobotTask called MyRobotTest, use the following command:

    java -cp C:/BlueJ/lib/userlib/cs1705.jar cs1705.RunRobotTask MyRobotTest
  

Note that this example presumes that cs1705.jar is located at the specified path (based on a default BlueJ installation using the course-provided installer) and MyRobotTest.class is in the current directory. Use relative or absolute path names to refer to these files if they are somewhere else.

Version:
2003.08.20
Author:
Stephen Edwards

Constructor Summary
RunRobotTask()
          Create a new RunRobotTask object.
 
Method Summary
static void main(String[] args)
          This main method takes the name of a RobotTask class as an argument, and it executes the corresponding task.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunRobotTask

public RunRobotTask()
Create a new RunRobotTask object.

Method Detail

main

public static void main(String[] args)
This main method takes the name of a RobotTask class as an argument, and it executes the corresponding task. At least one argument is required. If multiple arguments are given, they are all interpreted as RobotTask class names and all are executed in the order specified.

Parameters:
args - the argument list from the command line

Last updated: Wed, Apr 1, 2009 • 12:29 AM EDT

Copyright © 2009 Virginia Tech.