This file is indexed.

/usr/share/mozart/doc/system/node96.html is in mozart-doc 1.4.0-8ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>30 Support Classes for Objects: ObjectSupport</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label1733">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="chapter.objectsupport"><H1><A name="chapter.objectsupport">30 Support Classes for Objects: <CODE>ObjectSupport</CODE></A></H1><P> This module contains classes that provide generic functionality for objects: Organizing objects in hierarchies and reflection of objects. </P><DIV id="section.objectsupport.masterslave"><H2><A name="section.objectsupport.masterslave">30.1 Classes for Master/Slave Behaviour</A></H2><P> <A name="label1720"></A> An instance <CODE><I>MasterO</I></CODE> of class <CODE>Object<SPAN class="keyword">.</SPAN>master</CODE> becomes a <A name="label1721"></A><EM>master</EM> of an <CODE>Object<SPAN class="keyword">.</SPAN>slave</CODE> object when the latter receives the message <CODE>becomeSlave(</CODE><CODE><I>MasterO</I></CODE><CODE>)</CODE>. </P><DIV class="apropos"><P class="margin">Methods for Masters</P><P> </P><DL><DT><CODE>init</CODE> <A name="label1722"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>init()</CODE> </P></BLOCKQUOTE></DD><DD><P>initialization; mandatory for internal reasons. </P></DD><DT><CODE>getSlaves</CODE> <A name="label1723"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>getSlaves(</CODE><CODE>?<I>SlaveOs</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>returns the list of current slaves. </P></DD></DL><P> </P></DIV><P> <A name="label1725"></A> An instance of <CODE>Object<SPAN class="keyword">.</SPAN>slave</CODE> becomes a <A name="label1726"></A><EM>slave</EM> of an <CODE>Object<SPAN class="keyword">.</SPAN>master</CODE> object <CODE><I>MasterO</I></CODE> when it receives the message <CODE>becomeSlave(</CODE><CODE><I>MasterO</I></CODE><CODE>)</CODE>. </P><DIV class="apropos"><P class="margin">Methods for Slaves</P><P> </P><DL><DT><CODE>becomeSlave</CODE> <A name="label1727"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>becomeSlave(</CODE><CODE>+<I>MasterO</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>makes <CODE><SPAN class="keyword">self</SPAN></CODE> become a slave of <CODE><I>MasterO</I></CODE>. <CODE><SPAN class="keyword">self</SPAN></CODE> must not yet be a slave of any object, else an exception is raised. </P></DD><DT><CODE>isFree</CODE> <A name="label1728"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>isFree(</CODE><CODE>?<I>B</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>tests whether <CODE><SPAN class="keyword">self</SPAN></CODE> is not the slave of any object. </P></DD><DT><CODE>free</CODE> <A name="label1729"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>free()</CODE> </P></BLOCKQUOTE></DD><DD><P>frees <CODE><SPAN class="keyword">self</SPAN></CODE>. <CODE><SPAN class="keyword">self</SPAN></CODE> must be the slave of some object, else an exception is raised. </P></DD></DL><P> </P></DIV></DIV><DIV id="section.objectsupport.reflect"><H2><A name="section.objectsupport.reflect">30.2 Reflecting Objects</A></H2><P> The unsited class <CODE>ObjectSupport<SPAN class="keyword">.</SPAN>reflect</CODE> provides the following methods: </P><P> </P><DL><DT><CODE>clone</CODE> <A name="label1730"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>clone(</CODE><CODE>+<I>O</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>returns a clone of <CODE><SPAN class="keyword">self</SPAN></CODE> (that is, features and current attribute values are equal). </P></DD><DT><CODE>toChunk</CODE> <A name="label1731"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>toChunk(</CODE><CODE>?<I>Ch</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>returns a chunk that contains information on current attribute values and features. </P></DD><DT><CODE>fromChunk</CODE> <A name="label1732"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>fromChunk(</CODE><CODE>+<I>Ch</I></CODE><CODE>)</CODE> </P></BLOCKQUOTE></DD><DD><P>Sets features and attributes according to chunk <CODE><I>Ch</I></CODE>. <CODE><I>Ch</I></CODE> must have been created with <CODE>toChunk</CODE>. The current object must have the same class as that from which the chunk was computed. </P></DD></DL><P> </P></DIV></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label1733">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys&nbsp;Duchier</A>, <A href="http://www.ps.uni-sb.de/~kornstae/">Leif&nbsp;Kornstaedt</A>, <A href="http://www.ps.uni-sb.de/~homik/">Martin&nbsp;Homik</A>, <A href="http://www.ps.uni-sb.de/~tmueller/">Tobias&nbsp;Müller</A>, <A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A> and&nbsp;<A href="http://www.info.ucl.ac.be/~pvr">Peter&nbsp;Van Roy</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>