112683ea42
[add][mod] added output files and modified config - added OutputFile class to library - [mod] use file from arg as config if exists - [mod] added readme text
trunk
Pascal2020-01-29 02:31:50 -06:00
8f47875cd7
[add] added missing block parsing - added mergeMaps function to library - added block function to Cell class
Pascal2020-01-29 01:19:11 -06:00
05a3a88f83
[fix] fixed behaviour timeline map parsing - added missing config.tickfactor when a map is used
Pascal2020-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
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
446e4268f1
[fix] fixed child groups lagging a tick behind their parent
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
646bea1117
[mod] changed behaviour name and modified config - use modifier in config - removed unused sensors
Pascal2020-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
Pascal2020-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]
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
c96e8a4a0c
[add] added SimulationBehaviour functions - this allows to simulate the new config file
Pascal2020-01-29 01:19:11 -06:00
4073a93f44
[add][fix] added distance func to Cell and fixed missing import in library
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
8680e0e2bb
[mod] modified output to display ground truth
Pascal2020-01-29 01:19:11 -06:00
33d93bfc39
[add][fix] added baseline group in config - [fix] fixed some formating errors
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
60aa97d9fc
[add] added full configuration file
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
a5ced64f35
[fix] fixed # of runs to reflect config file
Pascal2020-01-29 01:19:11 -06:00
4233573afd
[mod] made console output human readable
Pascal2020-01-29 01:19:11 -06:00
d024ef84f8
[ref] moved functionality of results and sim objects into traits - added Interfaces.scala for traits
Pascal2020-01-29 01:19:11 -06:00
e84a253648
[add] finished internal parser - the parser now returns a Configuration
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
961d14e96e
[mod] modified traversableToMap to have a default function
Pascal2020-01-29 01:19:11 -06:00
86e383922d
[mod][fix] modified config to be more sane and fixed output thread
Pascal2020-01-29 01:19:11 -06:00
a7817d04ec
[add] added configuration mapping to parser
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
94e64e3d42
[fix] fixed bug in parseTimeLineElement and parseFunction - damn you Lua arrays!!!
Pascal2020-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
Pascal2020-01-29 01:19:11 -06:00
cea02cc076
[add][mod] added function to return closest keys in map - [mod] modified Time to extend Ordered
Pascal2020-01-29 01:19:10 -06:00
6028326872
[mod] moved library file into folder lib
Pascal2020-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
Pascal2020-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...
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:10 -06:00
bd22a441f0
[fix] just removing unused case classes
Pascal2020-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
Pascal2020-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
Pascal2020-01-29 01:19:10 -06:00
575ae2a14a
[fix] fixed typo and error in config description
Pascal2020-01-29 01:19:10 -06:00