Statistics
| Revision:

root / tags / v1_1_Build_1013 / libraries / libIverUtiles / src / com / iver / utiles / swing / threads / Monitorable.java @ 13521

History | View | Annotate | Download (3.05 KB)

1 5317 fjp
/*
2
 * Created on 09-mar-2006
3
 *
4
 * gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
5
 *
6
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
7
 *
8
 * This program is free software; you can redistribute it and/or
9
 * modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation; either version 2
11
 * of the License, or (at your option) any later version.
12
 *
13
 * This program 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 this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
21
 *
22
 * For more information, contact:
23
 *
24
 *  Generalitat Valenciana
25
 *   Conselleria d'Infraestructures i Transport
26
 *   Av. Blasco Ib??ez, 50
27
 *   46010 VALENCIA
28
 *   SPAIN
29
 *
30
 *      +34 963862235
31
 *   gvsig@gva.es
32
 *      www.gvsig.gva.es
33
 *
34
 *    or
35
 *
36
 *   IVER T.I. S.A
37
 *   Salamanca 50
38
 *   46005 Valencia
39
 *   Spain
40
 *
41
 *   +34 963163400
42
 *   dac@iver.es
43
 */
44
/* CVS MESSAGES:
45
*
46
* $Id$
47
* $Log$
48
* Revision 1.1  2006-05-22 10:31:55  fjp
49
* Monitorable tasks easy
50
*
51
* Revision 1.3  2006/05/15 14:56:23  azabala
52
* A?adida la posibilidad de modificar el paso actual (para que en tareas que constan de varios pasos, para cada paso se pueda mostrar una barra llenandose)
53
*
54
* Revision 1.2  2006/03/09 18:43:29  azabala
55
* *** empty log message ***
56
*
57
* Revision 1.1  2006/03/09 18:26:19  azabala
58
* *** empty log message ***
59
*
60
*
61
*/
62
package com.iver.utiles.swing.threads;
63
/**
64
 * Interface to monitorize a long process, which operates
65
 * in many individual steps
66
 * @author azabala
67
 *
68
 */
69
public interface Monitorable {
70
        /**
71
         * Report to monitor that an individual step
72
         * was processed.
73
         *
74
         */
75
        public void reportStep();
76
        /**
77
         * Return the number of steps processed
78
         * @return
79
         */
80
        public int getCurrentStep();
81
        /**
82
         * Allows to modify current step.
83
         *
84
         */
85
        public void setCurrentStep(int currentStep);
86
87
        /**
88
         * report monitor what number has the initial
89
         * step of the process is monitoring
90
         * @param step
91
         */
92
        public void setInitialStep(int step);
93
94
        public int getInitialStep();
95
96
        public int getFinalStep();
97
        /**
98
         * report monitor what number has the final
99
         * step of the process is monitoring
100
         * (no apply to undefined process)
101
         * @param step
102
         */
103
        public void setFinalStep(int step);
104
        /**
105
         * Reports to the monitor that the process  is
106
         * monitoring is (or not) a defined process. A defined
107
         * process is a process whose number of step is predefined
108
         * (in front of not defined process, which may run in
109
         * an unknown number of steps)
110
         * @param defined
111
         */
112
        public void setDeterminatedProcess(boolean defined);
113
        /**
114
         * Tells if the process is monitoring is defined
115
         * @return
116
         */
117
        public boolean isDeterminatedProcess();
118
        /**
119
         * Sets initial default monitorization values
120
         */
121
        public void reset();
122
123
}