jadex.bdi.examples.garbagecollector_classic.GarbageCollector.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.
Environment.getInstance(Environment.COLLECTOR, $scope.getAgentName())
$beliefbase.env.getPosition($scope.getAgentName())
// ((Environment)$beliefbase.getBelief("env").getFact()).isDirty((Position)$beliefbase.getBelief("pos").getFact())
$beliefbase.env.isDirty($beliefbase.pos)
$beliefbase.env.hasGarbage($scope.getAgentName())
$beliefbase.is_dirty && !$beliefbase.env.isBurnerPresent($beliefbase.pos)
// // unique (?rcapa and ?mgoal are provided internally)
// (not (and
// ?adopted = (goal (element_has_model ?mgoal))
// ?rcapa = (capability (capability_has_goals contains ?adopted))
// ))
//
// ?rbelief = (belief (element_has_model ?mbelief) (belief_has_fact true))
// ?mbelief = (mbelief (melement_has_name "is_dirty"))
// (not (and
// ?rbel_pos = (belief (element_has_model ?mbel_pos) (belief_has_fact ?pos))
// ?mbel_pos = (mbelief (melement_has_name "pos"))
// ?rbel_env = (belief (element_has_model ?mbel_env) (belief_has_fact ?env))
// ?mbel_env = (mbelief (melement_has_name "env"))
// ?env = (Environment (isBurnerPresent (?pos) true))
// ))
!$beliefbase.is_dirty && !$beliefbase.has_garbage
// ?rbelief = (belief (element_has_model ?mbelief) (belief_has_fact false))
// ?mbelief = (mbelief (melement_has_name "is_dirty"))
// ?rbelief2 = (belief (element_has_model ?mbelief2) (belief_has_fact false))
// ?mbelief2 = (mbelief (melement_has_name "has_garbage"))
java.util.logging.Level.OFF
false