Package ass3.program.core.message

Source Code of ass3.program.core.message.Message

package ass3.program.core.message;

import java.io.Serializable;

import ass3.program.core.ChatterContext.ContextKey;

public abstract class Message implements Serializable {

  /**
   *
   */
  private static final long serialVersionUID = 6339908857519182439L;

  private ContextKey ck;

  public Message() {
    super();
  }

  public Message(String from, String to) {
    super();
    this.ck = new ContextKey(from, to);
  }

  public void prepare() {
  }

  public String getFrom() {
    return ck.getA();
  }

  public String getTo() {
    return ck.getB();
  }

  public ContextKey getCk() {
    return ck;
  }

  public void setCk(ContextKey ck) {
    this.ck = ck;
  }

}
TOP

Related Classes of ass3.program.core.message.Message

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.