Package adams.core

Class ClassCompatibility

    • Constructor Detail

      • ClassCompatibility

        public ClassCompatibility()
        Initializes the checker.
    • Method Detail

      • isCompatible

        public boolean isCompatible​(Class output,
                                    Class input)
        Checks whether the two classes are compatible.
        Specified by:
        isCompatible in interface ClassCompatibilityChecker
        Parameters:
        output - the generated output of the first actor
        input - the accepted input of the second actor
        Returns:
        true if compatible
      • isCompatible

        public boolean isCompatible​(Class[] outCls,
                                    Class[] inCls)
        Checks whether the two class sets are compatible.
        Specified by:
        isCompatible in interface ClassCompatibilityChecker
        Parameters:
        outCls - the classes of the generating actor
        inCls - the classes of the accepting actor
        Returns:
        true if compatible
      • toString

        public String toString()
        Returns a short string representation of this object.
        Overrides:
        toString in class Object
        Returns:
        the string representation