Class ConceptSwitchIndex

  • All Implemented Interfaces:
    ConceptIndex

    public final class ConceptSwitchIndex
    extends Object
    implements ConceptIndex
    Effective translation from SConcept to integer value, intended for use in concept switch (i.e. runtime component for lang.smodel language construct). Use ConceptSwitchIndexBuilder to create an index
    Since:
    3.5
    • Method Detail

      • index

        public int index​(@Nullable
                         SAbstractConcept c,
                         int missingValue)
        Specified by:
        index in interface ConceptIndex
        Parameters:
        c - concept to look up
        missingValue - value indicating index miss
        Returns:
        integer index of the concept, or missingValue if concept is null or not known to the index.