On Mar 6, 7:29 am, Scott Cytacki <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-06 at 00:48 -0800, Jerry Cheung wrote: > > What I can't find is where the VLE or Authoring frame is started. I'm > > also don't know when the beans within the Pods are actually accessed. > > Originally I thought that a curnit would be completely unmarshalled > > into PAS bean objects before being handed to the the authoring and > > learner applications. However, is it correct to say that the VLE and > > PAR expect Curnit objects (or creates a Curnit object from a given > > URL), and manipulates the beans within their own Pod contexts? > > Look at PasProject for the PLR frame. The PasProject is the bean in the > root pod of the curnit. It adds a session listener in the > consumeServices call. And on the sessionStarted event it shows the > frame. Another example of a "root pod bean" is in the sail-otrunk > project: SailOTViewer. This uses the same approach of a sessionListener > to get started.
Adding to Scott's advice, you can also take a look at two very "root" beans in the "examples" package of SAIL Core. http://www.encorewiki.org/display/encore/Creating+SAIL+activities+without+Pas Originally you thought that the curnit is completely unmarshalled before being an authoring or learning session. What do you think now? Because you had it right. Try stepping through the previewer classes, such as EMFLauncher2 that Scott suggested. You'll see that the curnit is downloaded, then each marshalled pod is pulled up, then they're all unmarshalled into Pod containers (subclasses of BeanContext). One pod is the root pod of the Curnit object. Then curnit.assemble() goes through its tree of pods and runs all the assembly directives in the pods to bind the beans together across pods. Then you have a tree of pods with beans that are interlinked. And that's the live curnit that can run in the PLR or be mutated by the PAR. I thought there was a page on this somewhere in the wiki, but it's faster to rewrite it than to find it and I have to run to class. -Turadg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SAIL-Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SAIL-Dev?hl=en -~----------~----~----~----~------~----~------~--~---
