public class PartialDerivative extends XVariable implements Observer
| Modifier | Constructor and Description |
|---|---|
protected |
PartialDerivative(DVariable var,
String[] derivnames)
Protected constructor, should only be constructed
through the findDerivative method in
DVariable. |
protected |
PartialDerivative(DVariable var,
String[] derivnames,
Node deriv) |
| Modifier and Type | Method and Description |
|---|---|
PartialDerivative |
findDerivative(String dname,
DJep jep) |
String[] |
getDnames() |
String |
getName() |
DVariable |
getRoot()
Every partial derivative has a root variable
for instance the root variable of dy/dx is y.
|
String |
toString()
Returns a string with the variable name followed by it's value.
|
void |
update(Observable arg0,
Object arg1)
When the value of the root object is changed
makes the value of this partial derivative invalid.
|
calcValue, getEquation, hasEquation, setEquation, toStringgetValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, setValueRawaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected PartialDerivative(DVariable var, String[] derivnames)
DVariable.public DVariable getRoot()
public String[] getDnames()
public String toString()
Variablea: 10If the variable is a constant the string " (Constant" is appended.
public PartialDerivative findDerivative(String dname, DJep jep) throws ParseException
ParseExceptionpublic void update(Observable arg0, Object arg1)
update in interface ObserverObserver.update(java.util.Observable, java.lang.Object)Copyright © 2018. All rights reserved.