Code Search for Developers
 
 
  

BacklogWeb.java from MASE: Agile Software Engineering at Krugle


Show BacklogWeb.java syntax highlighted

package ucalgary.ebe.webui.client.data;

import java.util.Vector;

import com.google.gwt.user.client.rpc.IsSerializable;

public class BacklogWeb implements IsSerializable {
	
	public static final String DEFAULT_NAME = "Project Backlog";
	public static final String DEFAULT_DESC = "Project Backlog";

	private long id, parent;
	private Vector storycards;
	private boolean completed;
	private String name, description;

	public BacklogWeb(long id, long parentid) {
		this.id = id;
		this.parent = parentid;
		this.completed = false;
		this.name = DEFAULT_NAME;
		this.description = DEFAULT_DESC;
		this.storycards = new Vector();
	}
	

	public BacklogWeb() {
		this.id = 0;
		this.parent = 0;
		this.completed = false;
		this.name = DEFAULT_NAME;
		this.description = DEFAULT_DESC;
		this.storycards = new Vector();
	}

	public void addStoryCard(StoryCardWeb storycard) {
		storycard.setParent(this.getId());
		this.storycards.add(storycard);
	}

	public Vector getStoryCardChildren() {
		return this.storycards;
	}

	public void removeStoryCard(StoryCardWeb storycard) {
		this.storycards.remove(storycard);

	}

	public void setStoryCardChildren(Vector storycards) {
		this.storycards = storycards;
	}

	public String getDescription() {
		return this.description;
	}

	public boolean isCompleted() {
		return this.completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;

	}

	public void setDescription(String description) {
		this.description = description;

	}

	public long getId() {
		return this.id;
	}

	public String getName() {
		return this.name;
		
	}

	public long getParent() {
		return this.parent;
		
	}

	public void setId(long id) {
		this.id = id;

	}

	public void setName(String name) {
		this.name = name;

	}

	public void setParent(long id) {
		this.parent = id;

	}
	
	public String toString() {
		String backlog = "###################################\n"+
		"#            Backlog              #\n" +
		"###################################\n\n" +
				"ID:\t\t"+this.id+"\n"+
				"Name:\t\t"+this.name+"\n"+
				"Parent:\t\t"+this.parent+"\n\n";
		return backlog;
	}
	
	public boolean equals (Object o){
        if (o instanceof BacklogWeb){
        	BacklogWeb backlog = (BacklogWeb) o;
            return backlog.getId() == this.getId();
        }
        else
            return false;
    }
	

    public int hashCode(){
        return (int)getId();
    }

}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

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

  BacklogWeb.java
  IterationWeb.java
  ProjectWeb.java
  StoryCardWeb.java