Package adams.core
Class ClassCompatibility
- java.lang.Object
-
- adams.core.ClassCompatibility
-
- All Implemented Interfaces:
ClassCompatibilityChecker
,Serializable
public class ClassCompatibility extends Object implements Serializable, ClassCompatibilityChecker
Class that determines compatibility between inputs and outputs.
An input and output are compatible, if...- input is Object.class
- output and input are the same class
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
Unknown
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassCompatibility()
Initializes the checker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCompatible(Class[] outCls, Class[] inCls)
Checks whether the two class sets are compatible.boolean
isCompatible(Class output, Class input)
Checks whether the two classes are compatible.String
toString()
Returns a short string representation of this object.
-
-
-
Method Detail
-
isCompatible
public boolean isCompatible(Class output, Class input)
Checks whether the two classes are compatible.- Specified by:
isCompatible
in interfaceClassCompatibilityChecker
- Parameters:
output
- the generated output of the first actorinput
- 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 interfaceClassCompatibilityChecker
- Parameters:
outCls
- the classes of the generating actorinCls
- the classes of the accepting actor- Returns:
- true if compatible
-
-