Skip to content

Commit d081515

Browse files
authored
Merge pull request #2 from dmi3coder/feature/dummyKernel
Feature/dummy kernel
2 parents 17fbaa4 + 179e87e commit d081515

File tree

15 files changed

+560
-126
lines changed

15 files changed

+560
-126
lines changed

.idea/dictionaries/dmi3y.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 337 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

docs/img/get_features_flow.png

204 KB
Loading

docs/img/get_prediction_flow.png

195 KB
Loading
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Mon Sep 09 10:39:48 EEST 2019
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-all.zip

readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ Predict what users want to open and take appropriate actions
1111
1. `RemoteKernel`, sends data to a API, depending on type of an API receives suggested action or receives model
1212
1. Set threshold after which Behaiv can start suggesting
1313
1. Register each view that can be tracked and opened by implementing interfaces
14-
1. `Actionable` is a type of view that can be opened by *Behaiv*
15-
1. `Routable` is a type of View that only cannot be opened but only route into next Views
16-
1. `Conditionable` is a type of View which will perform additional actions before proceeding
14+
1. `InitiableNode` is a type of view that can initiate capturing of features
15+
1. `ActionableNode` is a type of view that can be opened by *Behaiv*, as well as capture labels
16+
1. `RoutableNode` is a type of View that only cannot be opened but only route into next Views
17+
1. `ConditionableNode` is a type of View which will perform additional actions before proceeding
1718
1. Provide external factors sich as GPS, Wifi/Bluetooth and headphons info.
1819
1. Use `GeoProvider` for adding GPS feature into prediction
1920
1. Use `NetworkProvider` for adding Wifi, Bluetooth and Network features into prediction

src/main/java/de/dmi3y/behaiv/Behaiv.java

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,29 @@
33
*/
44
package de.dmi3y.behaiv;
55

6+
import de.dmi3y.behaiv.kernel.Kernel;
7+
68
public class Behaiv {
7-
public boolean someLibraryMethod() {
8-
return true;
9+
10+
private Kernel kernel;
11+
12+
private Behaiv() {
13+
14+
}
15+
16+
public synchronized static Behaiv with(Kernel kernel) {
17+
Behaiv behaiv = new Behaiv();
18+
behaiv.setKernel(kernel);
19+
return behaiv;
20+
21+
}
22+
23+
public Behaiv setKernel(Kernel kernel){
24+
this.kernel = kernel;
25+
return this;
26+
}
27+
28+
public Behaiv setBehaivNode() {
29+
return this;
930
}
1031
}

0 commit comments

Comments
 (0)