Package jadex.bdiv3.examples.blocksworld
Class BlocksworldAgent
- java.lang.Object
-
- jadex.bdiv3.examples.blocksworld.BlocksworldAgent
-
public class BlocksworldAgent extends java.lang.Object
Blocksworld agent for stacking blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BlocksworldAgent.ClearGoal
class
BlocksworldAgent.ConfigureGoal
static class
BlocksworldAgent.Mode
class
BlocksworldAgent.StackGoal
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected java.util.Set<Block>
blocks
The currently existing blocks.protected Table
bucket
The bucket for currently unused blocks.protected BlocksworldAgent.Mode
mode
The mode.protected boolean
quiet
The flag for turning on/off output.protected SubscriptionIntermediateFuture<java.lang.Void>
steps
The future to communicate step events from gui to plan.protected Table
table
The table for the blocks.
-
Constructor Summary
Constructors Constructor Description BlocksworldAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
agentCreated()
The init code.IInternalAccess
getAgent()
Get the agent.java.util.Set<Block>
getBlocks()
Get the blocks.Table
getBucket()
Get the bucket.BlocksworldAgent.Mode
getMode()
Get the mode.Table
getTable()
Get the table.boolean
isQuiet()
Get the quiet.void
setMode(BlocksworldAgent.Mode mode)
Set the mode.
-
-
-
Field Detail
-
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 java.util.Set<Block> blocks
The currently existing blocks.
-
steps
protected SubscriptionIntermediateFuture<java.lang.Void> steps
The future to communicate step events from gui to plan.
-
agent
protected IInternalAccess agent
The agent.
-
-
Method Detail
-
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 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.
-
-