Commit Graph

35 Commits

Author SHA1 Message Date
7f6614fbc2 [fix] fixed bug in sim that passed the wrong truth to child groups
- also checks and warns if a sensor parent has another sensor parent
2020-01-29 01:19:11 -06:00
e01db9fb34 [fix] fixed bugs in parser
- [fix] fixed out of bound error
 - [fix] fixed ground truth to not requiring "truth" key if parent exist
 - [fix] fixed group list overwriting itself in groupMapper function
2020-01-29 01:19:11 -06:00
8680e0e2bb [mod] modified output to display ground truth 2020-01-29 01:19:11 -06:00
33d93bfc39 [add][fix] added baseline group in config
- [fix] fixed some formating errors
2020-01-29 01:19:11 -06:00
b264e0dba9 [add][fix] added numberUtil and behaviourUtil to library
- numberUtil adds functions to Double
 - behaviourUtil adds functions to Option[FunctionArgs]
 - [add] getParam function to FunctionArgs case class
 - [fix] fixed typo in config
2020-01-29 01:19:11 -06:00
e0adbebb6c [fix] fixed truth children not receiving parents result
- they should not get preconfigured truths, only results of their parent
2020-01-29 01:19:11 -06:00
60aa97d9fc [add] added full configuration file 2020-01-29 01:19:11 -06:00
0d651019c9 [ref] added Publisher and SimConfig trait
- Publisher trait allows simulation to publish and Output to subscribe
 - Simconfig trait wraps simulation config settings
2020-01-29 01:19:11 -06:00
a5ced64f35 [fix] fixed # of runs to reflect config file 2020-01-29 01:19:11 -06:00
4233573afd [mod] made console output human readable 2020-01-29 01:19:11 -06:00
d024ef84f8 [ref] moved functionality of results and sim objects into traits
- added Interfaces.scala for traits
2020-01-29 01:19:11 -06:00
27c0ea4b35 [fix] fixed simulation to pass proper results 2020-01-29 01:19:11 -06:00
e84a253648 [add] finished internal parser
- the parser now returns a Configuration
2020-01-29 01:19:11 -06:00
ab825f8bf0 [mod] modified SharedMemory to include a map of all groups
- this is to get sensor parent groups if no truth is calculated
2020-01-29 01:19:11 -06:00
961d14e96e [mod] modified traversableToMap to have a default function 2020-01-29 01:19:11 -06:00
86e383922d [mod][fix] modified config to be more sane and fixed output thread 2020-01-29 01:19:11 -06:00
a7817d04ec [add] added configuration mapping to parser 2020-01-29 01:19:11 -06:00
1277695610 [mod][mod] modified simulation to match design behaviour
- a truth from config file is used as prevTruth if exists
 - [mod] modified configuration to return quickly on dummy sensors
2020-01-29 01:19:11 -06:00
94e64e3d42 [fix] fixed bug in parseTimeLineElement and parseFunction
- damn you Lua arrays!!!
2020-01-29 01:19:11 -06:00
b640ca4a65 [mod][mod] modified function to return closest keys in map into object
- two variants, one with binary search, the other with iterate
 - [mod] modified debug to closer mirror linux kernel debug
 - [mod] just added a few comments in parser and simulation
2020-01-29 01:19:11 -06:00
cea02cc076 [add][mod] added function to return closest keys in map
- [mod] modified Time to extend Ordered
2020-01-29 01:19:10 -06:00
6028326872 [mod] moved library file into folder lib 2020-01-29 01:19:10 -06:00
bd24002ee1 [mod] reduced memory footprint of output and reset everything after a run
- instead of copying the output, a vector indicates if a time is done
 - a full run has to be consumed by the output before the next
2020-01-29 01:19:10 -06:00
5748b8272a [mod] modified broadcastobject to mirror a real live broadcast better
- allow to watch until a specific or later frame has been cast
 - allow to return from watching if the broadcast is ended
 - allow to reset the broadcast to be reset
 - in retrospect this wasnt really needed for the project...
2020-01-29 01:19:10 -06:00
1e61253b3b [add][fix] added output that can be run parallel to the simulation
- the output sleep waits for a full tick result
 - [fix] fixed the simulation to pass the correct gt parent if exists
2020-01-29 01:19:10 -06:00
fee44785d4 [mod][fix] modified the sim to not pass the entire shared memory
- [mod] this change should be faster at the cost of memory
 - each underlying call only gets the required data instead of everything
 - [mod] renamed Group param to better reflect its purpose
 - [mod] changed Time to incorporate the total duration as well
 - [fix] fixed shared memory mapping to match simulation
2020-01-29 01:19:10 -06:00
bd22a441f0 [fix] just removing unused case classes 2020-01-29 01:19:10 -06:00
8c47396964 [add] added example for location based sensor defect
- args in a behaviour allow for a simulation of a location based defect
 - allows for the defect to happen inside the same group
2020-01-29 01:19:10 -06:00
32438ef5b8 [add] multiple commits merged
# Conflicts:
#	docs/wiki/config/config.yml
#	src/main/scala/scim/Main.scala
#	src/main/scala/scim/archive/Elements.scala
#	src/main/scala/scim/archive/GroundTruth.scala
#	src/main/scala/scim/datastruct/Configuration.scala
#	src/main/scala/scim/lib/Concurrency.scala
2020-01-29 01:19:10 -06:00
00669fa9d3 [add] added full yml parsing to scala collection objects
- added a simple parsing test
 - added conversion utils for Any to Map and nested objects
 - added a quick indented printout util for scala collection objects
2020-01-29 01:19:10 -06:00
575ae2a14a [fix] fixed typo and error in config description 2020-01-29 01:19:10 -06:00
feb31da347 [add] added simple yml parsing 2020-01-29 01:19:10 -06:00
d1357ac099 [add] added gradle build files 2020-01-29 01:19:10 -06:00
1b2f23670a [fix] fixed wrong whitespaces in config.yml 2020-01-29 01:19:10 -06:00
a50b386cad [add] added initial configuration wiki entry 2020-01-29 01:19:10 -06:00