Coverage details for net.sourceforge.demetrix.ui.balancesheets.ExcelTaskBalanceSheetRenderer

LineHitsSource
1 /*******************************************************************************
2  * Demetrix process modelling system
3  *
4  * Copyright (c) 2003, 2004 Dimitri A. Pissarenko
5  *
6  * This file is part of Demetrix.
7  *
8  * Demetrix is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * Demetrix is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Demetrix; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  *
22  * For further information you may
23  *
24  * - send an e-mail in Russian, German or English to dimitri.pissarenko@gmx.net
25  * - look at http://sourceforge.net/projects/demetrix/
26  * - look at http://demetrix.sourceforge.net/
27  * - look at http://members.inode.at/d.pissarenko/
28  *
29  *****************************************************************************/
30  
31 package net.sourceforge.demetrix.ui.balancesheets;
32  
33 import java.util.Vector;
34  
35 import net.sourceforge.demetrix.model.ProcessChain;
36 import net.sourceforge.demetrix.model.Task;
37  
38 import net.sourceforge.demetrix.ui.CurrentProcessChainSingleton;
39  
40 /**
41  * @author Dimitri Pissarenko
42  *
43  */
44  
45 public class ExcelTaskBalanceSheetRenderer
46     extends ExcelBalanceSheetRenderer
47     implements TaskBalanceSheetRenderer {
48  
49     private Task task;
50  
51     public ExcelTaskBalanceSheetRenderer() {
52  
530        super();
54  
550    }
56  
57     /* (non-Javadoc)
58      * @see net.sourceforge.demetrix.ui.balancesheets.TaskBalanceSheetRenderer#setTask(net.sourceforge.demetrix.model.Task)
59      */
60  
61     public void setTask(Task task) {
62  
630        this.task = task;
64  
650    }
66  
67     /* (non-Javadoc)
68      * @see net.sourceforge.demetrix.ui.balancesheets.ExcelBalanceSheetRenderer#getTaskName()
69      */
70  
71     protected String getTaskName() {
72  
730        return this.task.getProperty("name").getValue().toString();
74  
75     }
76  
77     /* (non-Javadoc)
78      * @see net.sourceforge.demetrix.ui.balancesheets.ExcelBalanceSheetRenderer#getInputs()
79      */
80  
81     protected Vector getInputs() {
82  
830        return ((ProcessChain)CurrentProcessChainSingleton.getInstance().getCurrentGraphParent().getSubGraph()).getInputs(this.task.getProperty("name").getValue().toString());
84  
85     }
86  
87     /* (non-Javadoc)
88      * @see net.sourceforge.demetrix.ui.balancesheets.ExcelBalanceSheetRenderer#getOutputs()
89      */
90  
91     protected Vector getOutputs() {
920        return ((ProcessChain)CurrentProcessChainSingleton.getInstance().getCurrentGraphParent().getSubGraph()).getOutputs(this.task.getProperty("name").getValue().toString());
93  
94     }
95  
96 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.