public class AndNode extends Node<AndNode,AndNode.AndActivation>
InputNode and the AndNode classes together form a pattern lattice, containing all
possible substructures of any given conjunction. For example if we have the conjunction ABCD where A, B, C, D are
the inputs, then the pattern lattice will contain the nodes ABCD, ABC, ABD, ACD, BCD, AB, AC, AD, BC, BD, CD,
A, B, C, D. The pattern lattice is organized in layers, where each layer only contains conjunctions/patterns of the
same size. These layers are connected through refinements. For example the and-node
ABD on layer 3 is connected to the and-node ABCD on layer 4 via the refinement C.| Modifier and Type | Class and Description |
|---|---|
static class |
AndNode.AndActivation |
static class |
AndNode.Entry |
static class |
AndNode.Link |
static class |
AndNode.Refinement |
static class |
AndNode.RefValue |
static class |
AndNode.RelationsMap |
Node.ThreadState<T extends Node,A extends NodeActivation>| Modifier and Type | Field and Description |
|---|---|
List<AndNode.Entry> |
parents |
andChildren, extension, isDiscovered, level, lock, markedCreated, MAX_NODE, MIN_NODE, numberOfNeuronRefs, orChildren, threadslastUsedDocumentId, modified, provider| Constructor and Description |
|---|
AndNode() |
AndNode(Model m,
int level,
List<AndNode.Entry> parents) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeNumberOfNeuronRefs(int threadId,
long v,
int d) |
void |
cleanup() |
void |
discover(AndNode.AndActivation act,
PatternDiscovery.Config config) |
AndNode.RefValue |
extend(int threadId,
Document doc,
AndNode.Refinement firstRef,
PatternDiscovery.Config patterDiscoverConfig) |
String |
logicToString() |
void |
propagate(AndNode.AndActivation 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 |
remove() |
void |
reprocessInputs(Document doc) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivation, clearActivations, clearActivations, clearActivations, compareTo, getActivations, getNeuronLabel, getThreadState, isRequired, postCreate, processChanges, readNode, register, toStringreactivate, read, setModified, suspendpublic List<AndNode.Entry> parents
public AndNode()
public AndNode(Model m, int level, List<AndNode.Entry> parents)
public void propagate(AndNode.AndActivation act)
AbstractNodepropagate in class AbstractNode<Provider<AndNode>,AndNode.AndActivation>public void cleanup()
cleanup in class Node<AndNode,AndNode.AndActivation>public void discover(AndNode.AndActivation act, PatternDiscovery.Config config)
discover in class Node<AndNode,AndNode.AndActivation>public AndNode.RefValue extend(int threadId, Document doc, AndNode.Refinement firstRef, PatternDiscovery.Config patterDiscoverConfig)
extend in class Node<AndNode,AndNode.AndActivation>public void changeNumberOfNeuronRefs(int threadId,
long v,
int d)
changeNumberOfNeuronRefs in class Node<AndNode,AndNode.AndActivation>public void reprocessInputs(Document doc)
reprocessInputs in class Node<AndNode,AndNode.AndActivation>public void remove()
remove in class Node<AndNode,AndNode.AndActivation>public String logicToString()
logicToString in class Node<AndNode,AndNode.AndActivation>public void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class Node<AndNode,AndNode.AndActivation>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<AndNode,AndNode.AndActivation>in - DataInput to deseriablize this object from.IOExceptionCopyright © 2018. All rights reserved.