Class ProposedLayout
java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.layout.ProposedLayout
ProposedLayout is the layout proposed for a directory tree that has no layout standard, with the evidence
for it. It is a proposal for a steward to confirm - nothing is enforced from it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSiblingGroup describes a set of directories that sit in the same place in the tree and so are expected to look the same. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the confidence that the proposed layout is the intended one.intReturn the percentage of the sibling directories that share the most common structure of their group.Return the proposed layout.intReturn the number of sibling directories that share the most common structure of their group.intReturn the number of sibling directories that were compared.Return the proposed layout as a template.Return the groups of sibling directories that the proposal is based on.
-
Method Details
-
getLayout
Return the proposed layout.- Returns:
- layout
-
getProposedTemplate
Return the proposed layout as a template.- Returns:
- one path pattern per line
-
getSiblingGroups
Return the groups of sibling directories that the proposal is based on.- Returns:
- list of groups
-
getMemberCount
public int getMemberCount()Return the number of sibling directories that were compared.- Returns:
- count
-
getMatchingCount
public int getMatchingCount()Return the number of sibling directories that share the most common structure of their group.- Returns:
- count
-
getHomogeneity
public int getHomogeneity()Return the percentage of the sibling directories that share the most common structure of their group. For example, 9 of 12 directories with the same contents gives 75. It is 0 if the tree has no sibling directories to compare.- Returns:
- percentage from 0 to 100
-
getConfidence
public int getConfidence()Return the confidence that the proposed layout is the intended one. It is the homogeneity, reduced when fewer than five sibling directories were compared because a pattern seen two or three times is weak evidence.- Returns:
- percentage from 0 to 100
-