All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.bdi.tutorial.TranslationC4.agent.xml Maven / Gradle / Ivy

Go to download

The Jadex BDI applications package contain several example applications, benchmarks and testcases using BDI agents.

There is a newer version: 2.4
Show newest version




	
		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
		
    







© 2015 - 2024 Weber Informatics LLC | Privacy Policy