- Object
-
- AbstractFallbackCondition
-
- TypedFallbackCondition
-
- All Implemented Interfaces:
Comparable<FallbackCondition>
,FallbackCondition
- Direct Known Subclasses:
PairwiseTypedFallbackCondition
,SingleTypedFallbackCondition
public abstract class TypedFallbackCondition extends AbstractFallbackCondition implements FallbackCondition, Comparable<FallbackCondition>
Represents aFallbackCondition
that uses theConvex
's class type to determine which pairs will be detected by the fallbackNarrowphaseDetector
.- Since:
- 3.1.5
- Version:
- 3.1.5
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description TypedFallbackCondition()
Default constructor.TypedFallbackCondition(int sortIndex)
Optional constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isMatch(Class<? extends Convex> type1, Class<? extends Convex> type2)
Returns true if the given types match this condition.boolean
isMatch(Convex convex1, Convex convex2)
Returns true if this condition matches the given input.-
Methods inherited from class AbstractFallbackCondition
compareTo, equals, getSortIndex, hashCode
-
Methods inherited from interface Comparable
compareTo
-
Methods inherited from interface FallbackCondition
getSortIndex
-
-
-
-
Method Detail
-
isMatch
public boolean isMatch(Convex convex1, Convex convex2)
Description copied from interface:FallbackCondition
Returns true if this condition matches the given input.- Specified by:
isMatch
in interfaceFallbackCondition
- Parameters:
convex1
- the firstConvex
convex2
- the secondConvex
- Returns:
- boolean
-
-