Coder Social home page Coder Social logo

gama-platform / gama.old Goto Github PK

View Code? Open in Web Editor NEW
299.0 44.0 99.0 1.13 GB

Main repository for developing the 1.x versions of GAMA

License: GNU General Public License v3.0

Java 91.14% CSS 0.05% Python 0.02% XSLT 0.89% HTML 0.04% Shell 0.11% Batchfile 0.04% GAP 2.06% TeX 0.08% Processing 0.01% GAML 5.50% C++ 0.01% Inno Setup 0.02% JavaScript 0.04%
gama-platform gama simulation-framework simulation-environment simulation-toolkit modeling-language models agent-based-modeling mathematical-modelling hybrid-modeling

gama.old's Introduction

GAMA 1.9.3 - Maintainance of GAMA 1.9

Due to several bugfixes in the recent versions of SWT, the highly recommended configuration for working on this branch is Eclipse for Java and DSL 2023-09 and the Temurin distribution of JDK17.

Github Travis Language GitHub issues Github Releases Documentation Documentation

Sonarcloud

Core repository for the GAMA Platform project

Please post issues about GAMA here:

https://github.com/gama-platform/gama/issues

Issues regarding the website (http://gama-platform.org) and the documentation should be posted here:

https://github.com/gama-platform/gama-platform.github.io/issues

See CHANGELOG.MD for a list of changes since version 1.9.0

gama.old's People

Contributors

agrignard avatar alexisdrogoul avatar benoitgaudou avatar chapuisk avatar clecaron avatar dphilippon avatar gama-bot avatar hqnghi88 avatar imgbotapp avatar jdzucker avatar lekumquat avatar lesquoyb avatar lucasgrjs avatar mathieubourgais avatar mazarsju avatar minhduc0711 avatar napieralaf avatar ndgnuh avatar paulbreugnot avatar pcaillou avatar ptaillandier avatar quittqick avatar rcura avatar roiarthurb avatar romainreuillon avatar tcquang avatar tnguyenh avatar truongminhthai avatar woodenmaiden avatar youcefsklab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gama.old's Issues

Charts: order of labels

What steps will reproduce the problem?
1. Open the StupidModel6 from tutorial
2. add a new chart: 
display histogram_display2 {
    chart name: 'Size distribution' type: histogram background: rgb('lightGray') {
    data name: "[0;10]" value: bugs count (each.evol < 10);
    data name: "3" value: bugs count ((each.evol > 10) and (each.evol < 20));
    data name: "5" value: bugs count ((each.evol > 20) and (each.evol < 30));
    data name: "2" value: bugs count ((each.evol > 30) and (each.evol < 40));
    data name: "6" value: bugs count ((each.evol > 40) and (each.evol < 50));
    data name: "toto" value: bugs count ((each.evol > 50) and (each.evol < 60));
    data name: "tata" value: bugs count ((each.evol > 60) and (each.evol < 70));
    data name: "titi" value: bugs count ((each.evol > 70) and (each.evol < 80));
    data name: "[80;90]" value: bugs count ((each.evol > 80) and (each.evol < 90));
    data name: "[90;100]" value: bugs count ((each.evol > 90) and (each.evol < 100));
        }
    }

What is the expected output? What do you see instead?

For the histogram labels are sorted (by alphanumeric order I suppose).
In contrary for "series" or "pie", the labels do not appear in the same order ... (in
a quite random order I guess).
I don't know what is the best or most intuitive one...

Please use labels and text to provide additional information.

Original issue reported on code.google.com by benoit.gaudou on 2011-04-19 05:52:29

Parsing of the GAML language: strange warnings

What steps will reproduce the problem?
1. Open any model file (e.g. StupidModel6)

What is the expected output? What do you see instead?

There are two strange warning in this model: 
- *`species`* : "not a key of this context"
- le champ *`value`* dans un *`set`* (et seulement dans un set) : "this key has no
facet".



Original issue reported on code.google.com by benoit.gaudou on 2011-04-18 16:36:04

StupidModel1.xml : Unknown facet with

In StupidModel1.xml, line 14
[...]
      <reflex name="basic_move">
        <let var="place" with="stupid_grid location"/>
        <let var="destination" with="one_of ((place neighbours_at 4) where 
(empty  each.agents))"/>
          <if condition="destination != nil">
            <set var="location" value="destination"/>
          </if>
      </reflex>
