Jadex 0.96

jadex.examples.hunterprey.environment
Agent Environment

jadex.examples.hunterprey.environment.Environment
  • jadex.planlib.AMS
  • jadex.planlib.DF
  • jadex.planlib.Protocols

  • agent Environment
    contains jadex.planlib.Protocols, jadex.planlib.DF, jadex.planlib.AMS

    Environment Agent for managing the environment object.


    Belief Summary
    belief Environment environment
              
    belief EnvironmentGui gui
              
    beliefset Observer observers
              
    belief long roundtime
              
    beliefref IFilter rp_filter
               The filter for deciding which request messages are handled in this capability.
     
    Goal Summary
    achievegoalref ams_destroy_agent
              
    achievegoalref df_deregister
              
    achievegoalref df_register
              
    querygoalref rp_decide_request
              
    achievegoalref rp_execute_request
              
     
    Plan Summary
    standard plan dispatchvision(Object action, Object result)
               Dispatch the actual vision to a requester.
    standard plan dispatchworldsize(Object action, Object result)
               Dispatch the world size to a requester.
    standard plan eatrequest(Object action, Object result)
               Inform the requester if a drop action succeeds.
    standard plan moverequest(Object action, Object result)
               Inform the requester if a pickup action succeeds.
    standard plan simticker()
               Simulation plan.
     
    Event Summary
    messageevent inform_vision(CurrentVision content, String language, String ontology, String performative)
               SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestVision.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestWorldSize.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestMove.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestEat.class SFipa.INFORM SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME Done.class SFipa.FAILURE
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    environment

    belief Environment environment
    Default fact:
    new Environment()
    - Environment.getInstance()

    roundtime

    belief long roundtime
    Default fact:
    1000

    gui

    belief EnvironmentGui gui
    Default fact:
    new EnvironmentGui($agent.getExternalAccess())

    observers

    beliefset Observer observers

    rp_filter

    beliefref IFilter rp_filter
    The filter for deciding which request messages are handled in this capability.

    Default fact:
    IFilter.NEVER
    Referenced from:
    rp_filter in capability jadex.planlib.Protocols
    Goal Detail

    df_register

    achievegoalref df_register
    Parameters:
    parameterref description
    parameterref df
    parameterref leasetime
    parameterref result
    Referenced from:
    df_register in capability jadex.planlib.DF

    df_deregister

    achievegoalref df_deregister
    Parameters:
    parameterref description
    parameterref df
    Referenced from:
    df_deregister in capability jadex.planlib.DF

    ams_destroy_agent

    achievegoalref ams_destroy_agent
    Parameters:
    parameterref agentidentifier
    parameterref ams
    Referenced from:
    ams_destroy_agent in capability jadex.planlib.AMS

    rp_execute_request

    achievegoalref rp_execute_request
    Parameters:
    parameterref action
    parameterref initiator
    parameterref result
    Referenced from:
    rp_execute_request in capability jadex.planlib.Protocols

    rp_decide_request

    querygoalref rp_decide_request
    Parameters:
    parameterref accept
    parameterref action
    parameterref initiator
    Referenced from:
    rp_decide_request in capability jadex.planlib.Protocols
    Plan Detail

    dispatchvision

    standard plan dispatchvision(Object action, 
                                Object result)
    Dispatch the actual vision to a requester.

    Parameters:
    in parameter action (goal mappings: rp_execute_request.action)
    out parameter result (goal mappings: rp_execute_request.result)
    Plan body:
    Plan trigger:
    Goals:
    rp_execute_request

    dispatchworldsize

    standard plan dispatchworldsize(Object action, 
                                   Object result)
    Dispatch the world size to a requester.

    Parameters:
    in parameter action (goal mappings: rp_execute_request.action)
    out parameter result (goal mappings: rp_execute_request.result)
    Plan body:
    Plan trigger:
    Goals:
    rp_execute_request

    moverequest

    standard plan moverequest(Object action, 
                             Object result)
    Inform the requester if a pickup action succeeds.

    Parameters:
    in parameter action (goal mappings: rp_execute_request.action)
    out parameter result (goal mappings: rp_execute_request.result)
    Plan body:
    Plan trigger:
    Goals:
    rp_execute_request

    eatrequest

    standard plan eatrequest(Object action, 
                            Object result)
    Inform the requester if a drop action succeeds.

    Parameters:
    in parameter action (goal mappings: rp_execute_request.action)
    out parameter result (goal mappings: rp_execute_request.result)
    Plan body:
    Plan trigger:
    Goals:
    rp_execute_request

    simticker

    standard plan simticker()
    Simulation plan.

    Plan body:
    Event Detail

    inform_vision

    messageevent inform_vision(CurrentVision content, 
                               String language, 
                               String ontology, 
                               String performative)
    SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestVision.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestWorldSize.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestMove.class SFipa.REQUEST SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME RequestEat.class SFipa.INFORM SFipa.NUGGETS_XML HunterPreyOntology.ONTOLOGY_NAME Done.class SFipa.FAILURE "plain-text"- -> ContentElementList.class

    Parameters:
    in parameter content
    fixed parameter language Default value:  SFipa.NUGGETS_XML
    fixed parameter ontology Default value:  HunterPreyOntology.ONTOLOGY_NAME
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    post to all: false
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    rp_filter Initial value:  IFilter.ALWAYS
    Initial Goals:
    df_register (description=$agent.getPropertybase().getProperty("fipa.agentdescription.environment")
    )
    Initial Plans:
    simticker
    End Goals:
    df_deregister

    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.