Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Dependance Graphs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32333] Dependance Graphs
  • From: Oleg Burd <OBurd at MaplePartners.com>
  • Date: Tue, 15 Jan 2002 02:30:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

G'day mathgroup,
I have some general questions on Implementation of dependencies and
properties in Mathematica.

I want to replicate a structure with certain properties. For example Product
"Building", has Property "Stock", Stock = {FirstStock, SecondStock,
ThirdStock }
Stock has Flat = {RightFlat, LeftFlat},
Flat has Properties  = {Owner, Price, Area}.

The way I found to work with such constructions in Mathematica is ^=:
Area[RightFlat[FirstStock[Home_Building]]]=100;
Owner[LeftFlat[SecondStock[Home_Building]]]="Robert";
Price[RightFlat[FirstStock[Home_Building]]]=50000;

My Questions are:
Is there any other smarter ways to build such dependencies up?
How can I automatically from Properties Lists {FirstStock, SecondStock,
ThirdStock }, {RightFlat, LeftFlat},  {Owner, Price, Area} and
DependanceList = {Stock, Flat, Properties}
(the list which shows which property refers to which one) generate all
objects of type:
Property[Flat[Stock[Building]]] ?
And finally how can one visualize it?

Any help or comments will be appreciated.

Thanks
Oleg.


  • Prev by Date: Re: What if the symbol doesn't exist?
  • Next by Date: Front end: Window properties
  • Previous by thread: Arrange the file .xls and/or .doc to graphics
  • Next by thread: Re: Dependance Graphs