[...]


Unknown facet with
(1) line 14 of /D:/workspace/GAMA/models/stupid/StupidModel1.xml
(2) line 14 of /D:/workspace/GAMA/models/stupid/StupidModel1.xml
    at 
msi.gama.kernel.factories.CommandFactory.verifyFacetValidity(CommandFactory
.java:328)
    at 
msi.gama.kernel.factories.CommandFactory.buildFacets(CommandFactory.java:23
9)
    at 
msi.gama.kernel.factories.CommandFactory.buildDescription(CommandFactory.ja
va:161)
    at 
msi.gama.kernel.factories.CommandFactory.parseCommand(CommandFactory.java:1
24)
    at 
msi.gama.kernel.factories.CommandFactory.buildCommands(CommandFactory.java:
351)
    at 
msi.gama.kernel.factories.CommandFactory.buildDescription(CommandFactory.ja
va:172)
    at 
msi.gama.kernel.factories.CommandFactory.parseCommand(CommandFactory.java:1
24)
    at 
msi.gaml.parser.GamlPreParser.collectCommands(GamlPreParser.java:452)
    at msi.gaml.parser.GamlPreParser.secondPass(GamlPreParser.java:394)
    at msi.gaml.parser.GamlPreParser.start(GamlPreParser.java:100)
    at msi.gaml.parser.ModelParser.parseSpecies(ModelParser.java:49)
    at msi.gama.kernel.Simulation.parseSpecies(Simulation.java:454)
    at 
msi.gama.kernel.controllers.GamaSimController.loadAndBuildSimulation(GamaSi
mController.java:309)
    at 
msi.gama.kernel.SimulationManager$1.run(SimulationManager.java:154)
    at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContex
t.java:121)

Original issue reported on code.google.com by pierrick.koch on 2010-03-24 03:58:28

Issues with stupidmodel

What steps will reproduce the problem?
1.I copy xml code of stupidmodel1 on this web and "save as" file .xml
2.I try to open model but it has error, that is "stupid_grid is already declared as
a species"
3.

What is the expected output? What do you see instead?
  I expect GAMA run normal with file .xml .
  Instead I saw some error.
What version of the product are you using? On what operating system?
  GAMA 1.1 , and Window XP 

Please provide any additional information below.

Original issue reported on code.google.com by w4t4shi1311 on 2010-07-22 02:26:55

personal action with return in the case of a ask to a different agent

It's quite complicated to use the return of an action called onto another agent (but
it makes sense!), for example:

Species A:

<action name="foo">
    <return value="'foo'"/>
</action>


Species B:

<reflex>
    <let var="toto" value="'nothing'"/>
    <ask target="some_agent_A">
        <do action="foo" return="foo_result"/>
        <set var="myself.toto" value="foo_result"/>
    </ask>
     <do action="write">
            <arg name="message" value="toto"/>
     </do>
</reflex>

Actually, i'm not sure there is a clean way to make it simpler (because of the 2 different
contexts).

Original issue reported on code.google.com by grodwar on 2010-08-31 09:40:10

Exception when loading a model (for impatient users)

What steps will reproduce the problem?
1. Run a model (or reload a simulation)
2. Press the button "Play simulation" before the end of the initialization process
(From "Creating Simulation" to "Done") 


What is the expected output? What do you see instead?

I would expect that the simulation waits the end of the initialization before running.
Instead I have an exception in Eclipse: 

