Hi,
i work with Magritte framework for define more data
about one specific problem.
Now some data is defined as subclass of another
class.
For example :
SuperClass with
descriptionCode with descriptionComment with descriptionAddress with
descriptionReference and ......
SubClassOptionA with descriptionCostumer and ....other specific description for
OptionA
SubClassOptionB with descriptionSupply and ..... other
specific description for OptionB
My questions are :
A) What's the best method for not replicate the
SuperClass descriptions ?
B) If i need to change the label of the priority of
one of SuperClass description how i can do it ?
C) When i need to do copy of one description and
after send to the copy specific messages ?
D) When i have a specific description,
for example
descriptionNazionality based on MASingleOptionDescription,
and i have in the "data
base" some reference to it ,
i can define only one basic
descriptionNationality and use it ( or copy of it ) with specific
attribute ( label priority accessor ) ?
What's the solution for have the
best performance ? ( I think to port it to GLASS )
Any pointers would be greatly
appreciated!
Thanks! Dario
_______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hi :-)
On Mon, May 5, 2008 at 4:51 PM, Dario Trussardi <[hidden email]> wrote: > > > Hi, > > i work with Magritte framework for define more data about one specific > problem. > > Now some data is defined as subclass of another class. > [...] > My questions are : > > A) What's the best method for not replicate the SuperClass descriptions ? You just add the descriptions for the new attributes to the subclasses. Descriptions are inherited. > B) If i need to change the label of the priority of one of SuperClass > description how i can do it ? Override the superclass method with the modified description. > C) When i need to do copy of one description and after send to the copy > specific messages ? > > D) When i have a specific description, > for example descriptionNazionality based on MASingleOptionDescription, > and i have in the "data base" some reference to it , > i can define only one basic descriptionNationality and use it ( or copy > of it ) with specific attribute ( label priority accessor ) ? I don't understand what you want to do. Maybe http://onsmalltalk.com/programming/smalltalk/using-magritte-with-seaside/ can give you some hints? > What's the solution for have the best performance ? ( I think to port > it to GLASS ) I'd advise you to program the solution that is the simplest to program. Maybe the performance of that solution is completely OK for your application. For persistence, see also http://onsmalltalk.com/programming/smalltalk/simple-image-based-persistence-in-squeak/ Cheers Matthias _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |