Package jadex.bdiv3.examples.blocksworld
Class BlocksworldAgent
- java.lang.Object
-
- jadex.bdiv3.examples.blocksworld.BlocksworldAgent
-
public class BlocksworldAgent extends java.lang.ObjectBlocksworld agent for stacking blocks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBlocksworldAgent.ClearGoalclassBlocksworldAgent.ConfigureGoalstatic classBlocksworldAgent.ModeclassBlocksworldAgent.StackGoal
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.Set<Block>blocksThe currently existing blocks.protected TablebucketThe bucket for currently unused blocks.protected BlocksworldAgent.ModemodeThe mode.protected booleanquietThe flag for turning on/off output.protected SubscriptionIntermediateFuture<java.lang.Void>stepsThe future to communicate step events from gui to plan.protected TabletableThe table for the blocks.
-
Constructor Summary
Constructors Constructor Description BlocksworldAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidagentCreated()The init code.IInternalAccessgetAgent()Get the agent.java.util.Set<Block>getBlocks()Get the blocks.TablegetBucket()Get the bucket.BlocksworldAgent.ModegetMode()Get the mode.TablegetTable()Get the table.booleanisQuiet()Get the quiet.voidsetMode(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.
-
-