37699718 [Scheduler execution thread #11] DEBUG gama  - Execution thread #11 started
Exception in thread "Scheduler execution thread #11" java.lang.NullPointerException
    at msi.gama.kernel.SchedulingStrategy.stepOne(SchedulingStrategy.java:167)
    at msi.gama.kernel.SchedulingStrategy.step(SchedulingStrategy.java:180)
    at msi.gama.kernel.Scheduler.step(Scheduler.java:153)
    at msi.gama.kernel.Scheduler$1.run(Scheduler.java:72)
    at java.lang.Thread.run(Unknown Source)



Original issue reported on code.google.com by benoit.gaudou on 2011-04-17 20:19:45

casting geometry to float : brutal round

When i try to cast a agent's geometry attribute to float in order to make a comparison,
i got a 
heavily rounded value (precision is 10^-1). AFAIK it "works" only with the geometry
attributes.

I found that as i was using geometry around 10^-4 order. 

Example of code:  gamavi_related/model_gis/gmaps_1/1_test_basic_1.xml :

                <if condition="(float geometry) &lt; 0.000001">
                    <do action="write">
                        <arg name="message" value="name+' is dying '"/>
                    </do>
                    <do action="die"/>
                </if>


Regards,
edouard amouroux

Original issue reported on code.google.com by grodwar on 2010-04-07 04:34:13

To do : separation between parsing (XML) and execution

This separation is already made for commands (i.e. a CommandFactory takes an XML input
and 
converts it, based on the annotations, to a CommandDescriptor, which can then be compiled
to a 
Command by asking the factory). Needs to be done for the Species, Output, Model, Variables,

Environments and Global sections. 

Original issue reported on code.google.com by alexis.drogoul on 2010-03-30 15:10:25

Histogram: an initial black window

What steps will reproduce the problem?
1. Launch the Model6 of the StupidModel tutorial
2. Resize the display corresponding to the histogram

What is the expected output? What do you see instead?

The histogram windows is black when I zoom in or zoom out the windows.
I have to launch one step to have a good view.

Please use labels and text to provide additional information.

On windows XP 32 bits

Original issue reported on code.google.com by benoit.gaudou on 2011-04-18 16:30:18

To do : separation between display and behavior in agents

Right now, the display of agents is taken in charge by the "visible" skill, and then
directly 
incorporated within the description of a species. In the future, the display will belong
to the 
"display" section, where the way the agents have to be displayed will be defined. 

Original issue reported on code.google.com by alexis.drogoul on 2010-03-30 14:55:51

Problem with 'sub-model' (file) inclusion

Hi,

I have a problem with my last model, but I am not sure that the problem comes from
GAMA (maybe it's just coming from my model).

Indeed, I want to write my model in two files : the 'maelia.gaml' file and the 'type_culture.gaml'
file.... However, When I tried to include the second file inside the first one, GAMA
has some problem to find in the first file the variables of the agents described in
the second file...
However, if I just copy the species described in the second file in the first file,
all is working well....
I was not able to reproduce this bug with a simple example (it's for that that I am
not sure that the problem comes from GAMA), thus I attached to this issue the two files
of my models.

Cheers,

Patrick 

Original issue reported on code.google.com by patrick.taillandier on 2011-04-05 08:49:11

Compilation problem with float

When I write the following model, I have this compilation error : "builder: malformed
expression : [2.0, E]"

/*********MODEL*/
model newddd
import "platform:/plugin/msi.gama.gui.application/generated/std.gaml"
global {
    var test type:float value:0.000000002;
}
/*********END MODEL*/

It is working when I replace 0.000000002 by 0.2.


Original issue reported on code.google.com by patrick.taillandier on 2011-03-29 15:38:22

'I' bug....

In the model /MODELS/Tuto_epidemio/12_vector_loading.xml, GAMA does not seem to like
the 'I' string: 
<reflex name="initialInfection" when="time = 0">
    <let var="tmpListAnimal" value="list animal"/>
    <loop times="infectiousNumber">
       <ask target="first tmpListAnimal">
       <set var="status" value="'I'"/>
       <set var="color" value="rgb 'red'"/>
       </ask>
       <set var="tmpListAnimal" value="tmpListAnimal - (first tmpListAnimal)"/>
    </loop>
</reflex>

When remplacing 'I' by another string (e.g. 'i', 'P', etc.), it works quite well.

Original issue reported on code.google.com by patrick.taillandier on 2010-07-06 09:05:50

The data of charts can not be saved anymore.

Since the charts have been transformed into one of the possible layers of LayeredDisplayViews,
they 
have lost the ability to export their data as a CSV file. 

Original issue reported on code.google.com by alexis.drogoul on 2010-04-13 06:53:23

Can not add a pair variable to a map variable

What steps will reproduce the problem?
Open the attached model.

What is the expected output? 
The pair "one_pair" should be added to the map "one_map".

What do you see instead?
The map "one_map" is empty (nil).

Please use labels and text to provide additional information.
The Java classes concerned are:
1. msi.gaml.commands.AddCommands.privateExecuteOn method : code of the "if (index ==
null)" condition is executed
2. msi.gaml.types.GamaMap.addValAt(final Object index, final Object value) method is
executed. As "index == null", nothing happens.

Original issue reported on code.google.com by voducanvn on 2010-07-09 11:20:02

Parameter of type "category/nominal/classe"

I would like to be able to define a parameter that will take its value among a set of
possibles values.

for instance : 
var environment_type type: string init: 'open' among: ['open', 'urban', 'mixed'] 'Environment
type :';

Cheers,

Patrick

Original issue reported on code.google.com by patrick.taillandier on 2011-04-01 08:31:03

Fix the broken pathfinder

The Pathfinder that was working with the OpenMap implementation of the GIS environment
is 
broken with GeoTools. 

Needs to be recoded, and also to be better specified in the model (i.e. which layers
to use, etc.).

Original issue reported on code.google.com by alexis.drogoul on 2010-03-30 15:15:35

build_geometry_from_places bug

What steps will reproduce the problem?
1. Load the attached model (model attached)
2. Step 2 or 3 times

What is the expected output? 
the geometry of the macro agent should cover the 8 places around the
micro-agent.

What do you see instead?
a weird shape displayed in another place far from the micro-agent.


What version of the product are you using? On what operating system?
last update 20th May on the svn, under Ubuntu.


Please provide any additional information below.

Original issue reported on code.google.com by guillaume.c.cherel on 2010-05-21 14:03:17

asking cell result asking contained agent

Hi,

whenever an agent do something like:
<ask target="myCell">
    <set var="color" value="rgb 'red'"/>
</ask>

the interpretor of the ask is not the cell (myCell) but the contained agents (including
the caller). I checked that myCell is correctly filled and it is the cased. In addition,
if I do:
<set var="myCell.color" value="rgb 'red'"/>
It is working correctly.

Cheers,
edouard

Original issue reported on code.google.com by grodwar on 2010-07-05 11:29:57

sort....

In GAMA 1.3, it was possible to write : 
sort my_list

Now In GAMA, there is no more difference between "sort" and "sort_by"
my_list sort (each.key)
my_list sort_by (each.key)

I miss the "sort" version GAMA 1.3, that was particularly usefull to directly sort
a list of numbers
let my_list type: list of: int value: [12,51,5,47,52,752,1]; 
let my_ordered_list type: list of: int value: sort (my_list);

Cheers,

Patrick

Original issue reported on code.google.com by patrick.taillandier on 2011-04-01 08:06:05

Refreshment problem when zooming whith "non square" data

When using 'non square' data (i.e. data where width/height != 1), some
parts of the simulation visualization frame are sometime not correctly
drawn when zooming. A “minimize/maximize” allows to correct this problem.

To reproduce this bug : 
1) load model : MODELS\gamavi_related\model_gis\test.xml
2) Push the button "Fit to view"

