Declarative Contexts
Overview
In Declaration context, a node's mere existence denotes entity, and connections are optional when used to feed things. Technically, nodes represent creation of objects or operations calculating object properties, while connections represent flow of data.
If you are familiar with other visual programming systems, this is kind of like TerraGen or Houdini.
Explanation
In Declaration graphs with connections, it works like Flows context.
Subcontexts
- StateMachine: States joined by named transitions, each guarded by a condition. Each state's behaviour is a graph of its own, and the machine's data members are what the states share. A run enters the first state, runs it, and takes the first transition whose condition holds.
- Constructs: An object tree assembled from constructors and factories, with no side effects - a description other graphs read.
Earlier versions of this page described Record and Module subcontexts; the declarative graph types are now these two. See Graph Contexts for all eight graph types.
Features
See Also
- Other Graph Contexts: Procedural and Dataflow
- Procedural contexts: Events Graph and Routine Graph
- Dataflow contexts: Flows Graph, Function Graph and Components Graph