Giter Site home page Giter Site logo

cacu http requests about vessim HOT 5 CLOSED

dos-group avatar dos-group commented on June 15, 2024
cacu http requests

from vessim.

Comments (5)

birnbaum avatar birnbaum commented on June 15, 2024

Not sure if we had a reason for this, but why is the CACU implemented on top of SimPy? We could simply do a while True and send requests once per minute using sleep :)

from vessim.

marvin-steinke avatar marvin-steinke commented on June 15, 2024

Ah yes, no I copied that from your notebook. But still, if we want to achieve similiar results to the simulated scenario, I think the requests should be made as a thread to not fall behind the total runtime.

from vessim.

birnbaum avatar birnbaum commented on June 15, 2024

but the cacu as well as the API server are independent processes, they should have nothing to do with the simulation, no?

from vessim.

marvin-steinke avatar marvin-steinke commented on June 15, 2024

yes but we want to recreate the data from your paper. Now in your notebook there is no delay for setting the power mode. However, there is in the real cacu as of now. Should the cacu wait until the power mode is set in the VES or continue, i.e. the power mode request is executed as a thread? If the cacu is excuted on the same machine as the simulation this probably does not matter but I think we still need to cover other cases.

from vessim.

marvin-steinke avatar marvin-steinke commented on June 15, 2024

=> 60s for each "step". Determine a time delta for the step execution time and then time.sleep(60 - delta)

from vessim.

Related Issues (20)

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.