Giter Club home page Giter Club logo

Comments (6)

JesusLopezBaeza avatar JesusLopezBaeza commented on June 22, 2024

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

from csl_hamburg_hpa.

agrignard avatar agrignard commented on June 22, 2024

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

from csl_hamburg_hpa.

agrignard avatar agrignard commented on June 22, 2024

@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)

from csl_hamburg_hpa.

agrignard avatar agrignard commented on June 22, 2024

@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?

from csl_hamburg_hpa.

JesusLopezBaeza avatar JesusLopezBaeza commented on June 22, 2024

@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

from csl_hamburg_hpa.

agrignard avatar agrignard commented on June 22, 2024

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)

from csl_hamburg_hpa.

Related Issues (17)

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.