コード例 #1
0
  public JungGraphObserver(String name) {
    this.name = name;
    this.hyphadataPid = Configuration.getPid(PAR_HYPHADATA_PROTO);
    this.hyphalinkPid = Configuration.getPid(PAR_HYPHALINK_PROTO);
    this.mycocastPid = Configuration.getPid(PAR_MYCOCAST_PROTO);
    this.period = Configuration.getInt(name + "." + PAR_PERIOD);

    this.walkDelay = Configuration.getInt(name + "." + PAR_WALK_DELAY);
    mainThread = Thread.currentThread();
    this.changeListeners = new HashSet<ChangeListener>();

    visualizer = null;

    // HyphaData.addHyphaDataListener(this);
    // HyphaLink.addHyphaLinkListener(this);
  }
コード例 #2
0
ファイル: FingerObserver.java プロジェクト: naser-ayat/bol1
 /** Reads configuration parameters, using the specified prefix. */
 public FingerObserver(String prefix) {
   pid = Configuration.getPid(prefix + "." + PAR_PROT);
   hid = Configuration.getPid(prefix + "." + PAR_HOLDER, pid);
   this.prefix = prefix;
 }