org.tm4j.panckoucke.impl.abstraction .HierarchicalMolder
Description
The HierarchicalMolder adds elements to a given model.
The Molder builds the elements from a very simple basic
template. Since it is processing the template in a recursive
manner, the resulting structure may become rather complex.
The Molder works in two phases:
In the first, it adds arcs to a given node.
In the second it adds endnodes to the previously created
arcs.
It then restarts the two-phase-process, using the previously created
endnodes as input for the first phase.
What elements are added, how much of them are added and
what they represent is driven by an instance of HierarchicalClassifier.
The function of a HierarchicalClassifier is to supply 'characteristics' of a
given TopicMapObject into a tree-like structure.
The Molder walks this tree and processes it from the
root to the deepest leaves.
For every level that the hierarchie supplys, the molder adds either
nodes or arcs to the given model.
Inheritance Hierarchy
- java.lang.Object
- HierarchicalMolder
Method Summary | |
---|---|
void |
contribute(org.tm4j.panckoucke.model.AModel model,org.tm4j.topicmap.TopicMapObject tmo,org.tm4j.panckoucke.abstraction.AbstractionContext ac)
Alternative entry-point. This method just calls mold(AModel, AMNode, AbstractionContext) with the centerNode of the model. If the centerNode of the model does not represent a topic, the mold-method is not called and no further action will be taken. |
void |
mold(org.tm4j.panckoucke.model.AModel model,org.tm4j.panckoucke.model.AMNode n0,org.tm4j.panckoucke.abstraction.AbstractionContext ac)
Adds nodes and arcs to the given model. What concrete elements will be added is driven by the HierarchicalClassifier that was passed to the constructor of this instance. This method triggers the classification-process by a call to the HierarchicalClassifier#classify(Topic) classify-Method of the classifier of this instance. |