|
||||||||||
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_graphs
public final class sbhl_graphs
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 |
cache_capacity_for_cache_strategy_for_sbhl_module(SubLObject sbhl_module)
Compute the cache capacity as a percentage of the known size of the SBHL module graph, but clamp it to the minimum from below. |
static SubLObject |
declare_sbhl_graphs_file()
|
void |
declareFunctions()
Declares the mapping between functions and symbols for all named functions defined in the file. |
static SubLObject |
get_cache_strategy_for_sbhl_module(SubLObject sbhl_module)
Either fetch or allocate the CACHE-STRATEGY-P for the SBHL module provided. |
static SubLObject |
get_sbhl_graph_link_from_graph(SubLObject node,
SubLObject graph,
SubLObject v_cache)
Get the graph link from the graph, potentially swapping it in from the file vector backing. |
static SubLObject |
get_sbhl_graph_link(SubLObject node,
SubLObject module)
Accessor: @return direction-link-p; the sbhl-direction-link structure for NODE within graph corresponding to PRED. |
static SubLObject |
init_sbhl_graphs_file()
|
static SubLObject |
initialize_sbhl_graph_caches_during_load_kb(SubLObject data_file,
SubLObject index_file)
This is called by the load KB command after swapping in the references. |
static SubLObject |
initialize_sbhl_graph_caches_file_vector(SubLObject data_file,
SubLObject index_file)
|
static SubLObject |
initialize_sbhl_graph_caches()
|
void |
initializeVariables()
Initializes all global variables and private internal variables for constants defined in the file. |
static SubLObject |
make_new_sbhl_graph()
|
static SubLObject |
new_cache_strategy_for_sbhl_module(SubLObject sbhl_module,
SubLObject capacity)
Allocate the cache strategy object for the SBHL graph file vector. |
static SubLObject |
put_sbhl_graph_link_into_graph(SubLObject node,
SubLObject graph,
SubLObject v_cache,
SubLObject value)
Modify the graph in such a fashion that the file vector backed map can track the modification. |
static SubLObject |
remove_sbhl_graph_link_from_graph(SubLObject node,
SubLObject graph,
SubLObject v_cache)
Remove that node from the graph, with potential modifications that can be tracked by the file vector backing infrastructure. |
static SubLObject |
remove_sbhl_graph_link(SubLObject node,
SubLObject module)
Modifier: performs (remhash NODE graph) on graph determined by MODULE / *sbhl-module* |
void |
runTopLevelForms()
Runs all top-level forms in order. |
static SubLObject |
set_cache_strategy_for_sbhl_module(SubLObject sbhl_module,
SubLObject cache_strategy)
|
static SubLObject |
set_sbhl_graph_link(SubLObject node,
SubLObject direction_link,
SubLObject module)
Modifier: Sets the value corresonding to NODE in graph determined by MODULE / *sbhl-module* to DIRECTION-LINK, if it is an @see sbhl-direction-link-p. |
static SubLObject |
setup_sbhl_graphs_file()
|
static SubLObject |
swap_out_all_pristine_graph_links(SubLObject module)
|
static SubLObject |
swap_out_all_pristine_sbhl_module_graph_links()
|
static SubLObject |
touch_sbhl_graph_link(SubLObject node,
SubLObject direction_link,
SubLObject module)
Modifier: Notifies the SBHL swapping infrastructure that the NODE has been modified and that the swapping mechanism needs to treat this as mutated. |
static SubLObject |
touch_sbhl_link_graph(SubLObject node,
SubLObject graph,
SubLObject v_cache)
Inform the file vector backing infrastructure that the entry for the node in the graph is mutated. |
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 $sbhl_backing_file_vector$
public static SubLSymbol $sbhl_backing_file_vector_caches_for_modules$
public static SubLSymbol $sbhl_backing_file_vector_cache_size_percentage$
public static SubLSymbol $sbhl_backing_file_vector_cache_minimum_size$
public static SubLSymbol $sbhl_backing_file_vector_cache_gather_cache_metricsP$
public static SubLSymbol $sbhl_file_vector_data_stream_lock$
public static SubLSymbol $sbhl_backing_file_vector_cache_constructor$
public static SubLSymbol $default_number_of_concurrent_readers$
public static SubLSymbol $default_number_of_terms_checked$
public static final SubLSymbol $sym0$_SBHL_BACKING_FILE_VECTOR_
public static final SubLSymbol $sym1$_SBHL_BACKING_FILE_VECTOR_CACHES_FOR_MODULES_
public static final SubLInteger $int2$100
public static final SubLSymbol $sym3$_SBHL_FILE_VECTOR_DATA_STREAM_LOCK_
public static final SubLString $str4$SBHL_File_Vector_Data_Stream_lock
public static final SubLSymbol $sym5$NEW_METERED_PREALLOCATED_CACHE
public static final SubLString $str6$sbhl_module_graphs
public static final SubLString $str7$cfasl
public static final SubLString $str8$sbhl_module_graphs_index
public static final SubLSymbol $kw9$INITIALIZED
public static final SubLSymbol $kw10$UNINITIALIZED
public static final SubLSymbol $sym11$CACHE_STRATEGY_OR_SYMBOL_P
public static final SubLSymbol $sym12$SBHL_MODULE_P
public static final SubLSymbol $kw13$ERROR
public static final SubLString $str14$_A_is_not_a__A
public static final SubLSymbol $sym15$SBHL_DIRECTION_LINK_P
public static final SubLSymbol $kw16$CERROR
public static final SubLString $str17$continue_anyway
public static final SubLSymbol $kw18$WARN
public static final SubLString $str19$_A_is_not_a_valid__sbhl_type_erro
public static final SubLSymbol $sym20$SBHL_NODE_OBJECT_P
public static final SubLList $list21
public static final SubLList $list22
public static final SubLSymbol $kw23$ALLOW_OTHER_KEYS
public static final SubLSymbol $kw24$MODULE
public static final SubLSymbol $kw25$DONE
public static final SubLSymbol $sym26$MAP
public static final SubLSymbol $sym27$WITH_CFASL_COMMON_SYMBOLS_SIMPLE
public static final SubLList $list28
public static final SubLSymbol $sym29$CLET
public static final SubLSymbol $sym30$GET_SBHL_GRAPH
public static final SubLSymbol $sym31$DO_FILE_VECTOR_BACKED_MAP
public static final SubLList $list32
public static final SubLString $str33$Capacity______Hits____Misses__Sma
public static final SubLString $str34$_________________________________
public static final SubLSymbol $sym35$FORT__
public static final SubLString $str36$___A
public static final SubLList $list37
public static final SubLString $str38$_6_A__9_A__9_A__
public static final SubLString $str39$___
public static final SubLString $str40$_6_d__9_d__9_d_____A__
public static final SubLString $str41$___
public static final SubLString $str42$
public static final SubLInteger $int43$500
public static final SubLString $str44$Concurrent_Reads_Stress_Test_Prob
public static final SubLString $str45$Concurrent_SBHL_Reader_
public static final SubLSymbol $sym46$STRESS_TEST_READ_RANDOMLY_FROM_SBHL
public static final SubLFloat $float47$0_1
public static final SubLSymbol $sym48$VALID_PROCESS_P
public static final SubLSymbol $sym49$CATCH_ERROR_MESSAGE_HANDLER
public static final SubLObject $const50$Individual
public static final SubLString $str51$Concurrent_Cache_Strategy_Stress_
public static final SubLList $list52
public static final SubLSymbol $sym53$STRESS_TEST_CHECK_SAME_SPECS
public static final SubLObject $const54$InferencePSC
Method Detail |
---|
public static final SubLObject make_new_sbhl_graph()
public static final SubLObject initialize_sbhl_graph_caches_during_load_kb(SubLObject data_file, SubLObject index_file)
public static final SubLObject initialize_sbhl_graph_caches_file_vector(SubLObject data_file, SubLObject index_file)
public static final SubLObject initialize_sbhl_graph_caches()
public static final SubLObject new_cache_strategy_for_sbhl_module(SubLObject sbhl_module, SubLObject capacity)
public static final SubLObject get_cache_strategy_for_sbhl_module(SubLObject sbhl_module)
public static final SubLObject set_cache_strategy_for_sbhl_module(SubLObject sbhl_module, SubLObject cache_strategy)
public static final SubLObject cache_capacity_for_cache_strategy_for_sbhl_module(SubLObject sbhl_module)
public static final SubLObject get_sbhl_graph_link_from_graph(SubLObject node, SubLObject graph, SubLObject v_cache)
public static final SubLObject put_sbhl_graph_link_into_graph(SubLObject node, SubLObject graph, SubLObject v_cache, SubLObject value)
public static final SubLObject remove_sbhl_graph_link_from_graph(SubLObject node, SubLObject graph, SubLObject v_cache)
public static final SubLObject touch_sbhl_link_graph(SubLObject node, SubLObject graph, SubLObject v_cache)
public static final SubLObject get_sbhl_graph_link(SubLObject node, SubLObject module)
public static final SubLObject set_sbhl_graph_link(SubLObject node, SubLObject direction_link, SubLObject module)
public static final SubLObject touch_sbhl_graph_link(SubLObject node, SubLObject direction_link, SubLObject module)
public static final SubLObject remove_sbhl_graph_link(SubLObject node, SubLObject module)
public static final SubLObject swap_out_all_pristine_graph_links(SubLObject module)
public static final SubLObject swap_out_all_pristine_sbhl_module_graph_links()
public static final SubLObject declare_sbhl_graphs_file()
public static final SubLObject init_sbhl_graphs_file()
public static final SubLObject setup_sbhl_graphs_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 |