Class BlocksworldAgent


  • public class BlocksworldAgent
    extends java.lang.Object
    Blocksworld agent for stacking blocks.
    • Field Detail

      • 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 java.util.Set<Block> blocks
        The currently existing blocks.
    • Constructor Detail

      • BlocksworldAgent

        public BlocksworldAgent()
    • Method Detail

      • agentCreated

        public void agentCreated()
        The init code.
      • 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 java.util.Set<Block> getBlocks()
        Get the blocks.
        Returns:
        The blocks.
      • getBucket

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

        public IInternalAccess getAgent()
        Get the agent.
        Returns:
        The agent.