public class OrNode extends Node<OrNode,Activation>
| Modifier and Type | Class and Description |
|---|---|
static class |
OrNode.Link |
static class |
OrNode.OrActivation |
static class |
OrNode.OrEntry |
Node.ThreadState<T extends Node,A extends NodeActivation>| Modifier and Type | Field and Description |
|---|---|
TreeSet<OrNode.OrEntry> |
andParents |
Neuron |
neuron |
andChildren, extension, isDiscovered, level, lock, markedCreated, MAX_NODE, MIN_NODE, numberOfNeuronRefs, orChildren, threadslastUsedDocumentId, modified, provider| Modifier and Type | Method and Description |
|---|---|
void |
addInput(int[] synapseIds,
int threadId,
Node in,
boolean andMode) |
void |
addInputActivation(OrNode.OrEntry oe,
NodeActivation inputAct) |
void |
apply(Activation act) |
void |
changeNumberOfNeuronRefs(int threadId,
long v,
int d) |
void |
cleanup() |
void |
discover(Activation act,
PatternDiscovery.Config config) |
AndNode.RefValue |
extend(int threadId,
Document doc,
AndNode.Refinement ref,
PatternDiscovery.Config patterDiscovery) |
String |
getNeuronLabel() |
String |
logicToString() |
void |
processActivation(Activation act) |
static void |
processCandidate(Node<?,? extends NodeActivation<?>> parentNode,
NodeActivation inputAct,
boolean train) |
void |
propagate(Activation 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 |
removeParents(int threadId) |
void |
reprocessInputs(Document doc) |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
addActivation, clearActivations, clearActivations, clearActivations, compareTo, getActivations, getThreadState, isRequired, postCreate, processChanges, readNode, register, remove, toStringreactivate, read, setModified, suspendpublic TreeSet<OrNode.OrEntry> andParents
public Neuron neuron
public OrNode()
public OrNode(Model m)
public AndNode.RefValue extend(int threadId, Document doc, AndNode.Refinement ref, PatternDiscovery.Config patterDiscovery)
extend in class Node<OrNode,Activation>public void addInputActivation(OrNode.OrEntry oe, NodeActivation inputAct)
public void propagate(Activation act)
AbstractNodepropagate in class AbstractNode<Provider<OrNode>,Activation>public void processActivation(Activation act)
public void cleanup()
cleanup in class Node<OrNode,Activation>public void apply(Activation act)
public void discover(Activation act, PatternDiscovery.Config config)
discover in class Node<OrNode,Activation>public static void processCandidate(Node<?,? extends NodeActivation<?>> parentNode, NodeActivation inputAct, boolean train)
public void reprocessInputs(Document doc)
reprocessInputs in class Node<OrNode,Activation>public void addInput(int[] synapseIds,
int threadId,
Node in,
boolean andMode)
public void removeParents(int threadId)
public void changeNumberOfNeuronRefs(int threadId,
long v,
int d)
changeNumberOfNeuronRefs in class Node<OrNode,Activation>public String logicToString()
logicToString in class Node<OrNode,Activation>public void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class Node<OrNode,Activation>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<OrNode,Activation>in - DataInput to deseriablize this object from.IOExceptionpublic String getNeuronLabel()
getNeuronLabel in class Node<OrNode,Activation>Copyright © 2018. All rights reserved.