Original issue reported on code.google.com by patrick.taillandier on 2010-03-31 08:20:13

Black background after loading a model

I have a small problem with the displays when GAMA loads a model.
Indeed, I often have a black background...It is not so important as it disappears at
the first step, but it is quite annoying when you have a text written in black in one
of your display...
(to reproduce this bug, you can test : segregation_agents.xml)

Original issue reported on code.google.com by patrick.taillandier on 2011-04-01 08:20:23

Bug in the method "neighbours"

What steps will reproduce the problem?
1. Create a model of 4 species (Attachment: TestCollisionHorizontalWithSameSpeed-NeighbourBug.xml)
a. species "obstacle": 4 agents. The obstacle are loaded from file .shp (attachment
"TestCollisionHorizontal.shp")
b. species "people": 33 agents. Each of this kind of agent has a form geometric of
circle, and is placed near by each others.
c. species "people_x": 33 agents. Each of this kind of agent has a form geometric of
circle, and is placed near by each others.
d. species "but": 2 agents
2. Add the action "goto" to the species "people" and "people_x"
3. Set the "range" attribute of the species "people_x" 100
4. Place the action "write" in the species "people_x" to show the list of the neighbors.
The argument of this action is message who has the value "'neighbours : ' + string
neighbours". (Look the attachment "Gama-NeighbourBug-Code.png")

