FileDocCategorySizeDatePackage
GetCmd.javaAPI DocExample446Thu Jan 08 22:10:12 GMT 1998dcj.examples

GetCmd.java

package dcj.examples;

/**
 * Source code from "Java Distributed Computing", by Jim Farley.
 *
 * Class: GetCmd
 * Example: 1-1
 * Description: A command sent between two agents, used to request
 *      something of the receiver.
 */

import java.lang.*;

public class GetCmd extends SimpleCmd
{
  public GetCmd(String s) { super(s); }

  public String Do() {
    String result = arg + " Gotten\n";
    return result;
  }
}