|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cyc.tool.subl.util.SubLTrampolineFile
com.cyc.tool.subl.util.SubLTranslatedFile
com.cyc.cycjava.cycl.sbhl.sbhl_caching_policies
public final class sbhl_caching_policies
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
SubLTranslatedFile.SubL |
Fields inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
EMPTY_SUBL_OBJECT_ARRAY |
Method Summary | |
---|---|
static SubLObject |
create_sbhl_caching_policy_from_term_recommendation_list(SubLObject link_predicate,
SubLObject policy_type,
SubLObject capacity,
SubLObject term_list,
SubLObject exempt,
SubLObject prefetch)
Given a list of terms and some of the basic information for a caching policy, construct one that will meet the structural requirements of the sbhl caching policy description. |
static SubLObject |
declare_sbhl_caching_policies_file()
|
void |
declareFunctions()
Declares the mapping between functions and symbols for all named functions defined in the file. |
static SubLObject |
enforce_standard_kb_sbhl_caching_policies(SubLObject dump_directory)
Attempt to load a standard KB sbhl caching policy file from the dump directory. |
static SubLObject |
flesh_out_sbhl_caching_policy(SubLObject policy,
SubLObject capacity,
SubLObject exemptions,
SubLObject prefetch)
Interpret the arguments and see if they are sensible with respect to the policy. |
static SubLObject |
get_sbhl_caching_policy_link_predicate(SubLObject policy)
|
static SubLObject |
get_sbhl_caching_policy_terms_to_prefetch(SubLObject policy)
|
static SubLObject |
get_sbhl_caching_policy_type(SubLObject policy)
|
static SubLObject |
get_standard_kb_sbhl_caching_policies_filename(SubLObject dump_directory)
|
static SubLObject |
implement_sbhl_caching_policy(SubLObject policy)
Apply the policy to the current caching infrastructure for the SBHL module, paging in whatever needs to be loaded, in the fasion specified by the policy. |
static SubLObject |
init_sbhl_caching_policies_file()
|
void |
initializeVariables()
Initializes all global variables and private internal variables for constants defined in the file. |
static SubLObject |
load_sbhl_caching_policies(SubLObject policies_file)
Load the SBHL caching policies in the most effective way. |
static SubLObject |
new_sbhl_caching_policy(SubLObject link_predicate,
SubLObject policy_type,
SubLObject capacity,
SubLObject exemptions,
SubLObject prefetch)
|
static SubLObject |
reset_sbhl_caching_policies_internal(SubLObject policies)
Do the actual reset of the SBHL caching policies. |
static SubLObject |
reset_sbhl_caching_policy(SubLObject policy)
Implements the cache policy after having reset the existing infrastructure relevant to the policy. |
void |
runTopLevelForms()
Runs all top-level forms in order. |
static SubLObject |
seed_sbhl_module_graph_cache_with_nodes(SubLObject module,
SubLObject nodes,
SubLObject touch_p)
|
static SubLObject |
setup_sbhl_caching_policies_file()
|
Methods inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
extractFunctionNamed |
Methods inherited from class com.cyc.tool.subl.util.SubLTrampolineFile |
---|
checkType, enforceType, extractBinaryFunc, extractCount, extractEnd, extractEndUsingSize, extractPackage, extractStart, extractUnaryFunc, main |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SubLFile me
public static final java.lang.String myName
public static SubLSymbol $active_sbhl_caching_policies$
public static SubLSymbol $valid_sbhl_caching_instruction_verb$
public static SubLSymbol $valid_sbhl_caching_policy_types$
public static final SubLSymbol $sym0$_ACTIVE_SBHL_CACHING_POLICIES_
public static final SubLList $list1
public static final SubLList $list2
public static final SubLSymbol $sym3$VALID_SBHL_CACHING_POLICY_TYPE_P
public static final SubLSymbol $kw4$LINK_PREDICATE
public static final SubLSymbol $kw5$POLICY
public static final SubLSymbol $kw6$UNKNOWN
public static final SubLSymbol $kw7$STICKY
public static final SubLSymbol $kw8$UNDEFINED
public static final SubLString $str9$Sticky_policy_does_not_support_ca
public static final SubLSymbol $kw10$CAPACITY
public static final SubLSymbol $kw11$ALL
public static final SubLString $str12$Invalid_exemption_specification__
public static final SubLSymbol $kw13$EXEMPT
public static final SubLSymbol $sym14$FORT_P
public static final SubLString $str15$Invalid_prefetch_specification__A
public static final SubLSymbol $kw16$PREFETCH
public static final SubLSymbol $kw17$SWAPOUT
public static final SubLString $str18$Swapout_policy_does_not_support_c
public static final SubLString $str19$Invalid_exemption_specification__
public static final SubLString $str20$Invalid_prefetch_specification__A
public static final SubLString $str21$Unknown_policy_type__A_____dont_k
public static final SubLSymbol $kw22$DONT_CACHE
public static final SubLSymbol $kw23$TOUCH
public static final SubLString $str24$Caching_policy_of_type__A_not_yet
public static final SubLSymbol $sym25$LIST_OF_FORT_P
public static final SubLSymbol $kw26$RESET
public static final SubLSymbol $kw27$ENFORCED
public static final SubLSymbol $sym28$CATCH_ERROR_MESSAGE_HANDLER
public static final SubLString $str29$__Skipping_invalid_SBHL_caching_p
public static final SubLString $str30$standard_kb_sbhl_caching_policies
public static final SubLSymbol $sym31$VALID_FORT_
public static final SubLInteger $int32$30
public static final SubLSymbol $kw33$READY
public static final SubLSymbol $kw34$DONE
public static final SubLList $list35
public static final SubLList $list36
public static final SubLObject $const37$genls
public static final SubLObject $const38$genlInverse
public static final SubLSymbol $sym39$_
public static final SubLSymbol $sym40$GENERALITY_ESTIMATE_
public static final SubLObject $const41$genlPreds
public static final SubLObject $const42$genlMt
public static final SubLList $list43
Method Detail |
---|
public static final SubLObject new_sbhl_caching_policy(SubLObject link_predicate, SubLObject policy_type, SubLObject capacity, SubLObject exemptions, SubLObject prefetch)
public static final SubLObject flesh_out_sbhl_caching_policy(SubLObject policy, SubLObject capacity, SubLObject exemptions, SubLObject prefetch)
public static final SubLObject get_sbhl_caching_policy_link_predicate(SubLObject policy)
public static final SubLObject get_sbhl_caching_policy_type(SubLObject policy)
public static final SubLObject get_sbhl_caching_policy_terms_to_prefetch(SubLObject policy)
public static final SubLObject reset_sbhl_caching_policy(SubLObject policy)
public static final SubLObject implement_sbhl_caching_policy(SubLObject policy)
public static final SubLObject seed_sbhl_module_graph_cache_with_nodes(SubLObject module, SubLObject nodes, SubLObject touch_p)
nodes
- LIST-OF-TYPE-P FORT-P or :allpublic static final SubLObject create_sbhl_caching_policy_from_term_recommendation_list(SubLObject link_predicate, SubLObject policy_type, SubLObject capacity, SubLObject term_list, SubLObject exempt, SubLObject prefetch)
exempt
- the first N of the term list to exempt from cachingprefetch
- the first N AFTER the exempt of the term list to prefetch
public static final SubLObject reset_sbhl_caching_policies_internal(SubLObject policies)
public static final SubLObject enforce_standard_kb_sbhl_caching_policies(SubLObject dump_directory)
public static final SubLObject load_sbhl_caching_policies(SubLObject policies_file)
public static final SubLObject get_standard_kb_sbhl_caching_policies_filename(SubLObject dump_directory)
public static final SubLObject declare_sbhl_caching_policies_file()
public static final SubLObject init_sbhl_caching_policies_file()
public static final SubLObject setup_sbhl_caching_policies_file()
public void declareFunctions()
SubLFile
public void initializeVariables()
SubLFile
public void runTopLevelForms()
SubLFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |