Difference between revisions of "Quick Programming References"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
* Each Capsule actually acts as a ''class'', or blueprint for creating one or more instances of its Component set. This is true except for the top-level Capsule, for which there is only a single instance. | * Each Capsule actually acts as a ''class'', or blueprint for creating one or more instances of its Component set. This is true except for the top-level Capsule, for which there is only a single instance. | ||
* When starting a new project, you are provided with an empty canvas on which to design the top-level Capsule. Many models only require a top-level Capsule. Additional Capsules are used to implement Cells and Agents in cellular and/or agent-based models. Capsules are also used to define new Components for use in other Capsules. | * When starting a new project, you are provided with an empty canvas on which to design the top-level Capsule. Many models only require a top-level Capsule. Additional Capsules are used to implement Cells and Agents in cellular and/or agent-based models. Capsules are also used to define new Components for use in other Capsules. | ||
===Components=== | |||
* Components compute useful functions or serve as containers for Agents or Cells. | |||
* Components are either ''stateful'' or ''stateless''. Stateful Components determine values for one or more elements that are carried from the current time step to the next. Stateless Components compute values from the current state of the simulation that are used to determine values for stateful Components, but these values are not retained across the transition from one time unit to the next. |
Revision as of 15:32, 24 May 2022
Designer Architecture
Numerus Designer models are comprised of one or more Capsules containing interacting Components
Capsules
- The fundamental structural unit for Designer is the Capsule.
- A Capsule is comprised of a set of interacting elements called Components.
- Each Capsule actually acts as a class, or blueprint for creating one or more instances of its Component set. This is true except for the top-level Capsule, for which there is only a single instance.
- When starting a new project, you are provided with an empty canvas on which to design the top-level Capsule. Many models only require a top-level Capsule. Additional Capsules are used to implement Cells and Agents in cellular and/or agent-based models. Capsules are also used to define new Components for use in other Capsules.
Components
- Components compute useful functions or serve as containers for Agents or Cells.
- Components are either stateful or stateless. Stateful Components determine values for one or more elements that are carried from the current time step to the next. Stateless Components compute values from the current state of the simulation that are used to determine values for stateful Components, but these values are not retained across the transition from one time unit to the next.