01: package com.technoetic.xplanner.metrics;
02:
03: public class DeveloperMetrics {
04: private int id;
05: private String name;
06: private int iterationId;
07: private double hours;
08: private double pairedHours;
09: private double acceptedTaskHours;
10: private double acceptedStoryHours;
11: private double ownTasksWorkedHours;
12:
13: public int getId() {
14: return id;
15: }
16:
17: public void setId(int id) {
18: this .id = id;
19: }
20:
21: public void setName(String name) {
22: this .name = name;
23: }
24:
25: public String getName() {
26: return name;
27: }
28:
29: public void setIterationId(int iterationId) {
30: this .iterationId = iterationId;
31: }
32:
33: public int getIterationId() {
34: return iterationId;
35: }
36:
37: public void setHours(double hours) {
38: this .hours = hours;
39: }
40:
41: public double getHours() {
42: return hours;
43: }
44:
45: public void setPairedHours(double pairedHours) {
46: this .pairedHours = pairedHours;
47: }
48:
49: public double getPairedHours() {
50: return pairedHours;
51: }
52:
53: public double getPairedHoursPercentage() {
54: if (hours == 0)
55: return 0;
56: return (pairedHours * 100) / hours;
57: }
58:
59: public double getUnpairedHours() {
60: return hours - pairedHours;
61: }
62:
63: public double getAcceptedHours() {
64: return getAcceptedStoryHours() + getAcceptedTaskHours();
65: }
66:
67: public double getAcceptedTaskHours() {
68: return acceptedTaskHours;
69: }
70:
71: public void setAcceptedTaskHours(double acceptedTaskHours) {
72: this .acceptedTaskHours = acceptedTaskHours;
73: }
74:
75: public double getAcceptedStoryHours() {
76: return acceptedStoryHours;
77: }
78:
79: public void setAcceptedStoryHours(double acceptedStoryHours) {
80: this .acceptedStoryHours = acceptedStoryHours;
81: }
82:
83: public double getOwnTaskHours() {
84: return ownTasksWorkedHours;
85: }
86:
87: public void setOwnTasksWorkedHours(double ownTasksWorkedHours) {
88: this .ownTasksWorkedHours = ownTasksWorkedHours;
89: }
90:
91: public double getRemainingTaskHours() {
92: return getAcceptedTaskHours() + getAcceptedStoryHours()
93: - getOwnTaskHours();
94: }
95: }
|