|
From: George T. <geo...@fr...> - 2004-10-02 13:29:32
|
Hello,
the "label" in AMNodeImpl works like this:
class AMNodeImpl
{
String label;
AMNodeImpl (String id, String label)
{
this.label = label;
...
}
public String getLabel()
{
return label;
}
}
when Concretizer (the class that makes the changes) needs to change a label,
the AMMember needs to be reconstructed, and so the AModel.
I would prefer to avoid this and suggest for the label to became dynamic,
like:
public String getLabel()
{
return ...calculate label...;
}
We could implement a new set of AMMember with dynamic label
(that supports Concretizer)
Of cource we could easily, just use a setLabel(String),
and Concretizer could call it,
(I would prefer the dynamic one).
What is your opinion?
Cheers
Giorgos
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.767 / Virus Database: 514 - Release Date: 21/9/2004
____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.
|