Class BDIXAgentFeature.LifecycleStateCondition

  • All Implemented Interfaces:
    jadex.rules.eca.ICondition
    Enclosing class:
    BDIXAgentFeature

    public static class BDIXAgentFeature.LifecycleStateCondition
    extends java.lang.Object
    implements jadex.rules.eca.ICondition
    Condition for checking the lifecycle state of a goal.
    • Field Detail

      • allowed

        protected boolean allowed
        The flag if state is allowed or disallowed.
    • Constructor Detail

      • LifecycleStateCondition

        public LifecycleStateCondition​(java.util.Set<IGoal.GoalLifecycleState> states)
        Create a new condition.
      • LifecycleStateCondition

        public LifecycleStateCondition​(IGoal.GoalLifecycleState state,
                                       boolean allowed)
        Create a new condition.
      • LifecycleStateCondition

        public LifecycleStateCondition​(java.util.Set<IGoal.GoalLifecycleState> states,
                                       boolean allowed)
        Create a new condition.
    • Method Detail

      • evaluate

        public IFuture<Tuple2<java.lang.Boolean,​java.lang.Object>> evaluate​(jadex.rules.eca.IEvent event)
        Evaluate the condition.
        Specified by:
        evaluate in interface jadex.rules.eca.ICondition