Skip to content

pierbo/cormas

 
 

Repository files navigation

CORMAS

CORMAS

COmmon pool Ressources and Multi-Agent Simulations
Explore the docs »

Report a defect | Request feature

Pharo version Build Status License

All Contributors

This is an ongoing effort to port CORMAS to Pharo ecosystem. Current stable version of CORMAS is based on VisualWorks 7.6 and still can be found on: http://cormas.cirad.fr/indexeng.htm

Some documentation (to be cleaned and reorganized) about Cormas is available on the Wiki here: https://github.com/cormas/documentation

If you want to contribute to CORMAS please have a look to the contributing guide. Join us on the cormas-dev mailing-list: http://groups.google.com/group/cormas-dev

How to install Cormas

  • Download a Pharo 8.0 image+VM depending of your platform: http://pharo.org/download
  • Load Cormas: Open Pharo 8.0 image then click anywhere to open the main menu. Choose Playground to execute the following script. Paste the script below in Playground, select all then right-click and choose Do it to execute this.
Metacello new
	onWarningLog;
	repository: 'github://cormas/cormas/repository';
	baseline: 'Cormas';
	load.

There is from time to time, loading errors with github. If it happens, execute the following expression:

| maxCount count |
maxCount := 3.
count := 1.
Transcript open.
[ count <= maxCount ] whileTrue: [ [
	^ Metacello new
		onWarningLog;
		repository: 'github://cormas/cormas/repository';
		baseline: 'Cormas';
		load
	]
	on: IceGenericError "Failed to connect to github.com: Interrupted system call"
	do: [ : ex |
		MetacelloNotification signal: String cr , ex description , String cr , 'RETRYING ', maxCount asString.
		(Delay forSeconds: 2) wait.
		ex retry
	].
	count := count + 1 ]

All packages load into the Cormas-* package names.

How to install with Command Line interface (CLI)

You can install CORMAS through Unix command line. It works as follow:

mkdir mydir
cd mydir
curl https://get.pharo.org | bash
./pharo Pharo.image eval "Metacello new onWarningLog; repository: 'github://cormas/cormas/repository'; baseline: 'Cormas'; load. Smalltalk snapshot: true andQuit: true"

or if there is a problem with github:

mkdir mydir
cd mydir
curl https://get.pharo.org | bash
./pharo Pharo.image eval "| maxCount count | maxCount := 3. count := 1.
[ count <= maxCount ] whileTrue: [ [
  Metacello new
		onWarningLog;
		repository: 'github://cormas/cormas/repository';
		baseline: 'Cormas';
		load ] on: IceGenericError do: [ : ex |
		  MetacelloNotification signal: String cr , ex description , String cr , 'RETRYING ', maxCount asString.
		  (Delay forSeconds: 2) wait. ex retry ]. 
  Smalltalk snapshot: true andQuit: true"

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Tomohiro Oda

💻 ⚠️

Etienne DELAY

💻 ⚠️

Hernán Morales Durand

💻 ⚠️

Serge Stinckwich

💻 ⚠️

Cédrick Béler

💻

nbecu

💻

npapoylias

💻 ⚠️

Pierre Bommel

💻

Christophe Le Page

💻

Bruno Bonté

💻

Jigyasa Grover

💻

Peter Uhnak

🔧

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Main cormas repository

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Smalltalk 50.7%
  • HTML 49.3%