Jadex 0.941

jadex.examples.hunterprey.creature.actsense
Capability Creature

jadex.examples.hunterprey.creature.actsense.Creature
  • jadex.adapter.standalone.planlib.DF_standalone
  • Direct Known Containing Agents:
    DumbHunter, DumbPrey, LAHunter, Observer, RemoteObserver
    Direct Known Containing Capabilities:
    BasicBehaviour

    capability Creature
    contains jadex.adapter.standalone.planlib.DF_standalone

    Creature capability. Provides basic creature behaviour (looking/moving).


    Belief Summary
    exported abstract beliefref AgentIdentifier df
               The df to search for the environment.
    belief AgentIdentifier environmentagent
               The environment.
    exported beliefset Food food
               The known food.
    exported beliefset Hunter hunters
               The known hunters.
    exported abstract required beliefref Creature my_self
               The agents vision of itself.
    exported beliefset Obstacle obstacles
               The known obstacles.
    exported beliefset Prey preys
               The known preys.
    exported belief Vision vision
               The current vision.
     
    Goal Summary
    achievegoalref df_search
              
    exported achievegoal eat(WorldObject object)
               Eat goal.
    exported achievegoal get_vision(Vision vision)
               Get vision goal.
    achievegoalref goal_request
              
    maintaingoal maintain_lease(Object result)
               Maintain leasetime goal.
    exported achievegoal move(String direction)
               Move goal.
     
    Plan Summary
    standard plan eat(WorldObject object)
               Handle an eat goal.
    standard plan getvision(Vision vision)
               Handle a move goal.
    standard plan move(String direction)
               Handle a move goal.
    standard plan updatevision()
               Handle a new vision request.
     
    Event Summary
    messageevent failure(String performative)
              
    messageevent inform_vision(CurrentVision content, Class content-class, String language, String ontology, String performative)
              
     
    Expression Summary
    expression query_in_vision_objects
               Query all objects from the beliefs that are currently in sight.
     
    Initial State Summary
    default initial state  default
              
     

    Belief Detail

    environmentagent

    belief AgentIdentifier environmentagent
    The environment.


    vision

    exported belief Vision vision
    The current vision.


    preys

    exported beliefset Prey preys
    The known preys.


    hunters

    exported beliefset Hunter hunters
    The known hunters.


    obstacles

    exported beliefset Obstacle obstacles
    The known obstacles.


    food

    exported beliefset Food food
    The known food.


    df

    exported abstract beliefref AgentIdentifier df
    The df to search for the environment.


    my_self

    exported abstract required beliefref Creature my_self
    The agents vision of itself.

    Goal Detail

    get_vision

    exported achievegoal get_vision(Vision vision)
    Get vision goal.

    Parameters:
    out parameter vision
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    meta-level reasoning: true
    post to all: false

    move

    exported achievegoal move(String direction)
    Move goal.

    Parameters:
    in parameter direction
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    meta-level reasoning: true
    post to all: false

    eat

    exported achievegoal eat(WorldObject object)
    Eat goal.

    Parameters:
    in parameter object
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    meta-level reasoning: true
    post to all: false

    maintain_lease

    maintaingoal maintain_lease(Object result)
    Maintain leasetime goal.

    Parameters:
    out parameter result - Hack!!! Result required for getvision plan. todo: refactor
    BDI flags:
    retry: true
    retry delay: 0
    exclude: when_tried
    random selection: false
    meta-level reasoning: true
    post to all: false
    recur: true
    recur delay: 2000
    Maintain Condition:
    $beliefbase.my_self.getLeaseticks()>10
    Target Condition:
    $beliefbase.my_self.getLeaseticks()>10

    df_search

    achievegoalref df_search
    Parameters:
    parameterref address
    parameterref constraints
    parameterref description
    parameterref df
    parameterref result
    Referenced from:
    df_search in capability jadex.adapter.standalone.planlib.DF_standalone

    goal_request

    achievegoalref goal_request
    Parameters:
    parameterref content
    parameterref language
    parameterref ontology
    parameterref receiver
    parameterref result
    parameterref timeout
    Referenced from:
    goal_request in capability jadex.adapter.standalone.planlib.DF_standalone
    Plan Detail

    getvision

    standard plan getvision(Vision vision)
    Handle a move goal.

    Parameters:
    in parameter vision (goal mappings: get_vision.vision maintain_lease.result)
    Plan body:
    new GetVisionPlan()
    Goal Trigger:
    get_vision
    Goal Trigger:
    maintain_lease

    move

    standard plan move(String direction)
    Handle a move goal.

    Parameters:
    in parameter direction (goal mappings: move.direction)
    Plan body:
    new MovePlan()
    Goal Trigger:
    move

    eat

    standard plan eat(WorldObject object)
    Handle an eat goal.

    Parameters:
    in parameter object (goal mappings: eat.object)
    Plan body:
    new EatPlan()
    Goal Trigger:
    eat

    updatevision

    standard plan updatevision()
    Handle a new vision request.

    Plan body:
    new UpdateVisionPlan()
    Message event trigger:
    inform_vision
    Event Detail

    inform_vision

    messageevent inform_vision(CurrentVision content, 
                               Class content-class, 
                               String language, 
                               String ontology, 
                               String performative)
    Parameters:
    in parameter content
    fixed parameter content-class Default value:  CurrentVision.class
    fixed parameter language Default value:  SFipa.JAVA_XML
    fixed parameter ontology Default value:  HunterPreyOntology.ONTOLOGY_NAME
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: receive
    message type: fipa
    random selection: false
    meta-level reasoning: true
    post to all: false

    failure

    messageevent failure(String performative)
    Parameters:
    fixed parameter performative Default value:  SFipa.FAILURE
    Event flags:
    direction: receive
    message type: fipa
    random selection: false
    meta-level reasoning: true
    post to all: false
    Expression Detail

    query_in_vision_objects

    expression query_in_vision_objects
    Query all objects from the beliefs that are currently in sight.

    Expression:
    select WorldObject $object from SUtil.joinArbitraryArrays(new Object[] { $beliefbase.preys, $beliefbase.hunters, $beliefbase.obstacles, $beliefbase.food }) where $beliefbase.my_self.isInVisionRange($object.getLocation())
    Initial State Detail

    default

    default initial state default
    Initial Goals:
    maintain_lease

    Jadex 0.941

    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-2005 Lars Braubach, Alexander Pokahr, Andrzej Walczak - University of Hamburg. Use is subject to license terms.