Class DefaultDetectThreatStrategy
java.lang.Object
FAtiMA.DeliberativeComponent.strategies.DefaultDetectThreatStrategy
- All Implemented Interfaces:
IDetectThreatStrategy,Serializable
public class DefaultDetectThreatStrategy
extends Object
implements Serializable, IDetectThreatStrategy
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisThreat(FAtiMA.Core.conditions.Condition c1, FAtiMA.Core.conditions.Condition c2) Checks if a given condition c1 threatens another condition c2
-
Constructor Details
-
DefaultDetectThreatStrategy
public DefaultDetectThreatStrategy()
-
-
Method Details
-
isThreat
public boolean isThreat(FAtiMA.Core.conditions.Condition c1, FAtiMA.Core.conditions.Condition c2) Description copied from interface:IDetectThreatStrategyChecks if a given condition c1 threatens another condition c2- Specified by:
isThreatin interfaceIDetectThreatStrategy- Parameters:
c1- - the condition that we want to check for threatc2- - a possible threatened condition- Returns:
- true if condition c1 threatens condition c2
-