github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/is_a_reward_count_towards_goal.json (about)

     1  {
     2    "name": "Is a reward count towards goal",
     3    "description": "IsA relationship counts towards total goal of requirements.",
     4    "testing": "Reward is added to total if its inherited.",
     5    "visual": "START->END",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      },
    10      {
    11        "id": "B",
    12        "isA": "A"
    13      },
    14      {
    15        "id": "C",
    16        "isA": "A"
    17      }
    18    ],
    19    "nodes": [
    20      {
    21        "id": "START",
    22        "rewards": [
    23          {
    24            "rewardId": "B"
    25          },
    26          {
    27            "rewardId": "C"
    28          }
    29        ]
    30      },
    31      {
    32        "id": "END"
    33      }
    34    ],
    35    "edges": [
    36      {
    37        "from": "START",
    38        "to": "END",
    39        "weights": [
    40          {
    41            "requirements": [
    42              {
    43                "rewardId": "A",
    44                "quantity": 2
    45              }
    46            ]
    47          }
    48        ]
    49      }
    50    ],
    51    "startId": "START",
    52    "endId": "END"
    53  }