{"id":22140671,"url":"https://github.com/athlan/polsl-tpdia-event-generator","last_synced_at":"2026-01-05T13:41:30.726Z","repository":{"id":19865003,"uuid":"23128466","full_name":"athlan/polsl-tpdia-event-generator","owner":"athlan","description":"Event Generator and Materialized Aggregates List Framework for petrol station (TPDIA course, Silesian University of Technology)","archived":false,"fork":false,"pushed_at":"2015-01-19T20:17:00.000Z","size":588,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T16:26:31.554Z","etag":null,"topics":["aggregation","mal"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-19T22:57:51.000Z","updated_at":"2017-08-12T10:17:54.000Z","dependencies_parsed_at":"2022-08-25T21:10:33.972Z","dependency_job_id":null,"html_url":"https://github.com/athlan/polsl-tpdia-event-generator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fpolsl-tpdia-event-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fpolsl-tpdia-event-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fpolsl-tpdia-event-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Fpolsl-tpdia-event-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athlan","download_url":"https://codeload.github.com/athlan/polsl-tpdia-event-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245258214,"owners_count":20585977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aggregation","mal"],"created_at":"2024-12-01T21:07:02.049Z","updated_at":"2026-01-05T13:41:30.685Z","avatar_url":"https://github.com/athlan.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"polsl-tpdia-event-generator\n===========================\n\nEvent Generator for petrol station (TPDIA course, Silesian University of Technology)\n\n## EventEmitter program\n\nThe program that emits events are written in Node.js and reads the event cumulative function model form BMP (described later) file and geneates number of events in specified time gaps.\n\nProgram is generic-written on event bus, but in default implementation runs tcp server on 3005 port (by default) allowing many clients to listen event occurences.\n\nTo run program just type in CLI:\n\n```\ncd EventEmitter\nnode index.js\n```\n\nMoreover, sample client is provided to listen events:\n\n```\ncd EventEmitter\nnode sample-client.js\n```\n\n#### Requirements\n\n* node.js v0.10.15\n* Java (JRE 1.7)\n\n## Generate event cumulative function model\n\n### Reading sample event cumulative function model form BMP file\n\nThe model expects the black-and-white BMP image with plot that describes the number of\nevents occured in specified period of time. The BMP image should be black-and-white\nand have one black pixel in each column.\n\nThe number of columns (image width) defines the granulity of one day (time gaps), for example\nthe image with width 1440 defines that each column describes the period of one minute.\n\nImage height defines maximum evevnt occurences in specified period of time, for example\n1440x100 image defines 0-100 occurnces in each minute in a day.\n\n`run-dump-plot-data-from-bmp.sh` program finds the most-top black pixel in each column and prints out its position on image\nfor each image column.\n\nThe number of columns is same as image width. The position is\nbottom-related, that means the position od most black pixel is defined\nas offset position from the bottom of image.\n\n#### Example BMP plot\n\n![Example BMP plot](https://raw.githubusercontent.com/athlan/polsl-tpdia-event-generator/master/DumpPlotDataFromBmp/wykres.bmp)\n\n#### Run precompiled program\n\n```\n./run-dump-plot-data-from-bmp.sh ./DumpPlotDataFromBmp/wykres.bmp\n```\n\nwhere `./DumpPlotDataFromBmp/wykres.bmp` is path to your plot file.\n\n#### Compile project\n\n```\ncd DumpPlotDataFromBmp\ngradle clean build\n```\n\n#### Read the points from plot saved as BMP file:\n\n```\njava -jar build/libs/DumpPlotDataFromBmp.jar plot.bmp\n```\n\n#### Requirements\n\n* Java (JRE 1.7, JDK 1.7)\n* Gradle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Fpolsl-tpdia-event-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathlan%2Fpolsl-tpdia-event-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Fpolsl-tpdia-event-generator/lists"}