FileDocCategorySizeDatePackage
SimpleCmd.javaAPI DocExample508Thu Jan 08 22:15:18 GMT 1998dcj.examples

SimpleCmd.java

package dcj.examples;

/**
 * Source code from "Java Distributed Computing", by Jim Farley.
 *
 * Class: SimpleCmd
 * Example: 1-1
 * Description: Base class for commands in a message-based
 *      communication protocol.  Subclasses are defined to
 *      represent specifics command types defining a particular
 *      protocol.
 */

public abstract class SimpleCmd
{
  protected String arg;

  public SimpleCmd(String inArg) {
    arg = inArg;
  }

  public abstract String Do();
}