What is the expected output? What do you see instead?
- I expect to see the list of agents of the species "people_x" because the agents of
this kind are near by one another.
- In fact, the output displays the list of some obstacle agents. Some agents can not
find any neighbor. (Look the attachment "Gama-NeighbourBug-Result.png")

Please use labels and text to provide additional information.

Original issue reported on code.google.com by lvminh2k on 2010-08-19 10:32:07

Output files creation

What steps will reproduce the problem?
1. Use the StupidModel8 or any model creating an output file

What is the expected output? What do you see instead?

I expected to have 1 file by launch of the simulation.
Instead I have 1 file by compilation of the model file.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by benoit.gaudou on 2011-04-19 11:23:33

Non update of variable's init using another variable value

Problem concerning inheritance of initial value of variables. I have 2 classes B, inherits
from A.

Species A has 2 variables
  <var type="rgb" name="color" init="base_color"/>
  <var type="rgb" name="base_color" init="rgb 'black'" const="true"/>

I want that species B has a different base_color thus i should declare only:
  <var type="rgb" name="base_color" init="rgb 'red'" />

Although i have to also declare again:
  <var type="rgb" name="color" init="base_color"/>

or i would have the black as initial value of color in class B

Original issue reported on code.google.com by grodwar on 2010-04-12 10:47:59

Defining "aspect" for grid agent

I would like to be able to define "aspects" for grid agent.

Original issue reported on code.google.com by patrick.taillandier on 2011-03-29 15:40:34

Empty list of agent

During the world init i create all my agents in a ordered way. My flock agents reference
the farm ones thus i 
need a list of farms and i do like this:
<let name="available_farms" value="(list farm)" type="list" of="farm"/>

Although this variable appears to be empty until i do something like (tweak to make
it work):
<do action="write">
                <arg name="message" value="'list farm:\n'+(list farm)"/>    
            </do>

or i use this variable and set his value again like this (my original):
<create species="duckPond" number="numberFlockPond">
                <set name="myFarm" value="one_of available_farms"/>
                <set name="available_farms" value="available_farms - myFarm"/>
                <set name="location" value="myFarm.location"/>
            </create>
            <set name="available_farms" value="(list farm)"/>

