<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: Root</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">Root</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../files/lib/core/root_rb.html"> lib/core/root.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="diagram"> <map id="map" name="map"> <area shape="RECT" coords="15,17,87,65" href="Root.html" alt="Root "> </map> <img src="../dot/f_13.png" usemap="#map" border=0 alt="TopLevel"> </div> <div id="description"> <p> The <a href="Root.html">Root</a> class is the mother of all objects. </p> </div> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000053">add_event</a> <a href="#M000050">clone</a> <a href="#M000056">delete_object</a> <a href="#M000054">get_object</a> <a href="#M000049">inspect</a> <a href="#M000048">new</a> <a href="#M000051">parse</a> <a href="#M000055">put_object</a> <a href="#M000052">world</a> </div> </div> </div> <!-- if includes --> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> <div id="method-M000048" class="method-detail"> <a name="M000048"></a> <div class="method-heading"> <a href="Root.src/M000048.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000048.html');return false;"> <span class="method-name">new</span><span class="method-args">(name, owner)</span> </a> </div> <div class="method-description"> <p> Create a new <a href="Root.html">Root</a> </p> <dl> <dt><tt>name</tt></dt><dd>Every object needs a name </dd> <dt><tt>owner</tt></dt><dd>The owner id of this object </dd> <dt><tt>return</tt></dt><dd>A handle to the new Object </dd> </dl> </div> </div> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000053" class="method-detail"> <a name="M000053"></a> <div class="method-heading"> <a href="Root.src/M000053.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000053.html');return false;"> <span class="method-name">add_event</span><span class="method-args">(from,to,kind,msg=nil)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000050" class="method-detail"> <a name="M000050"></a> <div class="method-heading"> <a href="Root.src/M000050.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000050.html');return false;"> <span class="method-name">clone</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> Clone an object This does a deepcopy then assign a new database id </p> <dl> <dt><tt>return</tt></dt><dd>A handle to the new Object </dd> </dl> </div> </div> <div id="method-M000056" class="method-detail"> <a name="M000056"></a> <div class="method-heading"> <a href="Root.src/M000056.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000056.html');return false;"> <span class="method-name">delete_object</span><span class="method-args">(oid)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000054" class="method-detail"> <a name="M000054"></a> <div class="method-heading"> <a href="Root.src/M000054.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000054.html');return false;"> <span class="method-name">get_object</span><span class="method-args">(oid)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000049" class="method-detail"> <a name="M000049"></a> <div class="method-heading"> <a href="Root.src/M000049.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000049.html');return false;"> <span class="method-name">inspect</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> formatted dump of object properties </p> <dl> <dt><tt>return</tt></dt><dd>a string </dd> </dl> </div> </div> <div id="method-M000051" class="method-detail"> <a name="M000051"></a> <div class="method-heading"> <a href="Root.src/M000051.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000051.html');return false;"> <span class="method-name">parse</span><span class="method-args">(m)</span> </a> </div> <div class="method-description"> <p> All command input routed through here and parsed. </p> <dl> <dt><tt>m</tt></dt><dd>The input message to be parsed </dd> <dt><tt>return</tt></dt><dd>false or true depending on whether command succeeded. </dd> </dl> </div> </div> <div id="method-M000055" class="method-detail"> <a name="M000055"></a> <div class="method-heading"> <a href="Root.src/M000055.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000055.html');return false;"> <span class="method-name">put_object</span><span class="method-args">(obj)</span> </a> </div> <div class="method-description"> </div> </div> <div id="method-M000052" class="method-detail"> <a name="M000052"></a> <div class="method-heading"> <a href="Root.src/M000052.html" target="Code" class="method-signature" onclick="popupCode('Root.src/M000052.html');return false;"> <span class="method-name">world</span><span class="method-args">()</span> </a> </div> <div class="method-description"> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>