main
Class Node
java.lang.Object
main.Node
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- CalculatorNode
- public class Node
- extends java.lang.Object
- implements java.lang.Cloneable
A node is one of the state variables in the model: an mRNA, protein, protein complex, protein
at a membrane, etc. Each node contains a set of Affectors which specify how that node changes
over time. A copy of each type of node is put into each cell.
Note - you can't use a freshly made node. You must use a copy of the node, because
copying the node fixes the array of affectors (the original uses affectorVector so that
it is easy to build).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numSides
public int numSides
affectors
public Affector[] affectors
this_debug_num
public int this_debug_num
setAffectors
public void setAffectors(java.util.Vector affector_templates,
Cell cell)
throws java.lang.Exception
- Throws:
java.lang.Exception
init
protected void init(int node_num)
setNumSides
public void setNumSides(int num_sides)
getAffectorsValue
public final float getAffectorsValue(int side)
getAffectorsValue
public final void getAffectorsValue(float[] vals)
getSeparatedDeriv
public final void getSeparatedDeriv(float[] fhat_vals,
float[] dfdyi_vals)
getIntegrationValue
public float getIntegrationValue()
getIntegrationValue
public float getIntegrationValue(int side)
setIntegrationValues
public void setIntegrationValues(float[] vals)
setFinalValues
public void setFinalValues(float[] vals)
getValue
public float getValue(int side)
getValue
public void getValue(float[] vals)
getSum
public float getSum()
setValue
public void setValue(float val)
setValue
public void setValue(int side,
float val)
setValue
public void setValue(NodeValues newvalues)
getNoise
public float getNoise()
setNoise
public void setNoise(float amplitude)
getNodeNum
public int getNodeNum()
getNumAffectors
public int getNumAffectors()
copy
public Node copy()
addExpAffector
public void addExpAffector(Affector aff,
Cell cell)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeExpAffectors
public void removeExpAffectors()