AccueilDemarche LogicielApplicationsBiblioFormationReseaux

 

 

 

 

 

La Foire Aux Questions de Cormas

 

La Foire Aux Questions (ou Frequently Asked Questions) est une liste de question-réponses fréquentes sur Cormas et SmallTalk.

Objet
Question
Réponse
Cormas Installation Some trouble to make Cormas run under Windows

1. Copy the vw30 sub-directory of the CD on your hard disk (I assume C:\).
2. Go into C:\vw30\Cormas and verify the properties of the cormas.im and cormas.cha files (they should NOT be read-only !!! Please uncheck the read-only button if necesseray).
3. Idem for the whole C:\vw30\Cormas\Models sub-directory (uncheck "Read-Only" for all the files there)
4. Double-click on C:\vw30\Cormas\cormas.im. Windows then is requesting the executable file to open this kind of *.im files. Click on "Others" and browse to select the file visual.exe in the C:\vw30\bin sub-directory.
5. Once VisualWorks is open, from the main VisualLauncher window, in the "File" Menu, select "Set VisualWorks Home". Sometimes by default it is set to C:\vw30\Cormas. It should be C:\vw30. Correct it if necessary.

Here you can find an easier way to install Cormas on Win.

Model installation Where should I save a model I have downloaded ? Often, the model you get, is a zip file. You must unzip it into the directory VW3/cormas/Models.
A new directory with the same name as the model is created. It contains the ".st" file and other subdirectories
point of view problem When trying to change the pov, I have this kind of message: 'Unhandled exception: Message not understood: #includesKey:' UndefinedObject(Object)>>doesNotUnderstand: Legend>>addLegend:location: Legend>>majLegendes: GrilleModele>>majPdv: .....

Export and import your model...
For new pov to be taken into account in the legends, the two files myModel.st and myModel.ev need to be analyzed, which is done when importing a model...

This bug has been corrected; see here

Programmation des points de vue ? Je souhaiterais pouvoir programmer les points de vue.

Oui. Il suffit de modifier l'attribut activePov défini au niveau de la metaclass Entity. Si on veut switcher aléatoirement le pov sur les cellules tous les 5 pas de temps, ajouter le bloc suivant dans la méthode step:t du modèle XXX:
t \\ 5 = 0 ifTrue: [ XXX_Cell activePov: (Cormas selectRandomlyFrom: XXX_Cell pdvDict keys).
"maj infos dans la barre sup. de la grille spatiale"
self space interface updateName.
"pour forcer le réaffichage de toutes les cellules"
self theXXX_Cells do: [:c | c defineVisualState; show]].

Programmation des dimensions de la grille? Je souhaiterais pouvoir programmer les dimensions de la grille.

Oui, mais au début de la méthode init (juste après avoir ouvert la grille; sinon, les infos des cellules seraient perdues). Par example:
init
self gridSizeCol: 50 line: 20. self initCells.
... Ajouter alors la métode suivante:
gridSizeCol: nbOfCol line: nbOfLine
self space interface colonne value: nbOfCol.
self space interface ligne value: nbOfLine.
self space interface actionValideDimensionGrille

     

 


Le Cirad Centre de coopération internationale en recherche agronomique pour le développement
Informations légales © Copyright Cirad 2001-2015 cormas-webmaster@cirad.fr