1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.applications.parameter;
12
13 import org.astrogrid.applications.CeaException;
14 import org.astrogrid.applications.beans.v1.parameters.ParameterValue;
15
16 /*** Abstraction around reading and writing parameter values.
17 * @see org.astrogrid.applications.AbstractApplication#instantiateAdapter()}
18 * @author Noel Winstanley nw@jb.man.ac.uk 04-Jun-2004
19 *
20 */
21 public interface ParameterAdapter {
22
23 /*** do what it takes to get the actual value for this parameter (used for input parameters)
24 *
25 * @return the actual value for this parameter ( or some symbolic representation of it)
26 * @throws CeaException
27 */
28 Object process() throws CeaException;
29 /***
30 * write out this parameter (used for output parameters).
31 * @param o the value of the parameter to write (or some reference / represenation of it)
32 * @throws CeaException
33 */
34 void writeBack(Object o) throws CeaException;
35
36 /*** returns the parameter object this adapter is wrapping.
37 * @return the paramter value this adpater wraps.*/
38 ParameterValue getWrappedParameter();
39 }
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63