ssardina-agts / agtcity-sarl-mw

The SARL middleware to for the Agents in City MAC game
GNU General Public License v3.0
1 stars 2 forks source link

Error in sensingAggregator.addJobs(percepts) for auctions #1

Closed ssardina closed 6 years ago

ssardina commented 6 years ago

Original report by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).


When an auction is received in the request-action:

#!java

    <auction auctionTime="4" end="149" fine="3130" id="job5" reward="3497" start="27" storage="storage5">
      <required amount="1" name="item10"/>
      <required amount="1" name="item11"/>
      <required amount="1" name="item9"/>
    </auction>
  </percept>
</message>
 received

We get the following error in PerceptAggregator.addJobs(percepts : Collection):

#!java

[SEVERE, 6:53:21am, AGENT-4cef2bcc-2d48-4442-bba6-5b7c9f4a0d84] Something bad has happened during perception for player agentA2: java.lang.ClassCastException: eis.iilang.Numeral cannot be cast to eis.iilang.ParameterList
ssardina commented 6 years ago

Original comment by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).


Version 1.5 - Fixes big bug with aggregator for JOBS - Fixes #1