【问题标题】:In JaCaMo JCM file, how to deal with multiple instances in organisation configurations?在 JaCaMo JCM 文件中,如何处理组织配置中的多个实例?
【发布时间】:2017-10-25 01:08:50
【问题描述】:

我正在尝试使用“实例”创建多个代理,这在我们需要多次增加实例数量时更容易。很清楚如何通过 jcm 文件在“代理级别”中执行此操作。但关键是如何在“组织层面”做到这一点,因为我可能有很多名字。

我的jcm文件是这样的,注意“p*”是我的问题。

mas auctionAEO {

    agent a : auctioneerA.asl {
        beliefs:    total(10)
    } 
    agent p : participantA.asl {
        instances:  10
    }

    organisation aorg : auction-os.xml {
        group agrp : auctionGroup {
            players: a  auctioneer
                     p* participant
            debug
        }
    }

    asl-path: src/agt
              src/agt/inc
}

【问题讨论】:

    标签: agent multi-agent


    【解决方案1】:

    您可以在“代理”声明中设置代理的角色。 例如:

    agent p : participantA.asl {
        instances:  10
        roles:      participant in agrp
    }
    

    在 JaCaMo 发行版中,doc 文件夹包含 jcm.html 文件,其中列出了 JCM 文件的所有选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多