|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.math.functions.Function
com.hedgehog.math.functions.OneVariableDoubleVector3DFunction
public class OneVariableDoubleVector3DFunction
Title: OneVariableDoubleVector3DFunction - represents a one-argument function with signature: HDouble Function(Vector3D).
Description: Represents a one-argument method with signature: Vector3D Function(Vector3D).
Copyright: Copyright (c) Hedgehog Software 2007-2009.
Company: Hedgehog Software
| Field Summary |
|---|
| Fields inherited from class com.hedgehog.math.functions.Function |
|---|
method |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
OneVariableDoubleVector3DFunction()
Default constructor. |
|
OneVariableDoubleVector3DFunction(java.lang.reflect.Method method)
Constructor. |
|
OneVariableDoubleVector3DFunction(OneVariableDoubleVector3DFunction object)
Copy constructor. |
|
OneVariableDoubleVector3DFunction(java.lang.String className,
java.lang.String methodName)
Constructor. |
|
| Method Summary | |
|---|---|
Vector3D |
evaluate(java.lang.Object object,
Vector3D x)
Evaluates the method for the supplied invoking object and argument. |
boolean |
isValid()
Tests whether or not a valid object. |
static boolean |
isValid(java.lang.reflect.Method m)
Static version of isValid(). |
| Methods inherited from class com.hedgehog.math.functions.Function |
|---|
getMethod, setMethod, toString |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OneVariableDoubleVector3DFunction()
public OneVariableDoubleVector3DFunction(java.lang.reflect.Method method)
throws java.lang.IllegalArgumentException
Constructor. Sets the function to the specified method. Encapsulated method is set to null if an invalid object is specified. For example:
Class c = Class.forName("com.hedgehog.X") ;
Class funcArg = Class.forName("com.hedgehog.math.Vector3D");
Class[] funcArgs = { funcArg } ;
Method function = c.getMethod("function",funcArgs) ;
OneVariableVector3DFunction v3df = new OneVariableVector3DFunction(function);
method - Function operated-on.
java.lang.IllegalArgumentException - Thrown if an invalid method is supplied. If exception thrown
then encapsulated method is set to null.
public OneVariableDoubleVector3DFunction(java.lang.String className,
java.lang.String methodName)
throws java.lang.IllegalArgumentException
className - Fully qualified name of class that method belongs to.methodName - Name of function operated-on.
java.lang.IllegalArgumentException - Thrown if an invalid method is supplied. If exception thrown
then encapsulated method is set to null.public OneVariableDoubleVector3DFunction(OneVariableDoubleVector3DFunction object)
object - Object to copy.| Method Detail |
|---|
public Vector3D evaluate(java.lang.Object object,
Vector3D x)
object - Invoking object.x - Argument value.
public boolean isValid()
isValid in class Functionpublic static boolean isValid(java.lang.reflect.Method m)
m - Method to test validity of.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||