Class AbstractPlanBody

java.lang.Object
jadex.bdi.runtime.impl.AbstractPlanBody
All Implemented Interfaces:
IPlanBody
Direct Known Subclasses:
ClassPlanBody, MethodPlanBody

public abstract class AbstractPlanBody extends Object implements IPlanBody
Abstract base class for plan body implementations.
  • Field Details

    • rplan

      protected RPlan rplan
      The rplan.
    • partfuture

      protected jadex.future.Future<Object> partfuture
      The currently running plan part.
  • Constructor Details

    • AbstractPlanBody

      public AbstractPlanBody(RPlan rplan)
      Create a new plan body.
  • Method Details

    • getBody

      public Object getBody()
      Get the body impl (object that is actually invoked).
      Specified by:
      getBody in interface IPlanBody
      Returns:
      The object representing the body.
    • executePlan

      public jadex.future.IFuture<Void> executePlan()
      Execute the plan body.
      Specified by:
      executePlan in interface IPlanBody
    • internalInvokePart

      protected Object internalInvokePart(int part)
      Invoke a plan part.
    • invokeBody

      public abstract Object invokeBody(Object[] params)
      Invoke the plan body.
    • invokePassed

      public abstract Object invokePassed(Object[] params)
      Invoke the plan passed method.
    • invokeFailed

      public abstract Object invokeFailed(Object[] params)
      Invoke the plan failed method.
    • invokeAborted

      public abstract Object invokeAborted(Object[] params)
      Invoke the plan aborted method.
    • getBodyParameterTypes

      public abstract Class<?>[] getBodyParameterTypes()
      Get the body parameters.
    • getPassedParameterTypes

      public abstract Class<?>[] getPassedParameterTypes()
      Get the passed parameters.
    • getFailedParameterTypes

      public abstract Class<?>[] getFailedParameterTypes()
      Get the failed parameters.
    • getAbortedParameterTypes

      public abstract Class<?>[] getAbortedParameterTypes()
      Get the aborted parameters.
    • guessParameters

      public Object[] guessParameters(Class<?>[] ptypes)
      Method that tries to guess the parameters for the method call.
    • getRPlan

      public RPlan getRPlan()
      Get the rplan.
      Returns:
      The rplan.
    • getAgent

      public jadex.core.IComponent getAgent()
      Get the agent.
      Returns:
      The agent