ORBIT-USER: Question regarding sample tutorial in integrating our own application with nodehandler

Max Ott max at semandex.net
Wed Jan 10 13:01:30 EST 2007


Nothing.

This is old debugging code and can be safely ignored.

-max

On 1/10/07, Arinto Murdopo <arinto at gmail.com> wrote:
> Dear All
>
> I have question regarding to the tutorial in integrating our own application
> with nodehandler from this link
> http://www.orbit-lab.org/wiki/HowTo/LaunchApp
>
> What does this following code do? Does these following lines of code write
> the application's properties to xml file? What the importance of these
> following lines of code in overall application?
> if $0 == __FILE__
>  require 'stringio'
>  require 'rexml/document'
>  include REXML
>
>  sio = StringIO.new()
>  a.to_xml.write(sio, 2)
>  sio.rewind
>  puts sio.read
>
>  sio.rewind
>
>  doc = Document.new(sio)
>  t = AppDefinition.from_xml(doc.root)
>
>  puts
>  puts "-------------------------"
>  puts
>  t.to_xml.write($stdout, 2)
>
> end
>
>
>
> Regards,
>
>
> Arinto
>
>
>
>
>


-- 
Dr. Max Ott
Research Program Leader - Network and Pervasive Computing, NICTA Australia
Founder & CTO, Semandex Networks
Research Professor, WINLAB, Rutgers University
Senior Visiting Fellow, School of EE&T, UNSW



More information about the orbit-user mailing list