jadex.testcases.misc
Agent Expression
- agent Expression
Test custom parameters in expressions.
Since 0.94, expression parameters and their
types have to be declared explicitly.
Expression Summary |
expression |
exp
|
expression |
join
|
Initial State Summary |
default initial state |
default
|
persons
beliefset Person persons
- Default facts:
new Person("Alwin Mayer", "Gateway Street 33")
new Person("Getrude Mayer", "Gateway Street 33")
new Person("John Meyor", "Bollywood Boulevard 17")
new Person("Gary Thompson", "Bollywood Boulevard 17")
exptester
standard plan exptester()
- Plan body:
new ExpressionTesterPlan()
exp
expression exp
- Expression:
new String[]{"a","b","c"}[$num]
- Parameter:
int $num
join
expression join
- Expression:
select "("+$p1+", "+$p2+")"
from Person $p1 in $beliefbase.persons, Person $p2 in $beliefbase.persons
where $p1!=$p2 && $p1.getAddress().equals($p2.getAddress())
default
default initial state default
- Initial Plans:
- exptester
Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples. Copyright (C) 2002-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.