public class InputNode extends Node<InputNode,InputNode.InputActivation>
InputNode class is the input layer for the boolean logic. The input-node has two sources of
activations. First, it might be underlying logic node of an InputNeuron in which case the input
activations come from the outside. The second option is that the activation come from the output of another neuron.| Modifier and Type | Class and Description |
|---|---|
static class |
InputNode.InputActivation |
static class |
InputNode.Link |
Node.ThreadState<T extends Node,A extends NodeActivation>| Modifier and Type | Field and Description |
|---|---|
static Relation[] |
CANDIDATE_RELATIONS |
Neuron |
inputNeuron |
TreeMap<AndNode.Refinement,AndNode.RefValue> |
nonExactAndChildren |
andChildren, extension, isDiscovered, level, lock, markedCreated, MAX_NODE, MIN_NODE, numberOfNeuronRefs, orChildren, threadslastUsedDocumentId, modified, provider| Modifier and Type | Method and Description |
|---|---|
static InputNode |
add(Model m,
INeuron input) |
void |
addActivation(Activation inputAct) |
void |
cleanup() |
void |
discover(InputNode.InputActivation act,
PatternDiscovery.Config config) |
AndNode.RefValue |
extend(int threadId,
Document doc,
AndNode.Refinement ref,
PatternDiscovery.Config patterDiscoveryConfig) |
static List<Relation> |
getRelations(Activation act1,
Activation act2) |
String |
logicToString() |
void |
propagate(InputNode.InputActivation act)
Propagate an activation to the next node or the next neuron that is depending on the current node.
|
void |
readFields(DataInput in,
Model m)
Deserialize the fields of this object from
in. |
void |
reprocessInputs(Document doc) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivation, changeNumberOfNeuronRefs, clearActivations, clearActivations, clearActivations, compareTo, getActivations, getNeuronLabel, getThreadState, isRequired, postCreate, processChanges, readNode, register, remove, toStringreactivate, read, setModified, suspendpublic Neuron inputNeuron
public TreeMap<AndNode.Refinement,AndNode.RefValue> nonExactAndChildren
public static final Relation[] CANDIDATE_RELATIONS
public InputNode()
public InputNode(Model m)
public void addActivation(Activation inputAct)
public void propagate(InputNode.InputActivation act)
AbstractNodepropagate in class AbstractNode<Provider<InputNode>,InputNode.InputActivation>public void reprocessInputs(Document doc)
reprocessInputs in class Node<InputNode,InputNode.InputActivation>public AndNode.RefValue extend(int threadId, Document doc, AndNode.Refinement ref, PatternDiscovery.Config patterDiscoveryConfig)
extend in class Node<InputNode,InputNode.InputActivation>public void discover(InputNode.InputActivation act, PatternDiscovery.Config config)
discover in class Node<InputNode,InputNode.InputActivation>public static List<Relation> getRelations(Activation act1, Activation act2)
public void cleanup()
cleanup in class Node<InputNode,InputNode.InputActivation>public String logicToString()
logicToString in class Node<InputNode,InputNode.InputActivation>public void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class Node<InputNode,InputNode.InputActivation>out - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in, Model m) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class Node<InputNode,InputNode.InputActivation>in - DataInput to deseriablize this object from.IOExceptionCopyright © 2018. All rights reserved.