|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.structure.AbstractNode
org.joone.structure.InputNode
public class InputNode
An input node. An input node does not have any other nodes firing into it and does not do any internal calculations. It simply passes on its own internal input value. This class allows for the setting, rather than calculation, of that internal value.
Field Summary |
---|
Fields inherited from class org.joone.structure.AbstractNode |
---|
connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction |
Constructor Summary | |
---|---|
InputNode()
|
Method Summary | |
---|---|
double |
getOutputValue(int pattern)
Retrieve the output value, which is Double.NaN if there is a pattern number mismatch |
void |
setInputValue(int pattern,
double inputValue)
Set the node's current value |
Methods inherited from class org.joone.structure.AbstractNode |
---|
calculateOrder, getConnections, getDerivative, getInputValue, getOrder, getTreeNode, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputNode()
Method Detail |
---|
public void setInputValue(int pattern, double inputValue)
public double getOutputValue(int pattern)
getOutputValue
in interface Node
getOutputValue
in class AbstractNode
pattern
- the pattern number, 1 for the first pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |