01: /*
02: * Jacareto Copyright (c) 2002-2005
03: * Applied Computer Science Research Group, Darmstadt University of
04: * Technology, Institute of Mathematics & Computer Science,
05: * Ludwigsburg University of Education, and Computer Based
06: * Learning Research Group, Aachen University. All rights reserved.
07: *
08: * Jacareto is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.
12: *
13: * Jacareto 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 GNU
16: * General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public
19: * License along with Jacareto; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21: *
22: */
23:
24: package jacareto.convert;
25:
26: import jacareto.system.Environment;
27:
28: /**
29: * This is an interface for recursive interaction-model elements. It provides access to the {@link
30: * jacareto.convert.SelectionInteractionModelConverter} so that a converting of the childs is
31: * possible.
32: *
33: * @author <a href="mailto:markus.bois@web.de">Markus Bois</a>
34: * @version 1.02
35: */
36: public abstract class RecursiveInteractionModelConverter extends
37: InteractionModelConverter {
38: /** The SelectionInteractionModelConverter for converting the childs */
39: protected SelectionInteractionModelConverter selectionInteractionModelConverter;
40:
41: /**
42: * Creates a new converter.
43: *
44: * @param env the environment
45: */
46: public RecursiveInteractionModelConverter(Environment env) {
47: super (env);
48: }
49:
50: /**
51: * Creates a new recursive converter
52: *
53: * @param env the enviroment
54: * @param selectionInteractionModelConverter the available converters
55: */
56: public RecursiveInteractionModelConverter(
57: Environment env,
58: SelectionInteractionModelConverter selectionInteractionModelConverter) {
59: super (env);
60: setSelectionInteractionModelConverter(selectionInteractionModelConverter);
61: }
62:
63: /**
64: * Sets the converters
65: *
66: * @param selectionInteractionModelConverter sets the converters.
67: */
68: public void setSelectionInteractionModelConverter(
69: SelectionInteractionModelConverter selectionInteractionModelConverter) {
70: this .selectionInteractionModelConverter = selectionInteractionModelConverter;
71: }
72:
73: /**
74: * Give the setted converters
75: *
76: * @return the converts
77: */
78: public SelectionInteractionModelConverter getSelectionInteractionModelConverter() {
79: return (selectionInteractionModelConverter);
80: }
81: }
|