[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Prototype OO was Re: Inheritance/defaulting of attributes

  • From: "Meltsner, Kenneth J" <Kenneth.J.Meltsner@j...>
  • To: xml-dev@i...
  • Date: Thu, 9 Oct 1997 11:44:29 -0500

oo prototype


     [Apologies for jumping in from outside the document/XML community -- I
     was reading the archive and found this thread interesting.  An earlier
     attempt at sending this out failed, so this may be a duplicate as
     well.]

     The XML community may want to look at prototype-based object-oriented
     programming as an alternative to traditional class-instance objects.
     Prototypes allow the designer/user to create an object, change its
     properties, and then create new objects that inherit from the original
     prototype.  There's a lot more details, including a description of
     inheritance by delegation of methods/properties to parent prototypes,
     but it tends to be a more useful approach for objects that model real
     world objects -- my dissertation used a variant of prototypes to
     implement an object-oriented approach to simulation for chemical
     thermodynamics.

     Another useful approach might be to look into constraint-based OO.  In
     this approach, the relationships between objects can be described and
     manipulated, usually in both directions (i.e. if x.width + y.width =
     total.width, setting the total.width and x.width to new values will
     force a change in y.width as well).

     Finally, I was impressed with, but lost the references to, some work
     on "middle-out" modeling.  Basically, traditional classes are used to
     go from general classes (animals, mammals) to specific classes (dogs,
     beagles), and then the system permits class properties to be replaced
     to allow for Ralph, a beagle with three legs, etc.  A similar
     middle-out approach might be useful -- define a hierarchy of DTDs, I
     suppose, and then permit specific exceptions to override default
     properties.

     Here are the references for folks with extra time, if I'm not too
     off-topic.

     The classic prototype-based OO language developed at Sun:

     http://self.sunlabs.com/

     A prototype-based, C++, constraint-based user interface system:

     http://www.cs.cmu.edu/Groups/amulet/amulet-home.html

     A bunch of variants on constraint-based languages and systems,
     including Web layout:
     (The hierarchy of constraints is especially useful for systems with
     defaults and different constraint strengths)

     http://www.cs.washington.edu/research/constraints/

     Ken Meltsner



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.