[Newbies] Good practice for modeling model tools

Marcin Tustin mm3 at zepler.net
Fri Aug 29 16:22:27 UTC 2008


Have you looked at Magritte?

On Fri, Aug 29, 2008 at 8:04 AM, Anders Janmyr <anders at janmyr.com> wrote:

> Hi,
>
> I would like some thought on what is a good way to model "model tools"
> in Smalltalk.
>
> Clarification
> The user should be able to create classes.
> The classes contain named variables.
> The variables can be described (typed) with data such as type (String,
> Date, Company) and multiplicity (1, 2..5, 4..)
> I also want to attach behavior to the classes.
> I would also want to be able to refactor the classes, preferably with
> the existing tools
>
> Example:
> Person
>  name:String:1
>  mother:Person:1
>  father:Person:1
>  children:Person:0..
>
> Process
>  name: ImportPeople
>  executeMethod: "code for importing people into my model"
>
> Should I model the users models as Smalltalk objects or should I make
> my own parallel hierarchy.
> Should the Person above be dynamically created as a smalltalk class:
>
> Person
>  name:
>  mother:
>  ...
>
> or should I use
>  MyClass
>    name: Person
>    instVars: #(name mother ...)
>
>
>
> Any help will be appreciated.
>
> Anders
>
> --
> http://anders.janmyr.com/
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080829/88281d1f/attachment.htm


More information about the Beginners mailing list