import Divider from 'Artistoo/src/cells/Divider.js'
public class | source

Divider

Extends:

Cell → Divider

Implements a basic holder for a model with internal products, which can be stochastically divided between daughter cells.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

V: *

Target Volume (overwrites V in volume constraint) @type{Number}

public

Arbitrary internal products @type{Array}

Method Summary

Public Methods
public

birth(parent: Cell)

On birth the X and Y products are divided between the two daughters This is equal between daughters if 'NOISE ' is 0, otherwise increases in absolute quantities randomly with NOISE

Inherited Summary

From class Cell
public

C: *

public

conf: *

public

id: *

public

kind: *

public

The id of the parent cell, all seeded cells have parent -1, to overwrite this this.birth(parent) needs to be called @type{number}

public

birth(parent: Cell)

Adds parentId number, and can be overwritten to execute functionality on birth events.

Public Constructors

public constructor() source

The constructor of class Cell.

Override:

Cell#constructor

Public Members

public V: * source

Target Volume (overwrites V in volume constraint) @type{Number}

public products: * source

Arbitrary internal products @type{Array}

Public Methods

public birth(parent: Cell) source

On birth the X and Y products are divided between the two daughters This is equal between daughters if 'NOISE ' is 0, otherwise increases in absolute quantities randomly with NOISE

Override:

Cell#birth

Params:

NameTypeAttributeDescription
parent Cell

the parent (or other daughter) cell