Jadex 0.96

jadex.examples.marsworld.producer
Agent Production

jadex.examples.marsworld.producer.Production
  • jadex.planlib.DF
  • jadex.examples.marsworld.movement.Movement

  • agent Production
    contains jadex.planlib.DF, Movement

    Production agent for producing ore.

    This Agent is called to move to an Location to produce ore there. Therefore it is registering it's production-servivce at the DF.


    Belief Summary
    belief Environment environment
               The environment as singleton object.
    beliefset Target finished_targets
               The targets sent to the sentries.
    beliefref missionend
               Is the mission finished?
    belief Location my_home
               The home location.
    belief Location my_location
               The current location.
    belief double my_speed
               The speed.
    beliefsetref my_targets
               The seen targets.
    belief String my_type
               The agent type (carry, producer or sentry)
    belief double my_vision
               The sight radius.
     
    Goal Summary
    achievegoalref df_deregister
               Deregister the agent description at the df.
    achievegoalref df_register
               Register the agent description at the df.
    achievegoalref df_search
               Usable for searching other agents.
    achievegoalref move_dest
               Move to some destination.
    achievegoal produce_ore(Target target)
               Produce ore at a target.
    performgoalref walk_around
               Just walk around without a target.
    performgoalref watch_targets
               Watch out for targets.
     
    Plan Summary
    standard plan informer()
               Inform sentries about new targets.
    standard plan produce()
               The main plan handling action requests.
    standard plan produce_ore(Target target)
               Produce ore at a target.
     
    Event Summary
    messageevent inform_target(String language, String ontology, String performative)
              
    messageevent request_carries(String language, String ontology, String performative)
              
    messageevent request_production(Class content-class, String ontology, String performative)
               Message event for produce ore task allocation.
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    environment

    belief Environment environment
    The environment as singleton object.

    Default fact:
    Environment.getInstance()
    Assign to:
    environment in capability Movement

    my_home

    belief Location my_home
    The home location.

    Default fact:
    $beliefbase.environment.getHomebase().getLocation()
    Assign to:
    my_home in capability Movement

    my_location

    belief Location my_location
    The current location.

    Default fact:
    $beliefbase.my_home
    Assign to:
    my_location in capability Movement

    my_type

    belief String my_type
    The agent type (carry, producer or sentry)

    Default fact:
    Environment.PRODUCTION_AGENT
    Assign to:
    my_type in capability Movement

    my_speed

    belief double my_speed
    The speed.

    Default fact:
    10
    Assign to:
    my_speed in capability Movement

    my_vision

    belief double my_vision
    The sight radius.

    Default fact:
    0.05
    Assign to:
    my_vision in capability Movement

    finished_targets

    beliefset Target finished_targets
    The targets sent to the sentries.


    missionend

    beliefref  missionend
    Is the mission finished?

    Update rate:
    1000 ms
    Default fact: (dynamic)
    $beliefbase.environment.getHomebase().getRemainingMissionTime()==0
    Referenced from:
    missionend in capability Movement

    my_targets

    beliefsetref  my_targets
    The seen targets.

    Referenced from:
    my_targets in capability Movement
    Goal Detail

    produce_ore

    achievegoal produce_ore(Target target)
    Produce ore at a target.

    Parameters:
    in parameter target
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    post to all: false
    Drop Condition:
    $beliefbase.missionend
    Deliberation:
    inhibits walk_around

    walk_around

    performgoalref walk_around
    Just walk around without a target.

    Referenced from:
    walk_around in capability Movement

    watch_targets

    performgoalref watch_targets
    Watch out for targets.

    Referenced from:
    watch_targets in capability Movement

    move_dest

    achievegoalref move_dest
    Move to some destination.

    Parameters:
    parameterref destination
    Referenced from:
    move_dest in capability Movement

    df_register

    achievegoalref df_register
    Register the agent description at the df.

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

    df_deregister

    achievegoalref df_deregister
    Deregister the agent description at the df.

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

    df_search

    achievegoalref df_search
    Usable for searching other agents.

    Parameters:
    parameterref constraints
    parameterref description
    parameterref df
    parameterset result
    Referenced from:
    df_search in capability jadex.planlib.DF
    Plan Detail

    produce

    standard plan produce()
    The main plan handling action requests.

    Plan body:
    Plan waitqueue:
    Message events:
    request_production

    produce_ore

    standard plan produce_ore(Target target)
    Produce ore at a target.

    Parameters:
    in parameter target (goal mappings: produce_ore.target)
    Plan body:
    Plan trigger:
    Goals:
    produce_ore

    informer

    standard plan informer()
    Inform sentries about new targets.

    Plan body:
    Plan trigger:
    Fact added
    my_targets
    Event Detail

    request_production

    messageevent request_production(Class content-class, 
                                    String ontology, 
                                    String performative)
    Message event for produce ore task allocation.

    Parameters:
    fixed parameter content-class Default value:  RequestProduction.class
    fixed parameter ontology Default value:  MarsOntology.ONTOLOGY_NAME
    fixed parameter performative Default value:  SFipa.REQUEST
    Event flags:
    direction: receive
    message type: fipa
    random selection: false
    post to all: false

    inform_target

    messageevent inform_target(String language, 
                               String ontology, 
                               String performative)
    Parameters:
    fixed parameter language Default value:  SFipa.NUGGETS_XML
    fixed parameter ontology Default value:  MarsOntology.ONTOLOGY_NAME
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    post to all: false

    request_carries

    messageevent request_carries(String language, 
                                 String ontology, 
                                 String performative)
    Parameters:
    fixed parameter language Default value:  SFipa.NUGGETS_XML
    fixed parameter ontology Default value:  MarsOntology.ONTOLOGY_NAME
    fixed parameter performative Default value:  SFipa.REQUEST
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    post to all: false
    Configuration Detail

    default

    default configuration default
    Initial Goals:
    df_register (description=$propertybase.getProperty("fipa.agentdescription.producer")
    )
    walk_around
    watch_targets
    Initial Plans:
    produce
    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.