// Carnegie Mellon University
//   Information Networking Institute and
//   School of Computer Science
//
// Master Thesis: A Monitoring Tool for Overlay Network
// By: TungFai Chan and Annie Cheng
//
// File: DisplayLinkInfo.java
// Path: eventbase/link
// Description: This class is used by GUI for display purpose

package eventbase.link;

public class DisplayLinkInfo {

  int srcID;
  int tgtID;
  int s2tDelay;
  int t2sDelay;

  public DisplayLinkInfo(int srcid, int tgtid) {
    srcID = srcid;
    tgtID = tgtid;
    s2tDelay = -1;
    t2sDelay = -1;
  }

  public int getSourceId() {
    return srcID;
  }

  public int getTargetID() {
    return tgtID;
  }

  public int getSrcToTargetDelay() {
    return s2tDelay;
  }

  public int getTargetToSrcDelay() {
    return t2sDelay;
  }

  public void setSrcToTargetDelay (int val) {
    s2tDelay = val;
  }

  public void setTargetToSrcDelay (int val) {
    t2sDelay = val;
  }

  public boolean isEmpty() {
    if (s2tDelay == -1 && t2sDelay == -1)
      return true;
    return false;
  }
}