Initialization
This template is used to write a java class that describes the events that occur when a new cell appears.
import ru.biosoft.physicell.core.CellFunctions.Instantiator;
import ru.biosoft.physicell.core.Cell;
import ru.biosoft.physicell.core.CellDefinition;
import ru.biosoft.physicell.core.Model;
public class MyInstantiator extends Instantiator
{
// Class fields if needed
@Override
public Cell execute(CellDefinition cd, Model model) throws Exception
{
// Code describing events that occur in the model when a new cell of type cd appears in it.
// For example:
// Cell cell = new Cell( cd, model );
// cell.phenotype.mechanics.attachmentElasticConstant = cd.custom_data.get( "elastic_coefficient" );
}
// Additional methods if needed
}