<div dir="ltr">Have you looked at Magritte?<br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 8:04 AM, Anders Janmyr <span dir="ltr">&lt;<a href="mailto:anders@janmyr.com">anders@janmyr.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I would like some thought on what is a good way to model &quot;model tools&quot;<br>
in Smalltalk.<br>
<br>
Clarification<br>
The user should be able to create classes.<br>
The classes contain named variables.<br>
The variables can be described (typed) with data such as type (String,<br>
Date, Company) and multiplicity (1, 2..5, 4..)<br>
I also want to attach behavior to the classes.<br>
I would also want to be able to refactor the classes, preferably with<br>
the existing tools<br>
<br>
Example:<br>
Person<br>
 &nbsp;name:String:1<br>
 &nbsp;mother:Person:1<br>
 &nbsp;father:Person:1<br>
 &nbsp;children:Person:0..<br>
<br>
Process<br>
 &nbsp;name: ImportPeople<br>
 &nbsp;executeMethod: &quot;code for importing people into my model&quot;<br>
<br>
Should I model the users models as Smalltalk objects or should I make<br>
my own parallel hierarchy.<br>
Should the Person above be dynamically created as a smalltalk class:<br>
<br>
Person<br>
 &nbsp;name:<br>
 &nbsp;mother:<br>
 &nbsp;...<br>
<br>
or should I use<br>
 &nbsp;MyClass<br>
 &nbsp; &nbsp;name: Person<br>
 &nbsp; &nbsp;instVars: #(name mother ...)<br>
<br>
<br>
<br>
Any help will be appreciated.<br>
<br>
Anders<br>
<font color="#888888"><br>
--<br>
<a href="http://anders.janmyr.com/" target="_blank">http://anders.janmyr.com/</a><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</font></blockquote></div><br></div>