Jadex 0.96

jadex.testcases.events
Agent SendAndWaitMobile

jadex.testcases.events.SendAndWaitMobile
  • jadex.planlib.Test

  • agent SendAndWaitMobile
    contains jadex.planlib.Test


    Agent arguments: testcenter
    testcenter AgentIdentifier

    Test the send-message-and-wait functionality in a mibile plan.

    Sends a message to itself and waits for an answer sent by an another plan.


    Belief Summary
    beliefsetref reports
              
    exported beliefref AgentIdentifier testcenter
              
    exported beliefref long timeout
              
     
    Plan Summary
    standard plan answer()
               This plan sends one answer
    mobile plan test()
              
     
    Event Summary
    messageevent inform(String performative)
               This message is sent to itself, and therefore also received.
    messageevent rp_initiate(String performative, String reply-with)
               This message is sent to itself, and therefore also received.
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    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

    test

    mobile plan test()
    Plan body:
    new SendAndWaitMobilePlan()

    answer

    standard plan answer()
    This plan sends one answer

    Plan body:
    new AnswerPlan(1, 0)
    Plan trigger:
    Message events:
    rp_initiate
    Event Detail

    rp_initiate

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

    Parameters:
    fixed parameter performative Default value:  SFipa.REQUEST
    in parameter reply-with Default value:  SFipa.createUniqueId($scope.getAgentName())
    - Initialized with unique random value.
    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 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.