Class FacetDistancesDecorator
java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.FacetDistancesDecorator
- All Implemented Interfaces:
FacetDistances
,Iterable<DistanceRecord>
- Direct Known Subclasses:
PrioritySphereDecorator
,ZeroWeightsDecorator
Addition layers above the basic distance measurements.
These decorators/layers affect weights of computed distances.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor without sub-element!FacetDistancesDecorator
(FacetDistances subElement) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract FacetDistancesDecorator
clone
(FacetDistances subElement) Creates a copy of the decorator but decorating given sub-element.abstract DistanceRecord
get
(int pointIndex) Returns distance measurement for a single facet's vertex.Returns the source facet from which the measurement was performed.Returns decorated sub-elementint
size()
Returns the number of facet's vertices, i.e., the number of measured distances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.engines.distance.measurement.FacetDistances
iterator, stream
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FacetDistancesDecorator
Constructor.- Parameters:
subElement
- decorated sub-element, must not bynull
-
FacetDistancesDecorator
public FacetDistancesDecorator()Constructor without sub-element! Use only for future clonning by theclone(FacetDistances)
method.
-
-
Method Details
-
clone
Creates a copy of the decorator but decorating given sub-element.- Parameters:
subElement
- decorated sub-element, must not bynull
-
get
Description copied from interface:FacetDistances
Returns distance measurement for a single facet's vertex.- Specified by:
get
in interfaceFacetDistances
- Parameters:
pointIndex
- index of the facet's vertex from the range from zero toMeshFacet.getNumberOfVertices()
- 1.- Returns:
- the mesh point with the distance value
-
size
public int size()Description copied from interface:FacetDistances
Returns the number of facet's vertices, i.e., the number of measured distances.- Specified by:
size
in interfaceFacetDistances
- Returns:
- the number of facet's vertices, i.e., the number of measured distances.
-
getMeasuredFacet
Description copied from interface:FacetDistances
Returns the source facet from which the measurement was performed.- Specified by:
getMeasuredFacet
in interfaceFacetDistances
- Returns:
- the source facet from which the measurement was performed.
-
getSubElement
Returns decorated sub-element- Returns:
- decorated sub-element
-