kozily / admin

Tasks, project documentation and wiki repository
0 stars 0 forks source link

Implement the full data model for the abstract machine #82

Closed andres-arana closed 6 years ago

andres-arana commented 6 years ago

We need to implement the data model for the complete abstract machine, using the following schema:

{
  "threads": [
    {
      "stack": [],
      "metadata": {
        "status": "current",
        "waitCondition": null
      }
    },
    {
      "stack": [],
      "metadata": {
        "status": "ready",
        "waitCondition": null
      }
    },
    {
      "stack": [],
      "metadata": {
        "status": "blocked",
        "waitCondition": null
      }
    },
  ],

  "sigma": {

  },

  "mu": {

  },

  "tau": {

  }
}

This extensible schema allows us to implement all the functionality that we need by adding new fields and completing as needed. The fields detailed above are the ones we need right now.