Skip to content

ElementBlueprint

Defined in: blueprint/ref-blueprint.ts:54

Blueprint for an element. Returned by vivarium().element(). Use to() to define rules on this element.

N extends Neighborhood = Neighborhood

new ElementBlueprint<N>(context, automaton, element, index): ElementBlueprint<N>

Defined in: blueprint/ref-blueprint.ts:59

BlueprintContext

Automaton

Element

number

ElementBlueprint<N>

RefBlueprint.constructor

id: number

Defined in: blueprint/ref-blueprint.ts:56

RefBlueprint.id


index: number

Defined in: blueprint/ref-blueprint.ts:57


name: string

Defined in: blueprint/ref-blueprint.ts:13

RefBlueprint.name


type: "element"

Defined in: blueprint/ref-blueprint.ts:55

RefBlueprint.type

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.

ElementBlueprint<Neighborhood> | Neighbor<N>

The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).

RuleBlueprint<N>

A RuleBlueprint for chaining conditions.

RefBlueprint.to