|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BTFunction
Represents a server-side function, which evaluates to a BaseType. Custom server-side functions which return non-boolean values should implement this interface. For an efficient implementation, it is suggested, when possible, to use the same BaseType for the getType() method and for each successive invocation of evaluate(), changing only the BaseType's value. This avoids creation of large numbers of BaseTypes during a data request.
BTFunctionClause
Method Summary | |
---|---|
dods.dap.BaseType |
evaluate(List args)
Evaluates the function using the argument list given. |
dods.dap.BaseType |
getReturnType(List args)
A given function must always evaluate to the same class of BaseType. |
Methods inherited from interface dods.dap.Server.ServerSideFunction |
---|
checkArgs, getName |
Method Detail |
---|
dods.dap.BaseType getReturnType(List args) throws InvalidParameterException
InvalidParameterException
dods.dap.BaseType evaluate(List args) throws SDODSException
SDODSException
- Thrown if the function
cannot evaluate successfully. The exact type of exception is up
to the author of the server-side function.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |