FileDocCategorySizeDatePackage
BasicMessage.javaAPI DocExample801Tue Jan 20 21:08:18 GMT 1998dcj.examples.messageV1

BasicMessage

public abstract class BasicMessage extends Object
Source code from "Java Distributed Computing", by Jim Farley. Class: BasicMessage Example: 6-1 Description: A simple message class.

Fields Summary
protected String
id
protected Vector
argList
Constructors Summary
public BasicMessage()

    argList = new Vector();
  
public BasicMessage(String mid)

    id = mid;
    argList = new Vector();
  
Methods Summary
public abstract booleanDo()

public voidaddArg(java.lang.String arg)

    argList.addElement(arg);
  
public java.util.VectorargList()

    Vector listCopy = (Vector)argList.clone();
    return listCopy;
  
public java.lang.StringmessageID()

    return id;
  
protected voidsetId(java.lang.String mid)

    id = mid;