Skip to content

[CM] cannot create an experiment in another experiment #775

@lesquoyb

Description

@lesquoyb

Describe the bug
While co-modeling allows to create experiment inside the global of a different file, it doesn't allow it in another experiment for some reason, even though we can manipulate them.

To Reproduce
Steps to reproduce the behavior:

  1. After creating a explorationBatches.gaml file containing an experiment called Simple Run this model:
model batchtests

import "../includes/explorationBatches.gaml" as exploration

global {

	init {
		create exploration.Simple;
	}	
	
}

experiment Batchtests type: gui {
	
	init {
		create exploration.Simple;
	}
}
  1. See that the first create statement compiles, but not the second because "No instance of explorationbatches_model available for creating instances of Simple"
  2. you can replace the second create by an ask statement and see that there is no problem interacting with the "Simple" experiments

Expected behavior
Being able to completely manipulate experiments inside another experiment, including creation

Metadata

Metadata

Assignees

No one assigned

    Labels

    About Co-ModelingThis issue concerns the co-modeling architectureAbout GAMLThis issue concerns the GAML language😱 BugThe issue reveals a bug in GAMA

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions