Custom Rule
This template is used to write a java class that describes a custom rule for the behavior of cells of a certain type.
import ru.biosoft.physicell.core.CellFunctions.CustomCellRule;
import ru.biosoft.physicell.core.Cell;
import ru.biosoft.physicell.core.Model;
import ru.biosoft.physicell.core.Phenotype;
public class MyCellRule extends CustomCellRule
{
// Class fields if needed
public MyCellRule(Model model)
{
// Code that initializes the class
}
public void execute(Cell pCell, Phenotype phenotype, double dt) throws Exception
{
// Code describing a custom rule for changing the internal state of pCell over time dt
// For example:
// signals.setSingleBehavior( pCell, "chemotactic response to oxygen", -1 );
}
// Additional methods if needed
}