org.micropsi.nodenet
Class DissociatorNode

java.lang.Object
  extended byorg.micropsi.nodenet.NetEntity
      extended byorg.micropsi.nodenet.Node
          extended byorg.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.


Field Summary
 
Fields inherited from class org.micropsi.nodenet.Node
genericLinks, genSlot
 
Fields inherited from class org.micropsi.nodenet.NetEntity
entityManager, gates, slots
 
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
 
Fields inherited from interface org.micropsi.nodenet.NetIntegrityIF
BAD_KEY, BAD_LINK, BAD_OUTPUT_FUNCTION, BAD_SLOT, DUPLICATE_KEY, UNKNOWN_ENTITY, UNKNOWN_MODULE
 
Constructor Summary
protected DissociatorNode(java.lang.String nodeID, NetEntityManager manager)
           
 
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.Node
calculateGates, getEntityType, getGenActivation, getType, propagateActivation
 
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
 

Constructor Detail

DissociatorNode

protected DissociatorNode(java.lang.String nodeID,
                          NetEntityManager manager)
See Also:
NetEntity.NetEntity(String, NetEntityManager)
Method Detail

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 from
target - the node to be linked
dissoActivation - the activation of the dissociator node
dissoWeight - 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

(c) by Micropsi Project: http://www.cognitive-agents.org

.