Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Re: Model upgrade

New Message Reply Date view Thread view Subject view Author view

Subject: Re: Model upgrade
From: francois bousquet (bousquet@cirad.fr)
Date: mar mar 20 2001 - 09:46:02 CET

Important changes occured between 99 and 2001 versions. The best way is to send us the model to be updated. However
some answers:

Name of entities have changed : Open a Browser and have a look at the category CormasKernel-Entities. You'll see the new names.

Then open your old file.st in any editor and use Find an Replace

For instance : Agent_Communication_Location -> AgentCommLocation

Then follow the instruction given by Christophe in the mail below.

I did it with your model Pascal and now I can import it now.

De: <lepage@cirad.fr>
À: <cormas@cnusc.fr>
Objet: compatibility of the new version of Cormas
Date : mardi 13 mars 2001 14:38

Some of you have downloaded the new version of Cormas
from the recently released web site http://cormas.cirad.fr/

The "official" annoucement of this 2001 version of Cormas
was (actually is still, this is just a pre-annoucement...)
expected by the end of March: small modifications are
to be made on the Cormas Kernel, so it's a good idea to wait
a little bit before updating your Cormas.

Anyway, for those who are trying to migrate by themself,
I give here some information that may be useful...
 
First, you have to note the new way to write Smalltalk
code with Cormas by using the RefactoringBrowser, which
is a very powerful tool. It replaces the custom editing
window with 4 green collumns. The menus allowing to define
a new entity are now directly proposing the superclass
to be chosen. A RefactoringBrowser is opening each time
you modify one of the Cormas model entity, and also the
Cormas model itself (button Prepare and Schedule).
The trainees of Cormas courses should be familiar with
the RefactoringBrowser. The other one may have a look at:
http://st-www.cs.uiuc.edu/~brant/Refactory/
to have an idea of what you will gain to use it !

Then, you will have to rename some protocols.

1. For each of the vizualized entity of your model,
   you should rename the protocol previously called
   'pdv' (for "points de vue")
   in 'pov' (for "points of view")...

2. For the model class (button Prepare and Scedule),
   you should rename the protocol previously called
   'controle' in 'control'

At this stage, if you succeed in running your model,
that's great ! If you fail, it's a pitty ! Please send
us your model (.st, .ev and eventually .env files) by
Email (green@cirad.fr) for custom refactory !!!

Best regards,
clp
  ----- Original Message -----
  From: Pascal Perez
  To: Cormas
  Sent: Tuesday, March 20, 2001 4:20 AM
  Subject: Model upgrade

  Hye,

  I'm looking to upgrade some models from the Cormas99 version to the Cormas2001 version.
  Maybe some of you already have done such upgrades, or maybe you have some ideas about it.

  It looks like their are several bugs that appears when importing and runing a 99Cormas model on the new version (some class name have change and other things like that).

  If someone knows how to unbug them, please let me know.

  Thanks

  Dr Pascal PEREZ

  CIRAD Australia
  C.R.E.S.
  Australian National University
  Canberra ACT 200
  tel: (61) 2 61 25 20 55
  fax: (61) 2 61 25 83 95
  perez@cres.anu.edu.au
  http\\www.cres.anu.edu.au

New Message Reply Date view Thread view Subject view Author view
 

Back to home