org.iges.grads.server.dap
Class DummyFunction

java.lang.Object
  |
  +--org.iges.grads.server.dap.DummyFunction

public class DummyFunction
extends java.lang.Object

A hack for the pre-JavaDODS 1.1 implementation of constraint expression parsing. When evaluated, the DummyFunction just prints its name and arguments. This is the only way to get this information from the JavaDODS 1.0 API.


Constructor Summary
DummyFunction(java.lang.String name)
           
 
Method Summary
 BaseType eval(ServerDDS dds, Clause[] a, java.lang.Object specialO)
          Get the value of this function.
 boolean evalBoolean(ServerDDS dds, Clause[] a, java.lang.Object specialO)
          Get the value of this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyFunction

public DummyFunction(java.lang.String name)
Method Detail

eval

public BaseType eval(ServerDDS dds,
                     Clause[] a,
                     java.lang.Object specialO)
              throws InvalidOperatorException,
                     RegExpException,
                     NoSuchVariableException,
                     SBHException,
                     java.io.IOException
Get the value of this function. If the values of all the arguments are guaranteed not to change, the value may be computed only once. If the values might change (i.e., they depend on values of sequences or remote variables) the function will be rerun for each call to this method.

Returns:
The value of the clause.
Throws:
InvalidOperatorException - is thrown if the function cannot be evaluated on the given clauses
RegExpException
NoSuchVariableException
SBHException
java.io.IOException

evalBoolean

public boolean evalBoolean(ServerDDS dds,
                           Clause[] a,
                           java.lang.Object specialO)
                    throws InvalidOperatorException,
                           RegExpException,
                           NoSuchVariableException,
                           SBHException,
                           java.io.IOException
Get the value of this function. If the values of all the arguments are guaranteed not to change, the value may be computed only once. If the values might change (i.e., they depend on values of sequences or remote variables) the function will be rerun for each call to this method.

Returns:
The value of the clause.
Throws:
InvalidOperatorException - is thrown if the function cannot be evaluated on the given clauses
RegExpException
NoSuchVariableException
SBHException
java.io.IOException