org.micropsi.nodenet
Class DissociatorNode
java.lang.Object
org.micropsi.nodenet.NetEntity
org.micropsi.nodenet.Node
org.micropsi.nodenet.DissociatorNode
- All Implemented Interfaces:
- GateTypesIF, NetIntegrityIF
- public class DissociatorNode
- extends Node
Complementary to the AssociatorNodes, DissociatorNodes weaken or delete Links
between all Nodes within one NodeSpace that have active Gates and the slots that
are connected to the dissociator.
| Fields inherited from interface org.micropsi.nodenet.GateTypesIF |
GT_ASSOCIATION, GT_CAT, GT_DISSOCIATION, GT_EXP, GT_GEN, GT_POR, GT_REF, GT_RET, GT_SUB, GT_SUR, GT_SYM |
|
Method Summary |
protected void |
dissociateActiveGates(NetEntity source,
NetEntity target,
int targetSlotType,
double dissoActivation,
double dissoWeight,
double dissoConst)
Dissociates all active Gates of the node with a slot of a second node.
|
void |
setSpace(NodeSpaceModule space)
Sets the space. |
protected void |
use()
Some nodes perform low-level java operations when activated.
|
| Methods inherited from class org.micropsi.nodenet.NetEntity |
addGate, addSlot, changeParameter, checkIntegrity, confirmNewActivation, createLinkTo, createLinkTo, deleteGate, deleteLink, deleteSlot, destroy, getEntityName, getFirstLinkAt, getGate, getGates, getID, getLastLinkAt, getLink, getNumberOfGates, getNumberOfSlots, getParentID, getSlot, getSlots, hasName, isActive, reportIntegrityStatus, setEntityName, setParentID, toString, unlinkCompletely, updateDecayState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DissociatorNode
protected DissociatorNode(java.lang.String nodeID,
NetEntityManager manager)
- See Also:
NetEntity.NetEntity(String, NetEntityManager)
use
protected void use()
throws NetIntegrityException
- Description copied from class:
Node
- Some nodes perform low-level java operations when activated.
(Dissociators, activators and the like.) This method is not
meant to get java functionality into the net - use NativeModules for this
purpose!
- Specified by:
use in class Node
- Throws:
NetIntegrityException - if something is wrong with the net- See Also:
Node.use()
dissociateActiveGates
protected void dissociateActiveGates(NetEntity source,
NetEntity target,
int targetSlotType,
double dissoActivation,
double dissoWeight,
double dissoConst)
throws NetIntegrityException
- Dissociates all active Gates of the node with a slot of a second node.
"Dissociate" means: existing links are weakened or removed.
- Parameters:
source - the node to link fromtarget - the node to be linkeddissoActivation - the activation of the dissociator nodedissoWeight - additional dissociator weight
- Throws:
NetIntegrityException - if one of the existing links is bad or the
target node does not exist.
setSpace
public void setSpace(NodeSpaceModule space)
- Sets the space.
- Parameters:
space - The space to set
.