001: /*
002: * Copyright (c) 2004-2006, Jean-François Brazeau. All rights reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions are met:
006: *
007: * 1. Redistributions of source code must retain the above copyright notice,
008: * this list of conditions and the following disclaimer.
009: *
010: * 2. Redistributions in binary form must reproduce the above copyright
011: * notice, this list of conditions and the following disclaimer in the
012: * documentation and/or other materials provided with the distribution.
013: *
014: * 3. The name of the author may not be used to endorse or promote products
015: * derived from this software without specific prior written permission.
016: *
017: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
018: * IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
019: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
020: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
021: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
022: * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
023: * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
024: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
025: * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
026: * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
027: */
028: package jfb.tools.activitymgr.core.beans;
029:
030: /**
031: * Sommes associées à une tache et ses sous-taches.
032: */
033: public class TaskSums {
034:
035: /** Somme des budgets */
036: private long budgetSum;
037:
038: /** Somme des consommés initiaux */
039: private long initiallyConsumedSum;
040:
041: /** Somme des reste à faire */
042: private long todoSum;
043:
044: /** Somme des consommés */
045: private long consumedSum;
046:
047: /** Nombre de contributions */
048: private long contributionsNb;
049:
050: /**
051: * @return la somme des bugets.
052: */
053: public long getBudgetSum() {
054: return budgetSum;
055: }
056:
057: /**
058: * Définit la somme des budgets.
059: * @param budgetSum la nouvelle somme.
060: */
061: public void setBudgetSum(long budgetSum) {
062: this .budgetSum = budgetSum;
063: }
064:
065: /**
066: * @return la somme des consommés initiaux.
067: */
068: public long getInitiallyConsumedSum() {
069: return initiallyConsumedSum;
070: }
071:
072: /**
073: * Définit la somme des consommés initiaux.
074: * @param initiallyConsumedSum la nouvelle somme.
075: */
076: public void setInitiallyConsumedSum(long initiallyConsumedSum) {
077: this .initiallyConsumedSum = initiallyConsumedSum;
078: }
079:
080: /**
081: * @return la somme des reste à faire.
082: */
083: public long getTodoSum() {
084: return todoSum;
085: }
086:
087: /**
088: * Définit la somme des reste à faire.
089: * @param todoSum la nouvelle somme.
090: */
091: public void setTodoSum(long todoSum) {
092: this .todoSum = todoSum;
093: }
094:
095: /**
096: * @return la somme des consommés.
097: */
098: public long getConsumedSum() {
099: return consumedSum;
100: }
101:
102: /**
103: * Définit la somme des consommés.
104: * @param consumed la nouvelle somme.
105: */
106: public void setConsumedSum(long consumed) {
107: this .consumedSum = consumed;
108: }
109:
110: /**
111: * Retourne le nombre de contributions.
112: * @return le nombre de contributions.
113: */
114: public long getContributionsNb() {
115: return contributionsNb;
116: }
117:
118: /**
119: * Définit le nombre de contributions.
120: * @param contributionsNb le nombre de contributions.
121: */
122: public void setContributionsNb(long contributionsNb) {
123: this.contributionsNb = contributionsNb;
124: }
125:
126: }
|