| 1 | = Tree = |
| 2 | |
| 3 | Maven include: |
| 4 | {{{ |
| 5 | <dependency> |
| 6 | <groupId>tudelft.utilities</groupId> |
| 7 | <artifactId>tree</artifactId> |
| 8 | <version>1.0.0</version> |
| 9 | </dependency> |
| 10 | }}} |
| 11 | |
| 12 | |
| 13 | available on |
| 14 | {{{ |
| 15 | <repository> |
| 16 | <id>artifactory.ewi.tudelft.nl</id> |
| 17 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url> |
| 18 | <snapshots> |
| 19 | <enabled>false</enabled> |
| 20 | </snapshots> |
| 21 | </repository> |
| 22 | }}} |
| 23 | |
| 24 | Tree contains code to support immutable attribute Trees. The following classes are avaialble |
| 25 | |
| 26 | || **Class** | **Brief description** || |
| 27 | || Tree || an interface defining the type of the labels, attributes and treenode types. It also contains a function get(nodeLabel) which returns a treenode. || |
| 28 | || TreeNode || The immutable tree node. Each node has getLabel, getAttribute, getChildren and getChild || |
| 29 | || TreeMatcher || interface to get a list of differences between two trees || |
| 30 | || LabelThenAttributeMatcher || TreeMatcher implementation, that compares the labels and the attributes || |
| 31 | |
| 32 | |