Re: Domains

From: [at]} <Reinhard>
Date: Tue, 17 Nov 1998 13:31:43 -0800

Thanks for the fast answer!!!

But I have still some open questions. One main goal of my application is to
compare views from different models in one window. Normaly, at the begining
in one window are the views of one model. Now, there is mechanismus
implemented which allows to transfer the view from one window to an other
window (container). That means a containerview contains views with
different models, which belongs to different domains. Sending know a
message to all views of one model, which are in different containerviews,
is not possible. Because the domain of the container is different from the

domain of a view. Is know the solution, having for one application one
domain? Or is there an other possibilty?


Thanks in advanced for your answers

Reinhard


At 05:08 PM 11/16/98 +0100, Dominik Gruntz wrote:
>> I have a simulation model with many timeseries. After running the model
>> with its parameter, the main timeseries is shown. That works fine.
>> Sometimes the user is interrested to display an other timeseries of the
>> model. The idea behind my concept is: The user can select a view of a
>> timeseries. This means he select a model. After that he can get a menu to
>> choose which other timeseries of the selected model he like to see
>> additionaly. However, I like to display different views of one model in
>> different windows.
>ok, that is possible. If you create a new view and assign a given model
>to it, then you have to assign the view with the domain of the model.
>This can be done by calling Stores.InitDomain(v, m.domain).
>
>> Is the domain of view 1, view 2 and the model the same? If yes, how I have
>> to implement that?
>Yes, if view1 and view2 both refer to the same model, they all have to be
>in the same domain.
>
>I send you a simple module as attachment. This module implements
>two different views which both refer to the same model. You can select
>View1 as a singleton and then open a second instance. This view
>is opened as subwindow as it belongs to the same domain as the
>window which contains the singleton view.
>
>Hope this helps,
>
>- D. Gruntz, Oberon microsystems AG, Switzerland
>
Dietrich Reinhard
dipl. Inf. Ing. ETH
Institut fuer Pflanzenwissenschaften, Gruppe Phytomedizin, LFW B25
Universitätsstrasse 2, ETH Zentrum, CH - 8092 Zuerich Switzerland

Phone: +41-1-632-3868
Fax: +41-1-632-1108
e-mail: reinhard.dietrich{([at]})nowhere.xy
Received on Tue Nov 17 1998 - 14:05:02 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:42 UTC