Class BDIXAgentFeature.PlansExistCondition

  • All Implemented Interfaces:
    ICondition
    Enclosing class:
    BDIXAgentFeature

    public static class BDIXAgentFeature.PlansExistCondition
    extends java.lang.Object
    implements ICondition
    Condition that tests if goal instances of an mplan exist.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlansExistCondition​(MPlan mplan, 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

      • mplan

        protected MPlan mplan
      • capa

        protected jadex.bdiv3.runtime.impl.RCapability capa
    • Constructor Detail

      • PlansExistCondition

        public PlansExistCondition​(MPlan mplan,
                                   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).