Code Search for Developers
 
 
  

ProjectWeb.java from MASE: Agile Software Engineering at Krugle


Show ProjectWeb.java syntax highlighted

package ucalgary.ebe.webui.client.data;

import java.util.Vector;

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

public class ProjectWeb implements IsSerializable{
	
	public static final String DEFAULT_NAME = "Default Project";

	private BacklogWeb backlog;
	private Vector iterations;
	private long id;
	private String name;
	
	public ProjectWeb() {
		this.id = 0;
		this.name = DEFAULT_NAME;
		this.iterations = new Vector();
		this.backlog = null;
	}
	
	public ProjectWeb(String name) {
		this.id = 0;
		this.name = name;
		this.iterations = new Vector();
		this.backlog = null;
	}
	
	public ProjectWeb(long id, String name) {
		this.id = id;
		this.name = name;
		this.iterations = new Vector();
		this.backlog = null;
	}

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

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

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

	}

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

	}

	public void addIteration(IterationWeb iteration) {
		iteration.setParent(this.id);
		this.iterations.add(iteration);
		
	}

	public BacklogWeb getBacklog() {
		return this.backlog;
	}

	public Vector getIterationChildren() {
		return this.iterations;
	}

	public void removeIteration(IterationWeb iteration) {
		this.iterations.remove(iteration);
		
	}

	public void setBacklog(BacklogWeb backlog) {
		backlog.setParent(this.getId());
		this.backlog = backlog;
		
	}

	public void setIterationChildren(Vector iterations) {
		this.iterations = iterations;
		
	}
	
	public String toString() {
		String project = "###################################\n"+
		"#             Project             #\n" +
		"###################################\n\n" +
				"ID:\t"+this.id+"\n"+
				"Iterations:\t"+this.iterations.size()+"\n\n";
		return project;
	}

}




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