package gve.calc.formula; import java.awt.*; import java.awt.event.*; import java.io.*;
| @author Geert Vernaeve Part is the superclass for all formula components. Part objects don't exist; formulas are built up out of objects that are subclass of Part, such as Fraction, Root, ... | 
| Set to 0 for production release, 100 for full debug | 
| NOTE: rather dangerous to make this public ... better solutions??? | 
| Replace a child by another. If this Part has no childs (e.g. Real, Empty), throw an error. | 
| Is ch a child of (a child of (...)) par? | 
| Is ch == par or a descendant of par? | 
| PENDING: Make this method abstract | 
| Compares two parts to each other. This method should return true if both parts and subtrees match. Brackets of kind BRACKET should not be taken into account; i.e. (a) "is the same" as a. Use the utility method Brackets.unbracket() if necessary. PENDING: should an object with children first call evaluate() on them? PENDING: make abstract | 
| Return children, starting from count=0. If there's no child with that number, return null. | 
| Called whenever one of the children of this part has been modified The argument is the (sub,subsub,...)child that has been modified. | 
| PENDING: make this abstract. | 
| PENDING: make this abstract Note that this is not the nicest method to implement save formats, since every Part subclass has to contain save routines for each supported format ... |