Class ChainedExtractor

  • All Implemented Interfaces:
    IValueExtractor

    public class ChainedExtractor
    extends java.lang.Object
    implements IValueExtractor
    Extractor for chained expressions (e.g. obj1.attr1.attr2)
    • Field Detail

    • Constructor Detail

      • ChainedExtractor

        public ChainedExtractor​(IValueExtractor[] extractors)
        Create a new extractor.
    • Method Detail

      • getValue

        public java.lang.Object getValue​(Tuple left,
                                         java.lang.Object right,
                                         java.lang.Object prefix,
                                         IOAVState state)
        Get the value of an attribute from an object or tuple.
        Specified by:
        getValue in interface IValueExtractor
        Parameters:
        left - The left input tuple.
        right - The right input object.
        prefix - The prefix input object (last value from previous extractor in a chain).
        state - The working memory.
      • isAffected

        public boolean isAffected​(int tupleindex,
                                  OAVAttributeType attr)
        Test if a constraint evaluator is affected from a change of a certain attribute.
        Specified by:
        isAffected in interface IValueExtractor
        Parameters:
        tupleindex - The tuple index.
        attr - The attribute.
        Returns:
        True, if affected.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.
      • hashCode

        public int hashCode()
        The hash code.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Test for equality.
        Overrides:
        equals in class java.lang.Object
      • getExtractors

        public IValueExtractor[] getExtractors()
        Get the extractors.
        Returns:
        The extractors.