Package adams.core

Interface ClassCompatibilityChecker

  • All Known Implementing Classes:
    ClassCompatibility, Compatibility

    public interface ClassCompatibilityChecker
    Interface for compatibility checkers.
    Version:
    $Revision: 15570 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Method Detail

      • isCompatible

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

        boolean isCompatible​(Class[] outCls,
                             Class[] inCls)
        Checks whether the two class sets are compatible.
        Parameters:
        outCls - the classes of the generating actor
        inCls - the classes of the accepting actor
        Returns:
        true if compatible