public class LogicalTreeBuilder extends BaseLogicalTreeProvider
Modifier and Type | Class and Description |
---|---|
protected class |
LogicalTreeBuilder.TreeCreationStatus |
ParametrizedOperation.ValueType
Modifier and Type | Field and Description |
---|---|
protected VisualFeatureExtractor |
fa |
protected LayoutAnalyzer |
la |
Constructor and Description |
---|
LogicalTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
protected int |
compareMarkedness(double m1,
double m2) |
protected void |
computeAreaMarkedness(Area root)
Recomputes the markedness in all the nodes of an area tree.
|
LogicalAreaTree |
createLogicalTree(AreaTree areaTree)
Creates a logical area tree from the given tree of areas.
|
protected LogicalAreaImpl |
findParentForNode(LogicalTreeBuilder.TreeCreationStatus curstat,
LogicalTreeBuilder.TreeCreationStatus substat,
LogicalAreaImpl root)
Locates an appropriate parent in the current tree for the new node
|
java.lang.String |
getDescription()
Obtains a longer description of the service.
|
java.lang.String |
getId()
Obtains a unique ID of the service
|
protected double |
getMarkedness(LogicalAreaImpl node) |
java.lang.String |
getName()
Obtains a descriptive name of the service that may be presented to the user.
|
java.lang.String[] |
getParamNames()
Obtains a list of available parameter names of the operation.
|
ParametrizedOperation.ValueType[] |
getParamTypes()
Obtains a list of available parameter value types.
|
protected LogicalAreaImpl |
recursiveCreateLogicalStructure(Area src)
Creates the logical structure tree from the source area tree recursively.
|
toString
getParam, getParamRange, setParam
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParam, getParamRange, setParam
protected VisualFeatureExtractor fa
protected LayoutAnalyzer la
public java.lang.String getId()
Service
public java.lang.String getName()
Service
public java.lang.String getDescription()
Service
public java.lang.String[] getParamNames()
ParametrizedOperation
public ParametrizedOperation.ValueType[] getParamTypes()
ParametrizedOperation
public LogicalAreaTree createLogicalTree(AreaTree areaTree)
LogicalTreeProvider
areaTree
- the source tree of areasprotected LogicalAreaImpl recursiveCreateLogicalStructure(Area src)
src
- the area tree root nodeprotected LogicalAreaImpl findParentForNode(LogicalTreeBuilder.TreeCreationStatus curstat, LogicalTreeBuilder.TreeCreationStatus substat, LogicalAreaImpl root)
curstat
- Current position in the treesubstat
- The new candidate positionroot
- the root node of the current logical subtree used as "reset" parent in case of detected flow breakprotected double getMarkedness(LogicalAreaImpl node)
protected int compareMarkedness(double m1, double m2)
protected void computeAreaMarkedness(Area root)
root
- the root of the tree to be recomputed