Class Neuron
java.lang.Object
com.marginallyclever.ro3.node.nodes.odenode.brain.v2.Neuron
A neuron in the brain.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
addInputValue
(double inputValue) void
addOutgoingConnection
(Connection connection) void
fromJSON
(org.json.JSONObject json) int
getID()
double
double
javax.vecmath.Vector3d
void
reset()
void
setInputValue
(double inputValue) org.json.JSONObject
toJSON()
-
Constructor Details
-
Neuron
public Neuron(int id, double x, double y, double z)
-
-
Method Details
-
getPosition
public javax.vecmath.Vector3d getPosition() -
getInputValue
public double getInputValue() -
setInputValue
public void setInputValue(double inputValue) -
getOutputValue
public double getOutputValue() -
addInputValue
public void addInputValue(double inputValue) -
activate
public void activate() -
reset
public void reset() -
addOutgoingConnection
-
getOutgoingConnections
-
getID
public int getID() -
toJSON
public org.json.JSONObject toJSON() -
fromJSON
public void fromJSON(org.json.JSONObject json)
-