Code Search for Developers
 
 
  

StoryCardWeb.java from MASE: Agile Software Engineering at Krugle


Show StoryCardWeb.java syntax highlighted

package ucalgary.ebe.webui.client.data;

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

public class StoryCardWeb implements IsSerializable {
	
	public static final String DEFAULT_NAME = "Default Storycard";
	public static final String DEFAULT_DESC = "no description";
	public static final float DEFAULT_ESTIMATE = 0f;

	private long id, parent;
	private float actualEffort, bestCaseEstimate, mostLikelyEstimate, worstCaseEstimate;
	private boolean completed;
	private String name, description;
	
	
	public StoryCardWeb() {
		this.id = 0;
		this.parent = 0;
		this.name = DEFAULT_NAME;
		this.description = DEFAULT_DESC;
		this.bestCaseEstimate = DEFAULT_ESTIMATE;
		this.mostLikelyEstimate = DEFAULT_ESTIMATE;
		this.worstCaseEstimate = DEFAULT_ESTIMATE;
		this.actualEffort = DEFAULT_ESTIMATE;
		this.completed = false;
	}
	
	
	public StoryCardWeb(long parentid, String name, String description, 
			float bestCaseEstimate, float mostlikelyEstimate, float worstCaseEstimate, float actualEffort, boolean completed) {

		this.id = 0;
		this.parent = parentid;
		this.name = name;
		this.description = description;
		this.bestCaseEstimate = bestCaseEstimate;
		this.mostLikelyEstimate = mostlikelyEstimate;
		this.worstCaseEstimate = worstCaseEstimate;
		this.actualEffort = actualEffort;
		this.completed = completed;
	}

	public StoryCardWeb(long id, long parentid, String name, String description, 
			float bestCaseEstimate, float mostlikelyEstimate, float worstCaseEstimate, float actualEffort, boolean completed) {

		this.id = id;
		this.parent = parentid;
		this.name = name;
		this.description = description;
		this.bestCaseEstimate = bestCaseEstimate;
		this.mostLikelyEstimate = mostlikelyEstimate;
		this.worstCaseEstimate = worstCaseEstimate;
		this.actualEffort = actualEffort;
		this.completed = completed;
	}

	public float getActualEffort() {
		return this.actualEffort;
		
	}

	public float getBestCaseEstimate() {
		return this.bestCaseEstimate;
		
	}

	public float getMostlikelyEstimate() {
		return this.mostLikelyEstimate;
		
	}

	public float getWorstCaseEstimate() {
		return this.worstCaseEstimate;
	}

	public void setActualEffort(float actual) {
		this.actualEffort = actual;

	}

	public void setBestCaseEstimate(float bestcase) {
		this.bestCaseEstimate = bestcase;

	}

	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 void setMostlikelyEstimate(float mostlikely) {
		this.mostLikelyEstimate = mostlikely;

	}

	public void setWorstCaseEstimate(float worstcase) {
		this.worstCaseEstimate = worstcase;

	}

	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 storycard = "###################################\n"+
			"#           StoryCard             #\n" +
			"###################################\n\n" +
			"ID:\t\t"+this.id+"\n"+
			"Name:\t\t"+this.name+"\n"+
			"Parent:\t\t"+this.parent+"\n"+
			"Best case:\t"+this.bestCaseEstimate+"\n"+
			"Most likely:\t"+this.mostLikelyEstimate+"\n"+
			"Worst case:\t"+this.worstCaseEstimate+"\n"+
			"Actual:\t\t"+this.actualEffort+"\n"+
			"Completed:\t"+this.completed+"\n\n";
		return storycard;
	}
	
	public boolean equals (Object o){
        if (o instanceof StoryCardWeb){
        	StoryCardWeb storycard = (StoryCardWeb) o;
            return storycard.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