Stormwind
6d9eecb5e5
Add implementation of Rubella::Weighting::PerOverallLoad
2015-04-25 22:09:16 +02:00
Stormwind
f825743491
Fix for raise ArgumentError
2015-04-25 20:11:05 +02:00
Stormwind
6c0705df3b
Fix for raise NotImplementedError
2015-04-25 20:06:20 +02:00
Stormwind
66b2becebd
Rework output API
...
Now you give the data at the creation of the object to render it
later.
So you need to create a new output object for every new set of data.
2015-04-25 17:02:39 +02:00
Stormwind
2bb29d9e8d
Prefill Storage with zero values
...
Only if Storage already has some data.
Disable empty and prefill feature if given lenght is 0.
2015-04-25 16:31:32 +02:00
Stormwind
01c1f97750
Drop entries in storage, if more than new length
2015-04-25 15:48:45 +02:00
Stormwind
26d09a71fd
Move Map class to seperate file
...
The class Map hat now an own file named after the class.
So the rest seems a bit more independent.
2015-03-14 10:54:03 +01:00
Stormwind
808e8972b5
Concatunate storages into new storage
...
Now we cat add new data to the old storage, which returns a new storage
containg first the new data and then the old data.
Plus a test for this, because it's not implemented now.
2015-03-14 10:29:15 +01:00
Stormwind
cf426e2a48
Add Rubella::Input::Base
...
Add a base class for Inputs so we have an interface for this.
Use this interface in Rubella::Input::JSON.
2015-02-24 21:45:57 +01:00
Stormwind
600443ddd4
Improvement of Rubella::Output::ASCII
...
I've fixed a bug, which causes, the 11 than 10 lines tho the outputted data.
Now the empty line at the end is removed.
Corresponding to the base class create now returns self.
I also added some documentation.
2015-02-24 21:30:14 +01:00
Stormwind
f5efd50d9f
Improvement of Rubella::Output::Image
...
The class now overwrites the constructor of the basic class to set a default
field_size value of 15 pixels.
It also returns self in the create method corresponding to the base class.
Plus I've added the documentation.
2015-02-24 20:57:56 +01:00
Stormwind
e6922a81a5
Add abstract create method
...
Now the create method belongs to the Output API and must be inmplemented in
the concrete classes.
I also added some docu there.
2015-02-24 20:39:55 +01:00
Stormwind
4fb2199599
Fix documentation
2015-02-24 20:39:33 +01:00
Stormwind
85f2627ac6
Fix documentation
2015-02-24 20:38:47 +01:00
Stormwind
65cf4f6b15
Use Rubella::Output::Base
...
Not complete yet.
2015-02-23 22:29:18 +01:00
Stormwind
c8ba902bc9
Add (still empty) base class for Rubella::Output
2015-02-23 22:12:26 +01:00
Stormwind
9f653408d7
Use new Storage class
...
The new Storage class is now used. It's atm not used, as it should be, but for
the first implementation it's okay. Improvement will follow.
2015-02-23 22:00:32 +01:00
Stormwind
7e53960271
Load Storage
2015-02-23 21:57:05 +01:00
Stormwind
6702a58851
Add a storage
...
This storage should contain the weighted data, before it it's used in the
output classes. So we can create a timeline.
Plus we have a nice place to store the weighted data.
2015-02-23 21:54:01 +01:00
Stormwind
a80c46c5c9
Create a base class for weighting
...
This class should contain methods, which are used in more than one weighting
class.
At the moment it contains the bucket handling.
2015-02-23 21:28:41 +01:00
Stormwind
7c7c554d83
Add documentation for Rubella:Weighting::PerValue
2015-02-22 23:06:42 +01:00
Stormwind
3bfb03c29c
Add documentation and TODOs for JSON input
2015-02-22 22:40:52 +01:00
Stormwind
7a42644b3b
Add possibility to change symbol sets
2015-02-22 22:32:39 +01:00
Stormwind
59d5a3a144
Add multiple symbol sets
2015-02-22 22:24:25 +01:00
Stormwind
74016715df
Improve math and erase case-selection
...
Now mathematics does the job ob the case statemant.
2015-02-22 22:12:28 +01:00
Stormwind
1ec11e4f5c
Use a instance variable instead of static values for shades
...
So I can provide different types of symbols for the ascii heatmap
2015-02-22 08:40:58 +01:00
Stormwind
586c0a4476
Improve ASCII output
2015-02-20 21:59:59 +01:00
Stormwind
a8e226205c
Use 10 Shades instead of 5 in ASCII output
2015-02-20 21:57:24 +01:00
Stormwind
5b72c19df0
Add ASCII art output
...
Just for fun
2015-02-19 23:39:39 +01:00
Stormwind
b337198350
Add some more doc
2015-02-19 22:40:38 +01:00
Stormwind
a56080e3ee
Add some doc
2015-02-19 18:30:09 +01:00
Stormwind
8ac724a4c0
Use load_by_name also for Weighting
...
Plus add a functionallity to convert CamelCase into snake_case.
2015-02-19 18:07:03 +01:00
Stormwind
aea2b5bb3c
Use load_by_name for Output
2015-02-19 17:30:22 +01:00
Stormwind
de82dbb5f6
Move content of input_by_name in own method
...
To make the suff even more generic. So I can reuse it for Output and Weighting
too.
2015-02-19 17:22:47 +01:00
Stormwind
5206a7058e
Make choosing for the input class generic
...
Now you can add own input classes. If there are in "Rubella::Input" Rubella
will automatically load and use it.
TODO Improve error handling
2015-02-19 07:55:03 +01:00
Stormwind
cdbc3ee102
Add some apidoc for rubella.rb
2015-02-19 07:28:35 +01:00
Stormwind
27b0a3dbda
Be able to create an image from data
...
At the moment the image is simply shown to the user. But we need something
better. The user must be able to decide, what happens.
Also I want support for other colors.
2015-02-18 23:45:53 +01:00
Stormwind
992d738ede
Fix test data
2015-02-18 23:45:23 +01:00
Stormwind
46a44ae9c2
Get Input data into weightin process
...
The data gets weighted.
I also fixed some tiny bugs.
2015-02-18 22:45:02 +01:00
Stormwind
3f49c255ea
Fix typo
...
Forgot an @
2015-02-18 22:41:14 +01:00
Stormwind
c00af9c981
Frist step to create the heatmap
...
Read in the JSON data, works so far
2015-02-18 22:20:19 +01:00
Stormwind
878f8c14d5
Add source code to Weighting::PerValue
...
Runs, but I didn't test it so far.
2015-02-18 20:19:05 +01:00
Stormwind
9209beb012
Make it almost possible to decide input, output and weighting later
...
It is not possible to choose something differen, if it's nil. But you can
choose nil.
2015-02-17 23:01:49 +01:00
Stormwind
fb562d5c5f
Add saving of the to the constuctor given data
...
Now we'll not only load the given classes, we will use them.
2015-02-17 22:28:31 +01:00
Stormwind
d3531e8d2b
Started implementation of rubella
...
Dunno why there is no earlier commit...
Map class is probably a little bit too static. I will rewort this later, but
first we'll finish some of the other stuff.
2015-02-17 22:03:32 +01:00
Stormwind
4e7fc4bef5
Add new readme file
2015-02-12 17:01:10 +01:00
Stormwind
622c5679cf
Create folder testdummies
...
Now you can find all test dummies in an extra folder. That keeps the root
directory clean. :)
2013-06-01 13:05:20 +02:00
Stormwind
af913881ee
Fix test values
...
Replace JSON data file
2013-06-01 12:40:12 +02:00
Stormwind
5c94dbc444
Add 3th test dummy
...
Test dummy without special weighted values.
2013-06-01 12:37:48 +02:00
Stormwind
bf63612bbc
Use real test data for dummy 2
2013-06-01 12:37:04 +02:00