05a3a88f83
[fix] fixed behaviour timeline map parsing
...
- added missing config.tickfactor when a map is used
2020-01-29 01:19:11 -06:00
a5984f037e
[fix] fixed change behaviour time and truth issues
...
- targettime + 1 to reach the target at the configured time
- output now correctly uses recalculated truth
2020-01-29 01:19:11 -06:00
95bc1363f9
[add] added missing tickfactor parsing
...
- override Time compares to only use Time.time
- added Option[Int] tickfactor to Time class
- behaviours need to be selfaware and use Time.tickfactor
- addded tickfactor to simulation time vector
- added parser tickfactor parsing
- modified output to use tickfactor aware duration
2020-01-29 01:19:11 -06:00
c68d9ab807
[o7] version 1.0
2020-01-29 01:19:11 -06:00
926b8c0efb
[mod] added back baseline cells
...
- this is only for demonstrating purposes
- output print the gt of baseline for each configured cell
2020-01-29 01:19:11 -06:00
446e4268f1
[fix] fixed child groups lagging a tick behind their parent
2020-01-29 01:19:11 -06:00
b427ca2233
[mod] modified output and config
...
- output parent display now shows all parent types
- sensor count in config block is now a multiple of the cells
2020-01-29 01:19:11 -06:00
b61dbaa266
[add][mod] added consoleUtil to lib, beautified output
...
- simple coloring for print
- [mod] changed console output to use colors
2020-01-29 01:19:11 -06:00
646bea1117
[mod] changed behaviour name and modified config
...
- use modifier in config
- removed unused sensors
2020-01-29 01:19:11 -06:00
75988aa521
[ref][fix] refactored Publisher trait
...
- now uses watchFrame instead of vector
- all BroadcastObject uses are moved to interfaces
- [fix] fixed missing writeLock in BroadcastObject
2020-01-29 01:19:11 -06:00
56b46d4dfb
[add][mod] added missing behaviours from example and some more factories
...
- measureGeneric, randomOutput, measureTempFault
- randomOutputFactory, sensorModifierFactory
- [mod] optional args fomr FunctionArgs now use Option[A]
2020-01-29 01:19:11 -06:00
4e5d9570ad
[add][mod] added getKey and getKeyOrElse for Map[String, Any] in mapUtil
...
- [mod] use getKey and getKeyOrElse from mapUtil in FunctionArgs
2020-01-29 01:19:11 -06:00
c7013eddd4
[mod][fix] modified getParam to allow for None if it doesn't exist
...
- this allows for optional parameters
- [fix] only catch NonFatal errors in getParam
2020-01-29 01:19:11 -06:00
c96e8a4a0c
[add] added SimulationBehaviour functions
...
- this allows to simulate the new config file
2020-01-29 01:19:11 -06:00
4073a93f44
[add][fix] added distance func to Cell and fixed missing import in library
2020-01-29 01:19:11 -06:00
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