package affectors; import main.Node; import main.Globals; /** * This is one half of an affector that cleaves a single cytoplasmic node into two other * cytoplasmic nodes. The rate of cleavage is not regulated by any other species and follow * simple enzymne kinetics. Use {@link CleaveA_Aff} on the dimer. Use this version * in each of the product species. *

* Formula *
dMonomer/dt = k_cleaveage * DIMER *

* Parameters * * * *
Dimer [DIMER] The dimer being cleaved
Kappa [k_cleaveage] The rate for cleveage
*

* Usage *
&MONOMER *

&CleaveB_AFF DIMER k_cleveage *
* &endMONOMER * * @author Kerry Kim * @see CleaveA_Aff * */ public class CleaveB_Aff extends Affector { /** The rate constant for cleaveage. */ int k_cleaveage; static final String affectorDescription = "Cleavage of a cytoplasmic dimer, unregulated; version A for dimer"; static final String [] nodeDescriptions = {"Dimer"}; static final String [] paramDescriptions = {"Rate of cleaveage"}; static final int [] whichSides = { -1 }; public CleaveB_Aff() {} protected void setLabelsAndTypes() { setDescriptions(affectorDescription, nodeDescriptions, paramDescriptions); this.Type[GUI_CAPABLE] = 1; this.Type[CERTIFICATION] = Affector.RETURNS_DERIV; this.Type[MATHTYPE] = Affector.FF; this.Type[TERMTYPE] = Affector.CONVERSION; } public void setParameterNumbers(int [] param_nums) { k_cleaveage = param_nums[0]; } public float getValue(Node which_node) { return Globals.characteristicTime *(Nodes[0].getIntegrationValue() * params[k_cleaveage]); } }