Jadex 0.96

jadex.testcases.plans
Agent WaitqueueTest

jadex.testcases.plans.WaitqueueTest
  • jadex.planlib.Test

  • agent WaitqueueTest
    contains jadex.planlib.Test


    Agent arguments: timeout
    timeout long
    , testcenter
    testcenter AgentIdentifier

    Test the waitqueue of plans.

    Test waitqueue by receiving a number of messages after waiting for a timeout.


    Belief Summary
    beliefsetref TestReport reports
              
    beliefref int testcase_cnt
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Plan Summary
    standard plan answer()
               This plan sends 5 answers, each delayed 0.1 secs
    standard plan test()
              
     
    Event Summary
    messageevent inform(String performative)
               This message is sent to itself, and therefore also received.
    messageevent rp_initiate(String performative)
               This message is sent to itself, and therefore also received.
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    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 TestReport reports
    Referenced from:
    reports in capability jadex.planlib.Test
    Plan Detail

    test

    standard plan test()
    Plan body:

    answer

    standard plan answer()
    This plan sends 5 answers, each delayed 0.1 secs

    Plan body:
    new AnswerPlan(5, 100)
    Plan trigger:
    Message events:
    rp_initiate
    Event Detail

    rp_initiate

    messageevent rp_initiate(String performative)
    This message is sent to itself, and therefore also received.

    Parameters:
    fixed parameter performative Default value:  SFipa.REQUEST
    Event flags:
    direction: send_receive
    message type: fipa
    random selection: false
    post to all: false

    inform

    messageevent inform(String performative)
    This message is sent to itself, and therefore also received.

    Parameters:
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: send_receive
    message type: fipa
    random selection: false
    post to all: false
    Configuration Detail

    default

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

    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.