Class BlocksworldAgent

java.lang.Object
jadex.bdi.blocksworld.BlocksworldAgent

public class BlocksworldAgent extends Object
Blocksworld agent for stacking blocks.
  • Field Details

    • mode

      protected BlocksworldAgent.Mode mode
      The mode.
    • quiet

      protected boolean quiet
      The flag for turning on/off output.
    • table

      protected Table table
      The table for the blocks.
    • bucket

      protected Table bucket
      The bucket for currently unused blocks.
    • blocks

      protected Set<Block> blocks
      The currently existing blocks.
    • steps

      protected jadex.future.SubscriptionIntermediateFuture<Void> steps
      The future to communicate step events from gui to plan.
    • agent

      protected jadex.core.IComponent agent
      The agent.
  • Constructor Details

    • BlocksworldAgent

      public BlocksworldAgent()
  • Method Details

    • agentCreated

      public void agentCreated()
      The init code.
    • getMode

      public BlocksworldAgent.Mode getMode()
      Get the mode.
      Returns:
      The mode.
    • setMode

      public void setMode(BlocksworldAgent.Mode mode)
      Set the mode.
      Parameters:
      mode - The mode to set.
    • isQuiet

      public boolean isQuiet()
      Get the quiet.
      Returns:
      The quiet.
    • getTable

      public Table getTable()
      Get the table.
      Returns:
      The table.
    • getBlocks

      public Set<Block> getBlocks()
      Get the blocks.
      Returns:
      The blocks.
    • getBucket

      public Table getBucket()
      Get the bucket.
      Returns:
      The bucket.
    • getAgent

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