Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBF_Details.gaml compiling but not doing anything #7

Closed
agrignard opened this issue Nov 21, 2018 · 6 comments
Closed

HBF_Details.gaml compiling but not doing anything #7

agrignard opened this issue Nov 21, 2018 · 6 comments

Comments

@agrignard
Copy link
Contributor

When running this model it seems that nothing happens

@agrignard agrignard changed the title HBF_Details.gaml compiling but not doign anything HBF_Details.gaml compiling but not doing anything Nov 21, 2018
@JesusLopezBaeza
Copy link
Collaborator

@agrignard Try this branch. It is supposed to represent trains arriving randomly, so it may take a bit for the trains to arrive.

@agrignard
Copy link
Contributor Author

As a rule of thumb It would be better t have waht is working in the master. I cannot explore all the branch.

The idea of branching is for development and as soon as it's ready it goes to the master

@agrignard
Copy link
Contributor Author

@JesusLopezBaeza "this branch" is not working. Did you merge it in the master? In that case as a general github workflow it's good to mention in the issue that it has been fixed (and potentially close the issue if you think it's solved)

@agrignard
Copy link
Contributor Author

@JesusLopezBaeza ok the model is working now but what about having a train a bit sooner? Why do we have to wait so long to have a train arriving?

@JesusLopezBaeza
Copy link
Collaborator

@agrignard For the moment the arrival of trains is set as random. Is it possible to schedule cyclical actions every certain amount of time? It would be great to have a train coming every hour

@agrignard
Copy link
Contributor Author

So you could use something like this in a global reflex

if (cycle mod 3600 =0){
create train;
}

If you want to have a finer way of managing time you can also have a look at this example:
https://github.com/gama-platform/gama/blob/master/msi.gama.models/models/Features/Date%20and%20Time/Simple%20Time%20definition.gaml

You will see that you can define the variable step to explicitly saying how long is a step (by default it's 1 second)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants