Package jadex.bdiv3x.features
Class BDIXAgentFeature.GoalsExistCondition
- java.lang.Object
-
- jadex.bdiv3x.features.BDIXAgentFeature.GoalsExistCondition
-
- All Implemented Interfaces:
ICondition
- Enclosing class:
- BDIXAgentFeature
public static class BDIXAgentFeature.GoalsExistCondition extends java.lang.Object implements ICondition
Condition that tests if goal instances of an mgoal exist.
-
-
Field Summary
Fields Modifier and Type Field Description protected jadex.bdiv3.runtime.impl.RCapability
capa
protected MGoal
mgoal
-
Fields inherited from interface jadex.rules.eca.ICondition
FALSE, TRUE, TRUE_CONDITION
-
-
Constructor Summary
Constructors Constructor Description GoalsExistCondition(MGoal mgoal, jadex.bdiv3.runtime.impl.RCapability capa)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<Tuple2<java.lang.Boolean,java.lang.Object>>
evaluate(IEvent event)
Evaluation the condition.
-
-
-
Field Detail
-
mgoal
protected MGoal mgoal
-
capa
protected jadex.bdiv3.runtime.impl.RCapability capa
-
-
Constructor Detail
-
GoalsExistCondition
public GoalsExistCondition(MGoal mgoal, jadex.bdiv3.runtime.impl.RCapability capa)
-
-
Method Detail
-
evaluate
public IFuture<Tuple2<java.lang.Boolean,java.lang.Object>> evaluate(IEvent event)
Description copied from interface:ICondition
Evaluation the condition.- Specified by:
evaluate
in interfaceICondition
- Parameters:
event
- The event.- Returns:
- True, if condition is met (plus additional user data).
-
-