public class SuperAreaOperator extends BaseOperator
ParametrizedOperation.ValueType
Modifier and Type | Field and Description |
---|---|
protected int |
depthLimit
Recursion depth limit while detecting the sub-areas
|
protected java.lang.String[] |
paramNames |
protected ParametrizedOperation.ValueType[] |
paramTypes |
Constructor and Description |
---|
SuperAreaOperator()
Creates the deparator with default parameter values.
|
SuperAreaOperator(int depthLimit)
Creates the operator.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(AreaTree atree)
Applies the operation to the given tree.
|
void |
apply(AreaTree atree,
Area root)
Applies the operation to the given subtree of the tree.
|
protected GroupAnalyzer |
createGroupAnalyzer(AreaImpl root) |
void |
findSuperAreas(AreaImpl root,
int passlimit)
Creates syntetic super areas by grouping the subareas of the given area.
|
int |
getDepthLimit() |
java.lang.String |
getDescription()
Obtains a longer description of the service.
|
java.lang.String |
getId()
Obtains a unique ID of the service
|
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.
|
void |
setDepthLimit(int depthLimit) |
toString
getParam, getParamRange, setParam
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParam, getParamRange, setParam
protected int depthLimit
protected final java.lang.String[] paramNames
protected final ParametrizedOperation.ValueType[] paramTypes
public SuperAreaOperator()
public SuperAreaOperator(int depthLimit)
depthLimit
- Recursion depth limit while detecting the sub-areaspublic 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 int getDepthLimit()
public void setDepthLimit(int depthLimit)
public void apply(AreaTree atree)
AreaTreeOperator
atree
- the area tree to be modified.public void apply(AreaTree atree, Area root)
AreaTreeOperator
atree
- the area tree to be modified.root
- the root node of the affected subtree.protected GroupAnalyzer createGroupAnalyzer(AreaImpl root)
public void findSuperAreas(AreaImpl root, int passlimit)
the
- root area to be processedpasslimit
- the maximal number of passes while some changes occur