1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  Room&#45;based vs. coordinate&#45;based -->
<!--X-From-R13: pynjerapNphc.uc.pbz -->
<!--X-Date: from major.globecomm.net [207.51.48.5] by in2.ibm.net id 866154924.57630&#45;1 Thu Jun 12 22:35:24 1997 CUT -->
<!--X-Message-Id: 199706122233.PAA20990#xsvr3,cup.hp.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 33A001A5.41C67EA6#iname,com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  Room-based vs. coordinate-based</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:clawrenc#cup,hp.com">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01312.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01314.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01308.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01319.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01313">Author</A>
&nbsp;|&nbsp;<A HREF="#01313">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01313">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  Room-based vs. coordinate-based</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev]  Room-based vs. coordinate-based</LI>
<LI><em>From</em>: <A HREF="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</A></LI>
<LI><em>Date</em>: Thu, 12 Jun 97 15:28:27 -0700</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Shawn Halpenny &lt;malachai#iname,com&gt; said:
&gt;clawrenc#cup,hp.com wrote:
&gt;&gt;Shawn Halpenny &lt;malachai#iname,com&gt; said:

&gt;&gt; Ahh.  I don't have any sort of filtering or definition of watchers.  A
&gt;&gt; watcher just triggers whenever an object changes.  The result is a
&gt;&gt; message sent to the waiting object of the form, "I HAVE CHANGED".  I
&gt;&gt; then leave it up to the waiting object to figure out what changed, and
&gt;&gt; if they are interested in that change.

&gt;A watcher will only trigger if the correct property (or properties)
&gt;changes so that the watching object isn't deluged by messages about
&gt;state changes it doesn't care about on busy objects.  The waiting
&gt;object only has to decide what to do with the change, since it only
&gt;gets messages concerning the things it cares about.

Yeah, its an obvious optimisation.  The reason I don't do it at the
moment is that the insides of objects (methods, attributes etc) are
opaque.  I just don't have a decent way to tie anything in there
without warping the design.

&gt;&gt; This allows a watcher to trigger on a state change for a private data
&gt;&gt; member in an object.  Depending on the strictness of your views on
&gt;&gt; data encapsulation, this can be thought of as a Good Thing, or a Bad
&gt;&gt; Thing.

&gt;Watchers can trigger on private data changes by not defining exactly
&gt;what they're watching, but choosing to watch for a change in any
&gt;property.  So I still maintain the low message traffic for watchers
&gt;waiting on a few properties, and don't have to cheat my encapsulation
&gt;by allowing watching on the entire object if desired.

This raises an implementation question:

  if your watchers are specified with a definition of what they are
watching, this suggests that a single watcher could be watching
several attributes at the same time.  

Does this mean that an entry is made on the "watch list" for each of
those attributes, or does it mean that upon a change, that change is
compared to the object's list of watcher filters, and the approriate
messages sent?  The latter case seems wasteful (tho better than the
broadcast everything approach) if true.  The former gets data space
hungry.

-- 
J C Lawrence                           Internet: claw#null,net
(Contractor)                           Internet: coder#ibm,net
---------------(*)               Internet: clawrenc#cup,hp.com
...Honorary Member Clan McFUD -- Teamer's Avenging Monolith...


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="01319" HREF="msg01319.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>
<ul compact><li><em>From:</em> Shawn Halpenny &lt;malachai#iname,com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01308" HREF="msg01308.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
<UL><LI><EM>From:</EM> Shawn Halpenny &lt;malachai#iname,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01312.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01314.html">Re: [MUD-Dev]  "From Kansas to Oz"</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01308.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01319.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01313"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01313"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev]  Room-based vs. coordinate-based</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01237" HREF="msg01237.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 08 Jan 1970, 05:01 GMT
<LI><strong><A NAME="01266" HREF="msg01266.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Tue 10 Jun 1997, 03:03 GMT
<LI><strong><A NAME="01299" HREF="msg01299.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Thu 12 Jun 1997, 08:02 GMT
<LI><strong><A NAME="01308" HREF="msg01308.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Thu 12 Jun 1997, 21:03 GMT
<LI><strong><A NAME="01313" HREF="msg01313.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Fri 13 Jun 1997, 05:35 GMT
<LI><strong><A NAME="01319" HREF="msg01319.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Fri 13 Jun 1997, 20:34 GMT
</LI>
</LI>
<LI><strong><A NAME="01452" HREF="msg01452.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Mon 23 Jun 1997, 15:59 GMT
<LI><strong><A NAME="01458" HREF="msg01458.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
Shawn Halpenny <a href="mailto:malachai#iname,com">malachai#iname,com</a>, Mon 23 Jun 1997, 23:52 GMT
<LI><strong><A NAME="01619" HREF="msg01619.html">Re: [MUD-Dev]  Room-based vs. coordinate-based</A></strong>, 
clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Tue 01 Jul 1997, 06:45 GMT
</LI>
</LI>
</LI>
</LI>
</LI>
</LI>
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>