jadex.bdi.tutorial.TranslationC4.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.
java.util.logging.*
jadex.bridge.fipa.*
jadex.commons.*
jadex.rules.rulesystem.rules.functions.*
new Tuple("milk", "Milch")
new Tuple("cow", "Kuh")
new Tuple("cat", "Katze")
new Tuple("dog", "Hund")
0
$beliefbase.transcnt>0 && $beliefbase.transcnt%10==0
// ?rbelief = (belief (element_has_model ?mbelief)
// (belief_has_fact ?fact & > 0 & :(== 0 (Modulo ?fact 10))))
// ?mbelief = (mbelief (melement_has_name "transcnt"))
//
// ?mplan = (mplan (melement_has_name "thankyou"))
// ?rcapa = (capability (capability_has_beliefs contains ?rbelief))
SFipa.REQUEST
$content instanceof String && ((String)$content).startsWith("add english_german")
SFipa.REQUEST
$content instanceof String && ((String)$content).startsWith("translate english_german")
select one $wordpair.get(1)
from Tuple $wordpair in $beliefbase.getBeliefSet("egwords").getFacts()
where $wordpair.get(0).equals($eword)
true