From: Christoph F. <cf...@fo...> - 2004-10-14 09:12:38
|
Hi Grace Am Mi, den 13.10.2004 schrieb Wang, Dandan um 23:01: > Hi christoph, > (can you send to me alone) I would prefer to communicate in the future over the list, since - who knows - all this may be of interest for any other user as well. > After adding the panckoucke-0.3.1.jar to my classpath. > i am trying to run the program---ExampleOpenTopicMap with Eclipse, can > you tell me what 's the exact output of this program? I am not sure > about the output. PLEASE give some suggestion.. > Here I added the xtm.file path in the Main method like this.. > public static void main(String[] args) { > try { > // start the example > if (args.length < 1) { > System.out.println("Please supply the path to an > xtm-file as the first paramter"); > > } > new ExampleOpenTopicMap("E:\\My > program\\tmnav-0.2.8_1-bin\\tmnav-0.2.8_1-bin\\doc\\samples\\tmnav.xtm"); > // wait until loading is done > > And it gives the output like: > > > Please supply the path to an xtm-file as the first paramter comes from main() > > [panckoucke] DEBUG: PanckouckeStore initialized on Wed Oct 13 16:35:46 > EDT 2004 Panckoucke initialized the store. This is, as indicated, debug output and mainly important in the context of panckoucke development. > > PANCKOUCKE (Panckoucke 0.3.1(alpha)): could not open properties-file > panckoucke.properties. Running with default-Configuration Panckoucke does not find a custom configuration and uses the default one. > > [panckoucke] DEBUG: NotificationDispatcher initialized. > Debug output. > Current State of topicmap: null(StoreState (pending)) > This is the state of the topicmap reference immediately after you received it from your call to StoreManager.loadTopicmap(...) Panckoucke loads topicmaps asynchroniously. StoreManager.loadTopicmap(...) puts your demand to load a topicmap into a queue from which it is fetched and processed somewhere in the future. While beeing processed (being loaded, merged, closed), the topicmap reference runs through several states. Switching from one state to the next triggers a TM_STATE_CHANGED event. A panckoucke NotificationListener can catch this event and react as appropriate. In the ExampleOpenTopicmap-Class catching a TM_STATE_CHANGE-Event leads to some system-outs. > [panckoucke] INFO : Map Loader Thread will add Topicmap from E:\My > program\tmnav-0.2.8_1-bin\tmnav-0.2.8_1-bin\doc\samples\tmnav.xtm > Your demand to open a topicmap is fetched from the queue and will be processed now. > Changed state > > from: StoreState (pending) > > to: StoreState (opening) > > for Topicmap: TopicMapRreferenceImpl: {State: StoreState (opening), > Topicmap: null, ProviderReference: > org.tm4j.panckoucke.impl.store.ProviderReferenceImpl@21b6d, > BaseLocator: null, Source: E:\My > program\tmnav-0.2.8_1-bin\tmnav-0.2.8_1-bin\doc\samples\tmnav.xtm} > The state of the topicmap reference changed from pending(waiting in the queue to be processed) to opening which means that tm4js xtm or ltm-parser are doing their work currently > Cannot find CatalogManager.properties > comes from tm4j. Can be ignored safely. > Changed state > > from: StoreState (opening) > > to: StoreState (accessible) > > for Topicmap: TopicMapRreferenceImpl: {State: StoreState (accessible), > Topicmap: org.tm4j.topicmap.memory.TopicMapImpl@90a286b0, > ProviderReference: > org.tm4j.panckoucke.impl.store.ProviderReferenceImpl@21b6d, > BaseLocator: file:/E:/My > program/tmnav-0.2.8_1-bin/tmnav-0.2.8_1-bin/doc/samples/tmnav.xtm, > Source: E:\My > program\tmnav-0.2.8_1-bin\tmnav-0.2.8_1-bin\doc\samples\tmnav.xtm} > The state changed from opening to accessible, which means that it is now legal to access the topicmap through this topicmap reference. If tm4j would have failed for any reason to load the topicmap the state would have changed to "corrupt" > T [x1k5moq5l2-0] > > T [x1k5moq5l2-7] > > T [x1k5moq5l2-9] > > T [x1k5moq5l2-12] > > T [x1k5moq5l2-b] > > T [x1k5moq5l2-e] > > TMNav > > T [x1k5moq5l2-14] > > T [x1k5moq5l2-c] > > T [x1k5moq5l2-11] > > T [x1k5moq5l2-10] > > T [x1k5moq5l2-3] > > T [x1k5moq5l2-5] > This is a listing of all topics that are part of the previously loaded topicmap. It is produced by the example Abstractor/Renderer-Code. Strictly speaking, this is not related to open topicmaps but to "how does the abstraction / renderer process works" Bye c > Grace > > > ______________________________________________________________________ > From: Christoph Froehlich [mailto:cf...@fo...] > Sent: Tue 10/12/2004 11:43 AM > To: Wang, Dandan > Cc: tm4...@li... > Subject: Re: [TM4J-users] can not find org.tm4j.panckoucke.* library > > > > Hi Grace > > you need to add panckoucke-0.3.1.jar to your classpath. > The jar is located in the base-directory of the binary distribution > > > Hope that helps > c > > > -- Christoph Froehlich <cf...@fo...> |