Add additional states to cells #45

Open
opened 2018-08-29 20:45:15 +00:00 by marty-oehme · 0 comments
marty-oehme commented 2018-08-29 20:45:15 +00:00 (Migrated from gitlab.com)

Currently, cells have an on or off boolean state.

However, in order to display extra information such as repeated calls to cells or the time since last call to a cell, different states might prove useful.

An example would be an attempt to render the 'expansion' of cells as the area that they repeatedly passed through. If a newly born cell passes through an area once it receives one color; if it passes multiple times, it receives a slightly different shade.

Thereby we would arrive at 4 states:

  • OFF
  • ON
  • EXPANSION (i.e. passed through once)
  • CORE (i.e. passed through often)

which could be encapsulated in a simple enum.

On the other hand, we could encode information about the time since the last activation of a cell which would ideally require its own state class (and lastCall timestamp). For now, this is probably overkill and enums are sufficient.

Currently, cells have an on or off boolean state. However, in order to display extra information such as repeated calls to cells or the time since last call to a cell, different states might prove useful. An example would be an attempt to render the 'expansion' of cells as the area that they repeatedly passed through. If a newly born cell passes through an area once it receives one color; if it passes multiple times, it receives a slightly different shade. Thereby we would arrive at 4 states: * OFF * ON * EXPANSION (i.e. passed through once) * CORE (i.e. passed through often) which could be encapsulated in a simple enum. On the other hand, we could encode information about the time since the last activation of a cell which would ideally require its own state class (and lastCall timestamp). For now, this is probably overkill and enums are sufficient.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: experiments/cellular-automata#45
No description provided.