Uses of Class
edu.neu.ccs.parser.AbstractFunction

Packages that use AbstractFunction
edu.neu.ccs.parser Provides classes for translating Strings into values of various data types using languages with simple lexical and syntactic structures. 
 

Uses of AbstractFunction in edu.neu.ccs.parser
 

Subclasses of AbstractFunction in edu.neu.ccs.parser
 class SimpleFunction
          Class SimpleFunction is an implementation of AbstractFunction that is defined by providing its information as strings.
 

Fields in edu.neu.ccs.parser declared as AbstractFunction
static AbstractFunction JPTParser.functionAbs
          AbstractFunction to implement abs.
static AbstractFunction JPTParser.functionCeiling
          AbstractFunction to implement ceiling.
static AbstractFunction JPTParser.functionFloor
          AbstractFunction to implement floor.
static AbstractFunction JPTParser.functionRound
          AbstractFunction to implement round.
static AbstractFunction JPTParser.functionMax
          AbstractFunction to implement max.
static AbstractFunction JPTParser.functionMin
          AbstractFunction to implement min.
static AbstractFunction JPTParser.functionSqrt
          AbstractFunction to implement sqrt based on Math.sqrt.
static AbstractFunction JPTParser.functionPower
          AbstractFunction to implement power based on Math.pow.
static AbstractFunction JPTParser.functionRoot
          AbstractFunction to implement root based on MathUtilities.root.
static AbstractFunction JPTParser.functionToDegrees
          AbstractFunction to implement todegrees based on Math.toDegrees.
static AbstractFunction JPTParser.functionToRadians
          AbstractFunction to implement toradians based on Math.toRadians.
static AbstractFunction JPTParser.functionSin
          AbstractFunction to implement sin based on Math.sin.
static AbstractFunction JPTParser.functionSinDeg
          AbstractFunction to implement sindeg based on Math.sin and appropriate degrees to radians conversion.
static AbstractFunction JPTParser.functionCos
          AbstractFunction to implement cos based on Math.cos.
static AbstractFunction JPTParser.functionCosDeg
          AbstractFunction to implement cosdeg based on Math.cos and appropriate degrees to radians conversion.
static AbstractFunction JPTParser.functionTan
          AbstractFunction to implement tan based on Math.tan.
static AbstractFunction JPTParser.functionTanDeg
          AbstractFunction to implement tandeg based on Math.tan and appropriate degrees to radians conversion.
static AbstractFunction JPTParser.functionASin
          AbstractFunction to implement asin based on Math.asin.
static AbstractFunction JPTParser.functionASinDeg
          AbstractFunction to implement asindeg based on Math.asin and appropriate radians to degrees conversion.
static AbstractFunction JPTParser.functionACos
          AbstractFunction to implement acos based on Math.acos.
static AbstractFunction JPTParser.functionACosDeg
          AbstractFunction to implement acosdeg based on Math.acos and appropriate radians to degrees conversion.
static AbstractFunction JPTParser.functionATan
          AbstractFunction to implement atan based on Math.atan.
static AbstractFunction JPTParser.functionATanDeg
          AbstractFunction to implement atandeg based on Math.atan and appropriate radians to degrees conversion.
static AbstractFunction JPTParser.functionATan2
          AbstractFunction to implement atan2 based on Math.atan2.
static AbstractFunction JPTParser.functionATan2Deg
          AbstractFunction to implement atan2deg based on Math.atan2 and appropriate radians to degrees conversion.
static AbstractFunction JPTParser.functionExp
          AbstractFunction to implement exp based on Math.exp.
static AbstractFunction JPTParser.functionLog
          AbstractFunction to implement log based on Math.log.
static AbstractFunction JPTParser.functionLn
          AbstractFunction to implement ln based on Math.log.
static AbstractFunction JPTParser.functionLog2
          AbstractFunction to implement log2.
static AbstractFunction JPTParser.functionLog10
          AbstractFunction to implement log10.
static AbstractFunction JPTParser.functionLogToBase
          AbstractFunction to implement logtobase.
static AbstractFunction JPTParser.functionSinh
          AbstractFunction to implement sinh.
static AbstractFunction JPTParser.functionCosh
          AbstractFunction to implement cosh.
static AbstractFunction JPTParser.functionTanh
          AbstractFunction to implement tanh.
static AbstractFunction JPTParser.functionASinh
          AbstractFunction to implement asinh.
static AbstractFunction JPTParser.functionACosh
          AbstractFunction to implement acosh.
static AbstractFunction JPTParser.functionATanh
          AbstractFunction to implement atanh.
 

Methods in edu.neu.ccs.parser that return AbstractFunction
 AbstractFunction BaseParser.removeFunction(String name)
          Removes the function with the given name from this parser.
 AbstractFunction BaseParser.getFunction(String name)
          Returns the function with the given name or null if no such function is defined.
 AbstractFunction[] BaseParser.functions()
          Returns an array of all functions.
 AbstractFunction[] BaseParser.ordinaryFunctions()
          Returns an array of the ordinary functions, that is, functions whose class does NOT extend SimpleFunction.
static AbstractFunction AbstractFunction.makeNoArg(String name, Function.NoArg f)
          Constructs an AbstractFunction object using the given name and the givenFunction.NoArg for its implementation.
static AbstractFunction AbstractFunction.makeOneArg(String name, Function.OneArg f)
          Constructs an AbstractFunction object using the given name and the givenFunction.OneArg for its implementation.
static AbstractFunction AbstractFunction.makeTwoArg(String name, Function.TwoArg f)
          Constructs an AbstractFunction object using the given name and the givenFunction.TwoArg for its implementation.
static AbstractFunction AbstractFunction.makeThreeArg(String name, Function.ThreeArg f)
          Constructs an AbstractFunction object using the given name and the givenFunction.ThreeArg for its implementation.
static AbstractFunction AbstractFunction.makeFourArg(String name, Function.FourArg f)
          Constructs an AbstractFunction object using the given name and the givenFunction.FourArg for its implementation.
 

Methods in edu.neu.ccs.parser with parameters of type AbstractFunction
static double BaseParser.call(AbstractFunction f, double[] arguments)
          Call the given abstract function using the given double data as arguments and return a double value.
static double BaseParser.call(AbstractFunction f, double x)
          Call the given abstract function using the given double x as the argument and return a double value.
static double BaseParser.call(AbstractFunction f, double x, double y)
          Call the given abstract function using the given doubles x,y as arguments and return a double value.
static double BaseParser.call(AbstractFunction f, double x, double y, double z)
          Call the given abstract function using the given doubles x,y,z as arguments and return a double value.
static double BaseParser.call(AbstractFunction f, double x, double y, double z, double w)
          Call the given abstract function using the given doubles x,y,z,w as arguments and return a double value.
static XPoint2D[] BaseParser.makeTable(AbstractFunction f, double endpointA, double endpointB, int divisions)
          Make an XPoint2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions.
static XPoint2D[] BaseParser.makeTable(AbstractFunction f, XInterval limits, int divisions)
          Make an XPoint2D array of pairs (x,f(x)) where x is sampled on the given interval divided into the given number of divisions.
 void BaseParser.addFunction(AbstractFunction function)
          Adds the given function to the table of recognized functions.