org.jactr.core.chunk.four
Class Link

java.lang.Object
  extended by org.jactr.core.chunk.four.Link

public class Link
extends java.lang.Object

A Link represents a subsymbolic associative link between two chunks J and I. Spreading activation propogates from J to I. There are two ways to create a Link: 1) From Chunkj to Chunki when one of Chunkj's slots contains Chunki 2) From Chunkj to Chunki when Chunkj is in the goal buffer and Chunki has been positively matched within any other buffer

Author:
harrison

Field Summary
 int _count
          Description of the Field
 double _fnicj
          Description of the Field
 IChunk _iChunk
          Description of the Field
 IChunk _jChunk
          Description of the Field
 double _rStrength
          Description of the Field
 double _strength
          Description of the Field
 double _timeStamp
          Description of the Field
 
Constructor Summary
Link(IChunk j, IChunk i)
          The j chunk should contain the I chunk as a slot value.
Link(IChunk j, IChunk i, int count, double strength)
          Constructor for the Link object
Link(IChunk newJ, Link link)
          used for copying the values from an existing link when a copy of j is made
 
Method Summary
 int decrement()
          decrement the count number of links this Link represents.
 int getCount()
          A link can actually represent multiple links between two chunks.
 double getFNICJ()
          Gets the fNICJ attribute of the Link object
 IChunk getIChunk()
          Return the contained chunk
 IChunk getJChunk()
          Return the containing chunk
 double getRStrength()
          Returns the R strength which is the prelog transformed strength value
 double getStrength()
          return the log transformed strength.
 void increment()
          increment the count number of links this Link represents
 void incrementFNICJ()
          Description of the Method
static void resetAllLinks(IModel m)
          Reset all the Link strengths in a given model.
 void resetStrength()
          Description of the Method
 void setCount(int count)
          Sets the count attribute of the Link object
 void setStrength(double s)
          Set the log transformed strength ? if strength learning is enabled in the model, the strength value will not remain fixed.
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_jChunk

public IChunk _jChunk
Description of the Field


_iChunk

public IChunk _iChunk
Description of the Field


_count

public int _count
Description of the Field


_rStrength

public double _rStrength
Description of the Field


_strength

public double _strength
Description of the Field


_fnicj

public double _fnicj
Description of the Field


_timeStamp

public double _timeStamp
Description of the Field

Constructor Detail

Link

public Link(IChunk j,
            IChunk i)
The j chunk should contain the I chunk as a slot value.

Parameters:
j - Description of the Parameter
i - Description of the Parameter

Link

public Link(IChunk j,
            IChunk i,
            int count,
            double strength)
Constructor for the Link object

Parameters:
j - Description of the Parameter
i - Description of the Parameter
count - Description of the Parameter
strength - Description of the Parameter

Link

public Link(IChunk newJ,
            Link link)
used for copying the values from an existing link when a copy of j is made

Parameters:
j -
i -
link -
Method Detail

getJChunk

public IChunk getJChunk()
Return the containing chunk

Returns:
The jChunk value

getIChunk

public IChunk getIChunk()
Return the contained chunk

Returns:
The iChunk value

getCount

public int getCount()
A link can actually represent multiple links between two chunks. This value represents the number of links this one actually is.

Returns:
The count value

getFNICJ

public double getFNICJ()
Gets the fNICJ attribute of the Link object

Returns:
The fNICJ value

incrementFNICJ

public void incrementFNICJ()
Description of the Method


getRStrength

public double getRStrength()
Returns the R strength which is the prelog transformed strength value

Returns:
The rStrength value

getStrength

public double getStrength()
return the log transformed strength.

Returns:
The strength value

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

setStrength

public void setStrength(double s)
Set the log transformed strength ? if strength learning is enabled in the model, the strength value will not remain fixed.

Parameters:
s - The new strength value

setCount

public void setCount(int count)
Sets the count attribute of the Link object

Parameters:
count - The new count value

increment

public void increment()
increment the count number of links this Link represents


decrement

public int decrement()
decrement the count number of links this Link represents.

Returns:
Description of the Return Value

resetStrength

public void resetStrength()
Description of the Method


resetAllLinks

public static void resetAllLinks(IModel m)
Reset all the Link strengths in a given model.

Parameters:
m - Description of the Parameter