public class Link4 extends AbstractAssociativeLink
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COUNT_PARAM |
static java.lang.String |
FNICJ_PARAM |
STRENGTH_PARAM
Constructor and Description |
---|
Link4(IChunk j,
IChunk i)
The j chunk should contain the I chunk as a slot value.
|
Link4(IChunk j,
IChunk i,
int count,
double strength)
Constructor for the Link object
|
Modifier and Type | Method and Description |
---|---|
protected void |
clean()
Description of the Method
|
protected void |
computeStrength()
Description of the Method
|
void |
copy(IAssociativeLink link)
copy the parameters from link to this, but only if they have the same i & j
|
int |
decrement()
decrement the count number of links this Link represents.
|
void |
dirty()
Description of the Method
|
IAssociativeLinkEquation |
getAssociativeLinkEquation() |
int |
getCount()
A link can actually represent multiple links between two chunks.
|
double |
getFNICJ()
Gets the fNICJ attribute of the Link object
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read
|
double |
getRStrength()
Returns the R strength which is the prelog transformed strength value
|
double |
getStrength()
strength of the association
|
double |
getStrength(boolean recompute) |
void |
increment()
increment the count number of links this Link represents
|
void |
incrementFNICJ()
Description of the Method
|
boolean |
isDirty()
Gets the dirty attribute of the Link object
current will recalculate only once per cycle.
|
void |
setAssociativeLinkEquation(IAssociativeLinkEquation equation) |
void |
setCount(int count)
Sets the count attribute of the Link object
|
void |
setFNICJ(double FNiCj) |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter
|
void |
setRStrength(double r) |
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
|
getIChunk, getJChunk, getSetableParameters
public static final java.lang.String COUNT_PARAM
public static final java.lang.String FNICJ_PARAM
public void setAssociativeLinkEquation(IAssociativeLinkEquation equation)
public IAssociativeLinkEquation getAssociativeLinkEquation()
public int getCount()
public double getFNICJ()
public void incrementFNICJ()
public void setFNICJ(double FNiCj)
public double getRStrength()
public void setRStrength(double r)
public double getStrength()
IAssociativeLink
getStrength
in interface IAssociativeLink
getStrength
in class AbstractAssociativeLink
public double getStrength(boolean recompute)
public java.lang.String toString()
toString
in class java.lang.Object
public void setStrength(double s)
setStrength
in class AbstractAssociativeLink
s
- The new strength valuepublic void setCount(int count)
count
- The new count valuepublic void increment()
public int decrement()
protected void computeStrength()
public boolean isDirty()
public void dirty()
protected void clean()
public void copy(IAssociativeLink link) throws java.lang.IllegalArgumentException
IAssociativeLink
copy
in interface IAssociativeLink
copy
in class AbstractAssociativeLink
java.lang.IllegalArgumentException
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
getPossibleParameters
in class AbstractAssociativeLink
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
getParameter
in class AbstractAssociativeLink
key
- Description of the Parameterpublic void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
setParameter
in class AbstractAssociativeLink