Class FacetDistancesDecorator

java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.FacetDistancesDecorator
All Implemented Interfaces:
FacetDistances, Iterable<DistanceRecord>
Direct Known Subclasses:
PrioritySphereDecorator, ZeroWeightsDecorator

public abstract class FacetDistancesDecorator extends Object implements FacetDistances
Addition layers above the basic distance measurements. These decorators/layers affect weights of computed distances.
  • Constructor Details

    • FacetDistancesDecorator

      public FacetDistancesDecorator(FacetDistances subElement)
      Constructor.
      Parameters:
      subElement - decorated sub-element, must not by null
    • FacetDistancesDecorator

      public FacetDistancesDecorator()
      Constructor without sub-element! Use only for future clonning by the clone(FacetDistances) method.
  • Method Details

    • clone

      public abstract FacetDistancesDecorator clone(FacetDistances subElement)
      Creates a copy of the decorator but decorating given sub-element.
      Parameters:
      subElement - decorated sub-element, must not by null
    • get

      public abstract DistanceRecord get(int pointIndex)
      Description copied from interface: FacetDistances
      Returns distance measurement for a single facet's vertex.
      Specified by:
      get in interface FacetDistances
      Parameters:
      pointIndex - index of the facet's vertex from the range from zero to MeshFacet.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 interface FacetDistances
      Returns:
      the number of facet's vertices, i.e., the number of measured distances.
    • getMeasuredFacet

      public MeshFacet getMeasuredFacet()
      Description copied from interface: FacetDistances
      Returns the source facet from which the measurement was performed.
      Specified by:
      getMeasuredFacet in interface FacetDistances
      Returns:
      the source facet from which the measurement was performed.
    • getSubElement

      public FacetDistances getSubElement()
      Returns decorated sub-element
      Returns:
      decorated sub-element