Class SemanticFactory


  • public class SemanticFactory
    extends Object
    Implements the semantic measure factory class. For each semantic measure name, the factory returns an object of the corresponding semantic measure.
    Version:
    1.0
    Author:
    Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
    • Constructor Detail

      • SemanticFactory

        public SemanticFactory()
    • Method Detail

      • createMeasure

        public static AEdgeCountingSemanticMeasure createMeasure​(SemanticType measure,
                                                                 AIndex Indexer)
        Factory function for retrieving the desired semantic measure instance.
        Parameters:
        measure - , Type of the measure
        Indexer - , an index instance
        Returns:
        a specific measure instance
      • getMeasureType

        public static SemanticType getMeasureType​(String measure)
        Factory function for retrieving a semantic measure name from the set of allowed types.
        Parameters:
        measure - , The name/type of the measure.
        Returns:
        a specific semantic measure type