
jadex.bdi.examples.blocksworld.Blocksworld.agent.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
The newest version!
java.awt.Color
java.util.*
jadex.commons.future.*
StackBlocksPlan.MODE_NORMAL
new Table()
new Table("Bucket", Color.lightGray)
new Block(new Color(240, 16, 16), (Table)$beliefbase.getBelief("table").getFact())
new Block(new Color(16, 16, 240), (Table)$beliefbase.getBelief("table").getFact())
new Block(new Color(240, 240, 16), ((Table)$beliefbase.getBelief("table").getFact()).getAllBlocks()[0])
new Block(new Color(16, 240, 16), ((Table)$beliefbase.getBelief("table").getFact()).getAllBlocks()[2])
new Block(new Color(240, 16, 240), (Table)$beliefbase.getBelief("bucket").getFact())
new Block(new Color(16, 240, 240), (Table)$beliefbase.getBelief("bucket").getFact())
new Block(new Color(240, 240, 240), (Table)$beliefbase.getBelief("bucket").getFact())
$goal.block.isClear()
// $goal.block.clear
// ?param = (parameter (parameter_has_name "block") (parameter_has_value ?block))
// ?rgoal = (goal (parameterelement_has_parameters contains ?param))
// ?block = (Block (clear true))
$goal.block.getLower()==$goal.target
// There is no block on the table for which there is no block in the configuration
!(Block $block1 &&
Arrays.asList($beliefbase.table.getAllBlocks()).contains($block1) &&
!(Block $block2 &&
$block2.color==$block1.color &&
Arrays.asList($goal.configuration.getAllBlocks()).contains($block2)))
&&
// There is no block in the configuration for which there is no block on the table
!(Block $block3 &&
Arrays.asList($goal.configuration.getAllBlocks()).contains($block3) &&
!(Block $block4 &&
$block4.color==$block3.color &&
Arrays.asList($beliefbase.table.getAllBlocks()).contains($block4)))
&&
// Every block on the table is located on the same block as in the configuration
!( Block $block5 && Arrays.asList($beliefbase.table.getAllBlocks()).contains($block5) &&
Block $block6 && Arrays.asList($goal.configuration.getAllBlocks()).contains($block6) &&
$block5.color==$block6.color && $block5.lower.color!=$block6.lower.color)
select one Block $block from $beliefbase.blocks
where $block.getLower()==$goal.block
$beliefbase.table
(select one Block $block from $beliefbase.blocks
where $block.getLower()==$goal.block)!=null
10
10
false
false
new jadex.commons.gui.GuiCreator(BlocksworldGui.class, new Class[]{jadex.bdi.runtime.IBDIExternalAccess.class},
new Object[]{$scope.getExternalAccess()})
true
true
50
true
500
© 2015 - 2025 Weber Informatics LLC | Privacy Policy