Jadex 0.96

jadex.examples.hunterprey.creature.hunters.ldahunter
Agent LAHunter

jadex.examples.hunterprey.creature.hunters.ldahunter.LAHunter
  • jadex.examples.hunterprey.creature.actsense.Creature
  • jadex.planlib.DF
  • jadex.planlib.Protocols

  • agent LAHunter
    contains Creature

    Intelligent hunter using a seacrh algorithm.

    Includes the Act-Sense-Capability and defines the required beliefs. Uses Joint Field as internal world model.


    Belief Summary
    beliefsetref food
               The known food.
    beliefsetref hunters
               The known hunters.
    belief String last_direction
              
    belief Creature my_self
               The creature.
    belief Prey next_sheep
              
    beliefsetref obstacles
               The known obstacles.
    belief JointField potential_field
              
    belief PotentialFrame potential_window
              
    beliefsetref preys
               The known preys.
    beliefref vision
               The current vision.
     
    Goal Summary
    achievegoalref eat
              
    performgoal hunt()
              
    achievegoalref move
              
     
    Plan Summary
    standard plan do_hunt()
              
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    my_self

    belief Creature my_self
    The creature.

    Default fact:
    new Hunter($agent.getName(), (AgentIdentifier)$agent.getAgentIdentifier(), new Location(10,10))
    Assign to:
    my_self in capability Creature

    last_direction

    belief String last_direction

    next_sheep

    belief Prey next_sheep
    Default fact: (dynamic)
    select one Prey $prey from $beliefbase.preys where $beliefbase.my_self.isInVisionRange($prey.getLocation()) order by $prey.getDistance($beliefbase.my_self)

    potential_field

    belief JointField potential_field
    Default fact:
    new JointField (30,30,3,new Evaluator(0.0, 1.0, 0.0, 0.001))

    potential_window

    belief PotentialFrame potential_window
    Default fact:
    new PotentialFrame($agent.getExternalAccess(), "World of "+$beliefbase.my_self.getName())

    vision

    beliefref  vision
    The current vision.

    Referenced from:
    vision in capability Creature

    preys

    beliefsetref  preys
    The known preys.

    Referenced from:
    preys in capability Creature

    hunters

    beliefsetref  hunters
    The known hunters.

    Referenced from:
    hunters in capability Creature

    obstacles

    beliefsetref  obstacles
    The known obstacles.

    Referenced from:
    obstacles in capability Creature

    food

    beliefsetref  food
    The known food.

    Referenced from:
    food in capability Creature
    Goal Detail

    hunt

    performgoal hunt()
    BDI flags:
    retry: true
    retry delay: 0
    exclude: never
    random selection: false
    post to all: false

    move

    achievegoalref move
    Parameters:
    parameterref direction
    Referenced from:
    move in capability Creature

    eat

    achievegoalref eat
    Parameters:
    parameterref object
    Referenced from:
    eat in capability Creature
    Plan Detail

    do_hunt

    standard plan do_hunt()
    Plan body:
    Plan trigger:
    Goals:
    hunt
    Configuration Detail

    default

    default configuration default
    Initial Goals:
    hunt

    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.