KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > mediator > algebra > AlgVar


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.mediator.algebra;
24
25 import org.xquark.mediator.plan.ExecutionPlan;
26 import org.xquark.mediator.plan.Operator;
27 import org.xquark.mediator.runtime.MediatorException;
28 import org.xquark.xquery.parser.Variable;
29
30 public class AlgVar extends Algebra {
31     // **********************************************************************
32
// * VERSIONING
33
// **********************************************************************
34
private static final String JavaDoc RCSRevision = "$Revision: 1.4 $";
35     private static final String JavaDoc RCSName = "$Name: $";
36     // **********************************************************************
37
// * CLASS VARIABLES
38
// **********************************************************************
39
/**
40      * references on dependencies (type DepNode)
41      */

42     //private DepNode dependency = null ;
43

44     // ************************************************************************
45
// * INITIALIZATION
46
// ************************************************************************
47
/**
48      *
49      * @param typevisitor
50      * @param expression
51      * @param var
52      * @param parent
53      */

54     public AlgVar(Variable addvar, Variable var, AlgebraManager depmanager, boolean islet) {
55         super(addvar, var, depmanager, islet) ;
56         //dependency = depmanager.getMapNode(addvar);
57
this.addDependSourceVariable(addvar);
58         //paths = depmanager.getPathsfromVar(var);
59
/*
60         ArrayList tmplist = dependency.getPaths();
61         if (tmplist != null) if (paths == null) paths = tmplist; else paths.addAll(tmplist);
62         */

63     }
64     
65     /**
66      *
67      * @param typevisitor
68      * @param expression
69      * @param var
70      * @param parent
71      * @param dependency
72      */

73     /*
74     public DepVar(TypeVisitor typevisitor, XQueryExpression expression, Variable var, DepManager DepManager, Dep dependency) {
75         super(typevisitor, expression, var, parent) ;
76         this.dependency = dependency ;
77         dependency.setReferencer(this) ;
78     }
79     */

80     
81     // ******************************************************************
82
// * INFORMATION
83
// ******************************************************************
84

85     // ******************************************************************
86
// * METHODS
87
// ******************************************************************
88

89 // public void ParentHasIdentifier() {
90
// hasIdentifier = true;
91
// }
92

93     // ******************************************************************
94
// * CREATE EXECUTION PLAN
95
// ******************************************************************
96
/**
97      *
98      * @param plan
99      * @return
100      */

101     public Operator createOperator(ExecutionPlan plan) throws MediatorException {
102         if (true) throw new MediatorException("createAlgebra not supported in DepVar");
103         return null;
104     }
105
106     public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
107         return (AlgVar)super.clone();
108     }
109
110     public void execute(ExecutionPlan plan) throws MediatorException {
111     }
112     
113     // ******************************************************************
114
// * DEBUGGING
115
// ******************************************************************
116

117 }
118
Popular Tags