You can check the attached model (comes from 
"gamavi_related/models_gis/gmaps2_tests_simples/9_optim_infection.xml"


edouard

Original issue reported on code.google.com by grodwar on 2010-04-14 03:33:31

overlapping not working for grid's cell on macosx.6

I wanted to use the 'overlapping' keyword for the cells to know if some specific agents
geometry overlap them:
/// (overlapping where (((species_of each) = pond) or ((species_of each) = ricefield)))
!= []  ///

Then i change their color (white to black), it is working on windows (patrick & benoit's
computers) but not on macosx (only my computer tested).

see attached file and in models svn: gamavi_related/model_gis/gmaps2_tests_simples/14_test_overlapping_patrick.xml
(need some shapefiles)

Cheers,
Edouard

Original issue reported on code.google.com by grodwar on 2010-06-10 07:04:50

Histogram: order of the value on the x axis

What steps will reproduce the problem?
1. Launch the Stupid Model6 of the StupidModel Tutorial

What is the expected output? What do you see instead?

The order of the parameters on the x axis are very strange:
"50,60" ; "40,50" ; "20;30" ; "80;90" ; "30;40" ; "70;80" ; "10;20" ; "60;70" ; "0;10"
; "90;100"

Please use labels and text to provide additional information.

On windows XP 32 bits

Original issue reported on code.google.com by benoit.gaudou on 2011-04-18 16:33:25

Division by zero

What steps will reproduce the problem?
1. Open a model (for example Stupid Model2) and make a division by zero in the GAML
source code such as: 
        var size type: int init: 0;
        var color type: rgb value: rgb [255, 255/size, 255/size];
Note that we have the same result with (due to casting) 
        var size type: int init: 0.1;

What is the expected output? What do you see instead?

I could expect something like an exception or at least a stop in the simulation. Instead
the simulation seems to continue running (the numbre of steps continues to increase)
but nothing happens in the display.



Original issue reported on code.google.com by benoit.gaudou on 2011-04-17 20:14:33

program is halted when using abstract keyword

Dear All,

I have a small bug in my program. 

1. In the first file, I declare variable "stepNum":
import "../includes/sample1.gaml"

global {
    var stepNum type: int init: 0;

    const step type: int init: 1;

    init;

    reflex when: stepNum < 1285 {
        set stepNum value: stepNum+1 ;
    }
}

2. In the second file (sample1.gaml), I refer the value of variable "stepNum" by commands:
var degreee type: float init: 0.0;
var degreeList type: list of: float init: [0,22.5,45,67.5,90,112.5,135,157.5,180,202.5,225,247.5,270,292.5,315,337.5];

    reflex {
        abstract stepNum;
        set degreee value: ((degreeList as list) at stepNum);
               }

When I run the first file, the program is halted in step 1.

But, when I insert the command "write" like this in the second file:
    reflex {

        abstract stepNum;

        do action: write {
            arg message value: stepNum;
        }

        set degreee value: ((degreeList as list) at stepNum);
         }

The program worked well, it seems that "action: write" took successfully the value
of stepNum. I can not explain this, 

Cheers,
Nguyen Vinh

Original issue reported on code.google.com by nngvinh on 2011-04-06 03:19:42

Use of actions of built-in agents

Hi,


For my new model, I need to use the 'multicriteria_analyzer' agent and, in particular,
its 'weighted_means_DM' action.

However, though it was working quite well with GAMA 1.3, I did not succeed in using
it with GAMA 1.4.

The action 'multicriteria_analyzer' takes two arguments as parameters:
- criteria: a list of maps, each map represents a criterion (its name, and its weigth).
- candidates : a list of list, each sub-list represents a candidates and is a vector
of values (for each parameter).

The action returns a integer that is the index of the best candidate.

You can test the action (that does not work) with the following simple model : 

model mca

import "platform:/plugin/msi.gama.gui.application/generated/std.gaml"

global {
    var mca type: multicriteria_analyzer;
    var criteres type: list value:[['name'::'c1', 'weight'::3], ['name'::'c2', 'weight'::1]];

    init {
        create species: multicriteria_analyzer;
        set mca value: first ( multicriteria_analyzer as list ) ; 
        let cands type: list value: [];
        loop times: 10 {
            let vals type: list value:[];
            add item:  rnd (1000) / 1000 to: vals;
            add item:  rnd (1000) / 1000 to: vals;
            add item: vals to: cands;
        }
        let index type: int value:-1;
        ask target: mca {
            set index value: self.weighted_means_DM [candidates::cands, criteria::criteres];    
        }
        do action: write {
            arg message value: 'index : ' + index;
        }
    }
}

Cheers,

Patrick

Original issue reported on code.google.com by patrick.taillandier on 2011-04-06 14:55:36


- _Attachment: [mca.gaml](https://storage.googleapis.com/google-code-attachments/gama-platform/issue-40/comment-0/mca.gaml)_

Porblem when reloading a simulation several times

When reloading several times the model "demogis/squareDisctretisation.xml

an error appears : 

Exception in thread "Thread-8" java.lang.NullPointerException
    at msi.gama.metamodel.skills.Skill.setReturn(Skill.java:56)
    at
msi.gama.metamodel.skills.MovingSkill.gotoTargetInsideGeom(MovingSkill.java:416)
    at msi.gama.metamodel.skills.MovingSkill.primMoveTo(MovingSkill.java:336)
    at GAMA_primMoveTo_444.execute(Unknown Source)
    at
msi.gaml.commands.PrimitiveCommand.privateExecuteOn(PrimitiveCommand.java:60)
    at msi.gaml.commands.AbstractCommand.executeOn(AbstractCommand.java:49)
    at msi.gaml.commands.DoCommand.privateExecuteOn(DoCommand.java:84)
    at msi.gaml.commands.AbstractCommand.executeOn(AbstractCommand.java:49)
    at msi.gaml.commands.SequenceCommand.executeOn(SequenceCommand.java:40)
    at msi.gaml.commands.GroupCommand.executeOneCommandOn(GroupCommand.java:68)
    at msi.gaml.commands.GroupCommand.privateExecuteOn(GroupCommand.java:54)
    at msi.gaml.commands.ReflexCommand.privateExecuteOn(ReflexCommand.java:65)
    at msi.gaml.commands.AbstractCommand.executeOn(AbstractCommand.java:49)
    at msi.gaml.commands.SequenceCommand.executeOn(SequenceCommand.java:40)
    at
msi.gama.metamodel.species.AbstractSpecies.executeReflexesOn(AbstractSpecies.java:755)
    at
msi.gama.metamodel.species.AgentSpecies.executeReflexesOn(AgentSpecies.java:418)
    at msi.gama.metamodel.agent.Entity.activateReflexes(Entity.java:91)
    at msi.gama.metamodel.agent.Entity.step(Entity.java:96)
    at msi.gama.metamodel.species.AgentSpecies.step(AgentSpecies.java:426)
    at
msi.gama.kernel.managers.SpeciesManager.stepAllSpecies(SpeciesManager.java:180)
    at msi.gama.kernel.managers.SpeciesManager.step(SpeciesManager.java:173)
    at msi.gama.kernel.Scheduler.step(Scheduler.java:83)
    at
msi.gama.kernel.controllers.GamaSimController$1.run(GamaSimController.java:175)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by patrick.taillandier on 2010-04-12 10:50:40

context menu problem under ubuntu

What steps will reproduce the problem?
1. right clicking on the main view under ubuntu
2.
3.

What is the expected output? What do you see instead?
There is only a gray empty box. The menu items do not show up.

What version of the product are you using? On what operating system?
last svn

Please provide any additional information below.

Original issue reported on code.google.com by guillaume.c.cherel on 2010-05-25 12:52:07

Problem with the "create command" when discretising a geometry

Maybe a stupid bug ....

If it is possible to discretise the geometry of a agent that is well
defined, for example : 
<create from="bd" species="bulding" size="50"/>

It does not seem to work when doing the same thing from an agent
represented by the keyword "self":
<create from="self" species="bulding" size="50"/>

The problem seems to come from the facet "FROM" that has not type and thus
that not understand the keyword "self"

Original issue reported on code.google.com by patrick.taillandier on 2010-03-31 08:31:44

Histogram and name

What steps will reproduce the problem?
1. Open the StupidModel6
2. Add a new histogram (with the same name) : 
    display histogram_display {
        chart name: 'Size distribution' type: histogram background: rgb('lightGray') {
            data name: "[0;10]" value: bugs count (each.evol < 10);
            data name: "[10;20]" value: bugs count ((each.evol > 10) and (each.evol < 20));
            data name: "[20;30]" value: bugs count ((each.evol > 20) and (each.evol < 30));
            data name: "[30;40]" value: bugs count ((each.evol > 30) and (each.evol < 40));
            data name: "[40;50]" value: bugs count ((each.evol > 40) and (each.evol < 50));
            data name: "[50;60]" value: bugs count ((each.evol > 50) and (each.evol < 60));
            data name: "[60;70]" value: bugs count ((each.evol > 60) and (each.evol < 70));
            data name: "[70;80]" value: bugs count ((each.evol > 70) and (each.evol < 80));
            data name: "[80;90]" value: bugs count ((each.evol > 80) and (each.evol < 90));
            data name: "[90;100]" value: bugs count ((each.evol > 90) and (each.evol < 100));
        }
    }
    display histogram_display {
        chart name: 'Size distribution' type: histogram background: rgb('lightGray') {
            data name: "[0;10]" value: bugs count (each.evol < 10);
            data name: "[10;20]" value: bugs count ((each.evol > 10) and (each.evol < 20));
            data name: "[20;30]" value: bugs count ((each.evol > 20) and (each.evol < 30));
            data name: "[30;40]" value: bugs count ((each.evol > 30) and (each.evol < 40));
            data name: "[40;50]" value: bugs count ((each.evol > 40) and (each.evol < 50));
            data name: "[50;60]" value: bugs count ((each.evol > 50) and (each.evol < 60));
            data name: "[60;70]" value: bugs count ((each.evol > 60) and (each.evol < 70));
            data name: "[70;80]" value: bugs count ((each.evol > 70) and (each.evol < 80));
            data name: "[80;90]" value: bugs count ((each.evol > 80) and (each.evol < 90));
            data name: "[90;100]" value: bugs count ((each.evol > 90) and (each.evol < 100));
        }
    }

What is the expected output? What do you see instead?

With two displays with the same name, only one appears without any error/warning message.
Moreover it should be usefull that the name of the display appears instead of "Display
(AWT)"
Moreover again, is there a way to precise in the GAML in which tab we want that the
display to be showed.

What version of the product are you using? On what operating system?

GAMA 1.4, Windows XP 32 bits

Please provide any additional information below.

Remark : the bug on the label order has been fixed. Thanks !

Original issue reported on code.google.com by godzounet on 2011-04-19 08:37:58

Problem with "myself"

The model used "self" instead of "myself"

I have an action that is called in a "ask" command and in which there isa
problem between the "self" and the "myself" : the geometric action is
applied on agent free_area instead of agent mare

<action name="update_voisinage">
<ask target="free_area">
<set name="geometry" value="myself neighbourhood_exclusive
[species::[mare],buffer_others::0.5,distance::300]" />
</ask>  
</do>   
</action>

Original issue reported on code.google.com by patrick.taillandier on 2010-04-14 02:38:16

GAMA 1.4 and myself

the keywork "myself" is not compiled by GAMA 1.4 .... bug or evolution of the langage
?

Cheers,

Patrick

Original issue reported on code.google.com by patrick.taillandier on 2011-04-01 07:54:58

gama on ubuntu 64bits

Hello,

I want to use gama on ubuntu 10.04 64 bits but it don't work ?
@+

Original issue reported on code.google.com by pascal.obstetar on 2010-09-30 06:40:45

OutOfMemoryError exception raised when building roads on GIS environment

What steps will reproduce the problem?
1. Open and run the "emergency" model on GAMA 1.3 (found in the MODELS/emergency_GAMA.1.3
projects).

What is the expected output? What do you see instead?
In several hundreds of simulation step (depending on the amount of heap memory allocated),
java.lang.OutOfMemoryError is raised. A smaller version of GIS data is used, but the
exception still raised.

The YourKit Profiler shows that the size of an ArrayList variable is nearly 1GB. This
ArrayList is the "path" variable in "msi.gama.extensions.geometry.graph.AbstractStaticOptimizer.getAllRoadsBetween".

Original issue reported on code.google.com by voducanvn on 2010-08-11 11:21:24

The Batch is not working

The Batch is not working

Original issue reported on code.google.com by patrick.taillandier on 2010-04-12 10:47:25

Wrong colors in charts

The colors of data series are wrong in charts, except the first one both as a separated
display or 
included in the "main" one. Check the example attached.

Original issue reported on code.google.com by grodwar on 2010-04-12 09:00:06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.