public class LinkConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADDNEGATIVE
Defines add negative concepts to the link
|
static java.lang.String |
ALWAYSFULL
Defines always add full search count
|
static java.lang.String |
BORROW
Defines the borrow memory method
|
static java.lang.String |
COMPARISON
Defines the comparison operator included
|
static java.lang.String |
FILTER
Defines filter individual links before using
|
static java.lang.String |
FULLIFANSWER
Defines add full search count if it provides an answer
|
static java.lang.String |
INDIVIDUAL
Defines update individual links if no full answer
|
static java.lang.String |
LEARN
Defines the weight learning algorithm
|
static java.lang.String |
LINKFULL
Defines a link with full search
|
static java.lang.String |
LINKONLY
Defines a link only search
|
static java.lang.String |
LOCALVIEW
Defines local view only
|
static java.lang.String |
MEMORY
Defines the memory limit method
|
static java.lang.String |
NEVERFULL
Defines never add full search count
|
static java.lang.String |
REASON
Defines reasoning query
|
static java.lang.String |
RESERVE
Defines to include a reserve slot for each branch
|
static java.lang.String |
STATS
Defines calculate stats for the process
|
static java.lang.String |
VIEW
Defines create network view
|
Constructor and Description |
---|
LinkConfig()
Creates a new instance of LinkConfig
|
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList |
activationFunctions()
Get a list of the default activation functions.
|
static java.lang.String |
addLinkMethod(java.lang.String currentLinkConfig,
java.lang.String linkMethod)
Return true if parameter is a valid link method.
|
static boolean |
addNegative(java.lang.String linkMethod)
Return true if link configuration indicates to add negative concepts to the links.
|
static boolean |
alwaysFull(java.lang.String linkMethod)
Return true if always add full search count.
|
static boolean |
canBorrow(java.lang.String linkMethod)
Return true if link configuration indicates can borrow memory.
|
static boolean |
canLearn(java.lang.String linkMethod)
Return true if link configuration indicates can learn.
|
static boolean |
createView(java.lang.String linkMethod)
Return true if network should create a view.
|
static boolean |
filter(java.lang.String linkMethod)
Return true if link configuration indicates to filter individual links.
|
static java.lang.String |
fixLinkMethod(java.lang.String linkMethod)
Make sure the link specification has the appropriate start and end characters.
|
static boolean |
fullIfAnswer(java.lang.String linkMethod)
Return true if add full search count only if it returns an answer.
|
static java.util.ArrayList |
getLinkMethods()
Return a list of all legal linking methods.
|
static boolean |
includeComparison(java.lang.String linkMethod)
Return true if comparison operator is included in linking.
|
static boolean |
includeReserve(java.lang.String linkMethod)
Return true if link configuration indicates can borrow memory.
|
static boolean |
isFullSearch(java.lang.String linkMethod)
Return true if any full search is indicated.
|
static boolean |
isLinkFull(java.lang.String linkMethod)
Return true if link with full search method used.
|
static boolean |
isLinkMethod(java.lang.String linkMethod)
Return true if parameter is a valid link method.
|
static boolean |
isLinkOnly(java.lang.String linkMethod)
Return true if link only search method used.
|
static boolean |
isLinkSearch(java.lang.String linkMethod)
Return true if any linked search is indicated.
|
static boolean |
isReasoning(java.lang.String linkMethod)
Return true if link configuration indicates reasoning queries as well.
|
static boolean |
limitMemory(java.lang.String linkMethod)
Return true if amount of memory is limited.
|
static boolean |
localViewOnly(java.lang.String linkMethod)
Return true if network should store all view components locally only.
|
static boolean |
neverFull(java.lang.String linkMethod)
Return true if never add full search count.
|
static boolean |
stats(java.lang.String linkMethod)
Return true if link configuration indicates to calculate stats.
|
static boolean |
updateIndividual(java.lang.String linkMethod)
Return true if link configuration indicates to update individual links.
|
static java.lang.String |
zzz_getLinkerClass(java.lang.String linkMethod)
Return the linker class that most closely matches the linking method.
|
public static final java.lang.String LINKONLY
public static final java.lang.String LINKFULL
public static final java.lang.String COMPARISON
public static final java.lang.String MEMORY
public static final java.lang.String LEARN
public static final java.lang.String BORROW
public static final java.lang.String RESERVE
public static final java.lang.String INDIVIDUAL
public static final java.lang.String FILTER
public static final java.lang.String ADDNEGATIVE
public static final java.lang.String VIEW
public static final java.lang.String LOCALVIEW
public static final java.lang.String ALWAYSFULL
public static final java.lang.String FULLIFANSWER
public static final java.lang.String NEVERFULL
public static final java.lang.String REASON
public static final java.lang.String STATS
public static boolean isLinkMethod(java.lang.String linkMethod) throws java.lang.Exception
linkMethod
- the link method.java.lang.Exception
- any error.public static java.util.ArrayList getLinkMethods()
public static java.util.ArrayList activationFunctions()
public static boolean isFullSearch(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean isLinkSearch(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean isLinkOnly(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean isLinkFull(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static java.lang.String addLinkMethod(java.lang.String currentLinkConfig, java.lang.String linkMethod) throws java.lang.Exception
currentLinkConfig
- the current link configuration, null if no config yet.linkMethod
- the new link method to add.java.lang.Exception
- any error.public static java.lang.String fixLinkMethod(java.lang.String linkMethod)
linkMethod
- the current link specification.public static boolean createView(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean localViewOnly(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean alwaysFull(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean fullIfAnswer(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean neverFull(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean includeComparison(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean limitMemory(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean canLearn(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean canBorrow(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean includeReserve(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean updateIndividual(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean filter(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean addNegative(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean isReasoning(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static boolean stats(java.lang.String linkMethod)
linkMethod
- a string description of the link method.public static java.lang.String zzz_getLinkerClass(java.lang.String linkMethod)
linkMethod
- a string description of the link method.