Jadex 0.96

jadex.examples.blackjack.manager
Agent Manager

jadex.examples.blackjack.manager.Manager
  • jadex.planlib.AMS
  • jadex.planlib.DF

  • agent Manager
    contains jadex.planlib.DF, jadex.planlib.AMS

    The blackjack Manager helps with starting agents.

    Provides a GUI to start/stop agents, and close the complete BlackJack application.


    Belief Summary
    belief ManagerFrame gui
               The gui object.
    belief AgentIdentifier localDealerAID
               The id of a manually started local dealer.
    beliefset Player players
               The player objects with initial values.
     
    Goal Summary
    achievegoalref ams_create_agent
               Used to start other agents.
    achievegoalref ams_destroy_agent
               Used to stop other agents.
    achievegoalref ams_search_agents
               Used to find other agents.
    achievegoalref df_search
               Used to search for the dealer.
     
    Plan Summary
    standard plan dealerRegister()
               Plan to register, when dealer belief changes.
    standard plan guiManager()
               Plan to update the GUI, when informed by dealer changes.
     
    Event Summary
    messageevent dealer_register(String content, String performative)
               Message to be sent to register at the dealer.
    messageevent dealer_shutdown(String content, String performative)
               Message to be sent to shutdown the dealer.
    messageevent inform_playerplaying(String content-start, String performative)
               Message sent by dealer to inform the manager about the status of a player.
     
    Configuration Summary
    default configuration  default
              
     

    Belief Detail

    localDealerAID

    belief AgentIdentifier localDealerAID
    The id of a manually started local dealer.


    gui

    belief ManagerFrame gui
    The gui object.


    players

    beliefset Player players
    The player objects with initial values.

    Default facts:
    new Player("Heinz", 100, new Color(255,192,192), AbstractStrategy.CONSTANT_VERY_CAREFUL)
    new Player("Erna", 100, new Color(255,224,192), AbstractStrategy.CONSTANT_CAREFUL)
    new Player("Fritz", 100, new Color(255,255,192), AbstractStrategy.CONSTANT_RISKY)
    new Player("Lotte", 100, new Color(224,255,192), AbstractStrategy.CONSTANT_VERY_RISKY)
    new Player("Karl", 100, new Color(192,255,224), AbstractStrategy.STOCHASTIC_TABLE)
    new Player("Marie", 100, new Color(192,255,255), AbstractStrategy.HUMAN_PLAYER)
    Goal Detail

    ams_search_agents

    achievegoalref ams_search_agents
    Used to find other agents.

    Parameters:
    parameterref ams
    parameterref constraints
    parameterref description
    parameterset result
    Referenced from:
    ams_search_agents in capability jadex.planlib.AMS

    df_search

    achievegoalref df_search
    Used to search for the dealer.

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

    ams_create_agent

    achievegoalref ams_create_agent
    Used to start other agents.

    Parameters:
    parameterref agentidentifier
    parameterref ams
    parameterref arguments
    parameterref configuration
    parameterref name
    parameterref start
    parameterref type
    Referenced from:
    ams_create_agent in capability jadex.planlib.AMS

    ams_destroy_agent

    achievegoalref ams_destroy_agent
    Used to stop other agents.

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

    dealerRegister

    standard plan dealerRegister()
    Plan to register, when dealer belief changes.

    Plan body:
    Plan trigger:
    Belief change
    localDealerAID

    guiManager

    standard plan guiManager()
    Plan to update the GUI, when informed by dealer changes.

    Plan body:
    new ManagerGuiUpdatePlan()
    Plan trigger:
    Message events:
    inform_playerplaying
    Event Detail

    dealer_shutdown

    messageevent dealer_shutdown(String content, 
                                 String performative)
    Message to be sent to shutdown the dealer.

    Parameters:
    fixed parameter content Default value:  "manager:shutDown"
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    post to all: false

    dealer_register

    messageevent dealer_register(String content, 
                                 String performative)
    Message to be sent to register at the dealer.

    Parameters:
    fixed parameter content Default value:  "manager:registerAsTracker"
    fixed parameter performative Default value:  SFipa.QUERY_REF
    Event flags:
    direction: send
    message type: fipa
    random selection: false
    post to all: false

    inform_playerplaying

    messageevent inform_playerplaying(String content-start, 
                                      String performative)
    Message sent by dealer to inform the manager about the status of a player.

    Parameters:
    fixed parameter content-start Default value:  "playerPlaying"
    fixed parameter performative Default value:  SFipa.INFORM
    Event flags:
    direction: receive
    message type: fipa
    random selection: false
    post to all: false
    Configuration Detail

    default

    default configuration default
    Initial Beliefs:
    gui Initial value:  new ManagerFrame($scope.getExternalAccess())

    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.