Code Search for Developers
 
 
  

WootOp.java from PeerWriter at Krugle


Show WootOp.java syntax highlighted

package fr.loria.ecoo.wooki.woot.op;

import java.io.Serializable;

import fr.loria.ecoo.wooki.woot.core.WootId;
import fr.loria.ecoo.wooki.woot.core.WootPage;

/**
 * @author molli
 */
public abstract class WootOp implements Serializable {

	private WootId opid;

	// private transient WootPage wootPage;

	private String pageName;

	// private String siteId;

	abstract public void execute(WootPage page);

	abstract public boolean precond(WootPage page);

	public WootId getOpid() {
		return opid;
	}

	public void setOpid(WootId opid) {
		this.opid = opid;
	}

	/*
	 * public WootPage getWootPage() { return wootPage; }
	 * 
	 * public void setWootPage(WootPage wootPage) { this.wootPage = wootPage; }
	 */

	/*
	 * public String getSiteId() { return siteId; }
	 * 
	 * public void setSiteId(String siteId) { this.siteId = siteId; }
	 */
	public String toString() {
		String s = " siteId: " + opid.getSiteid() + " opid: " + opid;
		return s;
	}

	/*
	 * public int compareTo(Object o){ return
	 * opid.compareTo(((WootOp)o).getOpid()); }
	 */

	public boolean equals(Object o) {
		// assert o instanceof WootOp;
		if (!(o instanceof WootOp))
			return false;
		return this.getOpid().equals(((WootOp) o).getOpid());

	}

	public String getPageName() {
		return pageName;
	}

	public void setPageName(String pageName) {
		this.pageName = pageName;
	}
}




See more files for this project here

PeerWriter

PeerWriter is a collaborative text editor. Multiple peers can edit the same document while they see overall changes in real-time. PeerWriter is based on a decentralized infrastructure, using a non-locking concurrency protocol ensuring global consistency.

Project homepage: http://sourceforge.net/projects/peerwriter
Programming language(s): Java,XML
License: gpl2

  WootDel.java
  WootIns.java
  WootOp.java