Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miselico/discrete-time-simulator
This is a work in progress discrete time simulator written in Go
https://github.com/miselico/discrete-time-simulator
Last synced: about 2 months ago
JSON representation
This is a work in progress discrete time simulator written in Go
- Host: GitHub
- URL: https://github.com/miselico/discrete-time-simulator
- Owner: miselico
- Created: 2014-09-12T12:00:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T20:49:57.000Z (over 10 years ago)
- Last Synced: 2023-09-05T04:18:01.263Z (over 1 year ago)
- Language: Go
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
discrete-time-simulator
=======================This is a work in progress discrete time simulator written in Go.
:warning: **The code is not usable in its current state** :warning:
The following are general ideas for the design:
* There is a global clock, which increments with the time needed till the next event
* The active components in the system are processes
* Processes can communicate with each other trough named queues
* a send and receive on a queue can have a time-out
* a queueu has a maximum size
* Processes only perceive relative time (no knowledge about absolute time)
* Processes are run in separate go routines
* All actions preformed are loggedProcesses can
* Post new events to the system
* Perform actions which take a reported amount of time
* The time for the action is what is reported, not how long the simulation took.
* Sleep