Jadex 0.96

jadex.testcases.misc
Agent Expression

jadex.testcases.misc.Expression
  • jadex.planlib.Test

  • agent Expression
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Test custom parameters in expressions.

    Since 0.94, expression parameters and their types have to be declared explicitly.


    Belief Summary
    beliefset Person persons
              
    beliefsetref reports
              
    beliefref int testcase_cnt
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Plan Summary
    standard plan exptester()
              
     
    Expression Summary
    expression exp
              
    expression join
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    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")

    testcase_cnt

    beliefref int testcase_cnt
    Default fact:
    1
    Referenced from:
    testcase_cnt in capability jadex.planlib.Test

    timeout

    exported beliefref long timeout
    Default fact:
    0
    Referenced from:
    timeout in capability jadex.planlib.Test

    testcenter

    exported beliefref AgentIdentifier testcenter
    Referenced from:
    testcenter in capability jadex.planlib.Test

    reports

    beliefsetref  reports
    Referenced from:
    reports in capability jadex.planlib.Test
    Plan Detail

    exptester

    standard plan exptester()
    Plan body:
    Expression Detail

    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())
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    testcase_cnt Initial value:  2
    Initial Plans:
    exptester

    Jadex 0.96

    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-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.