next up previous contents
Next: References Up: Java source files Previous: Figure.java

Update.java

 
package relay;

import java.io.*;

public class Update implements java.io.Serializable {

 // These two constants are used by servers to determine if the
 // update needs to be sent back to process it came from.  Clients
 // need updates to be propagated back to them while servers don't.
 // If servers had updates propagated back to them from other
 // servers infinite loops would arise.
  public static final int CLIENT = 0;
  public static final int SERVER = 1;

  public int timestamp = 0;
  public Object arg = new String();
  public String objname = new String();
  public Object obj = new String();
  public String owner = new String();
  public int origin = CLIENT;
  public ObjectInputStream in = null;

  public String toString() {
    return("Update[" + timestamp + "," + arg + "," + objname + "," +
	   obj + "," + owner + "," + origin + "]");
  }
}



Carmine F. Greco
Wed Mar 26 23:44:38 EST 1997