diff --git a/src/main.rs b/src/main.rs index e7a11a9..c6d95f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,7 @@ +#![feature(allocator_api)] + +mod structure; + fn main() { println!("Hello, world!"); } diff --git a/src/structure/mod.rs b/src/structure/mod.rs new file mode 100644 index 0000000..3f55b1a --- /dev/null +++ b/src/structure/mod.rs @@ -0,0 +1,2 @@ +mod neuron; +mod sensoric; diff --git a/src/structure/neuron.rs b/src/structure/neuron.rs new file mode 100644 index 0000000..b75f0b6 --- /dev/null +++ b/src/structure/neuron.rs @@ -0,0 +1,20 @@ +/* + +Neuron: +condition of beeing fired +duration +neurons that already have been fired +neurons that haven't been fired +connection strenght + +System: +neurons +connections +need for new neurons + +Brain: +systems + +*/ + + diff --git a/src/structure/sensoric.rs b/src/structure/sensoric.rs new file mode 100644 index 0000000..56acf1b --- /dev/null +++ b/src/structure/sensoric.rs @@ -0,0 +1,13 @@ +/* + + + +*/ + +trait Sensor { + type Packet; + + fn input(&self) -> Self::Packet; +} + +