Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface ICondition
        Parameters:
        event - The event.
        Returns:
        True, if condition is met (plus additional user data).