ElementBlueprint
Defined in: blueprint/ref-blueprint.ts:54
Blueprint for an element. Returned by vivarium().element(). Use to() to define rules on this element.
Extends
Section titled “Extends”RefBlueprint<N>
Type Parameters
Section titled “Type Parameters”N extends Neighborhood = Neighborhood
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ElementBlueprint<
N>(context,automaton,element,index):ElementBlueprint<N>
Defined in: blueprint/ref-blueprint.ts:59
Parameters
Section titled “Parameters”context
Section titled “context”BlueprintContext
automaton
Section titled “automaton”element
Section titled “element”number
Returns
Section titled “Returns”ElementBlueprint<N>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”id:
number
Defined in: blueprint/ref-blueprint.ts:56
Overrides
Section titled “Overrides”index:
number
Defined in: blueprint/ref-blueprint.ts:57
name:
string
Defined in: blueprint/ref-blueprint.ts:13
Inherited from
Section titled “Inherited from”type:
"element"
Defined in: blueprint/ref-blueprint.ts:55
Overrides
Section titled “Overrides”Methods
Section titled “Methods”to(
elementBlueprintOrNeighbor):RuleBlueprint<N>
Defined in: blueprint/ref-blueprint.ts:33
Creates a new rule that transitions cells of this element (or kind) to another element or neighbor reference.
Parameters
Section titled “Parameters”elementBlueprintOrNeighbor
Section titled “elementBlueprintOrNeighbor”ElementBlueprint<Neighborhood> | Neighbor<N>
The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).
Returns
Section titled “Returns”A RuleBlueprint for chaining conditions.
