DesignAndDeploy / dnd

Design and Deploy is a framework for developing applications for intelligent environments
Apache License 2.0
3 stars 0 forks source link

deployment incorrectly succeeds even if too few blocks available #27

Closed schnabeltrei closed 11 years ago

schnabeltrei commented 11 years ago

Config specifies:

  "allowedBlocks": {
    "amount": -1,
    "children": [
      {
        "type": "operator",
        "amount": 1
      },
      {
        "amount": 1,          <--------
        "children": [
          {
            "type": "actorBeamer",
            "amount": 2
          },
          {
            "type": "child2Type",
            "amount": 2
          }
        ]
      }
    ]
  }

However creating a distribution for 2x actorBeamer & 1x operator succeedes