opendap.servers.test
Class SSFdummy

java.lang.Object
  extended by opendap.servers.test.SSFdummy
All Implemented Interfaces:
BoolFunction, ServerSideFunction

public class SSFdummy
extends java.lang.Object
implements BoolFunction


Constructor Summary
SSFdummy()
           
 
Method Summary
 void checkArgs(java.util.List args)
          Checks that the arguments given are acceptable arguments for this function.
 boolean evaluate(java.util.List args)
          Evaluates the function using the argument list given.
 java.lang.String getName()
          Returns the name of the server-side function, as it will appear in constraint expressions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSFdummy

public SSFdummy()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ServerSideFunction
Returns the name of the server-side function, as it will appear in constraint expressions. This must be a valid OPeNDAP identifier. All functions must have distinct names.

Specified by:
getName in interface ServerSideFunction

checkArgs

public void checkArgs(java.util.List args)
Description copied from interface: ServerSideFunction
Checks that the arguments given are acceptable arguments for this function. This method should only use those attributes of a SubClause which do not change over its lifetime - whether it is constant, what class of SubClause it is, what class of BaseType it returns, etc. Thus, the method should not look at the actual value of an argument unless the argument is flagged as constant.

Specified by:
checkArgs in interface ServerSideFunction
Parameters:
args - A list of SubClauses that the caller is considering passing to the evaluate() method of the function.

evaluate

public boolean evaluate(java.util.List args)
Description copied from interface: BoolFunction
Evaluates the function using the argument list given.

Specified by:
evaluate in interface BoolFunction