Author: tommaso
Date: Fri Dec  2 22:40:00 2011
New Revision: 1209750

URL: http://svn.apache.org/viewvc?rev=1209750&view=rev
Log:
adding nucleus and dendrite classes as parts of a neuron

Added:
    labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Dendrite.java
    labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Nucleus.java

Added: labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Dendrite.java
URL: 
http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Dendrite.java?rev=1209750&view=auto
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Dendrite.java (added)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Dendrite.java Fri Dec  
2 22:40:00 2011
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.yay.bio;
+
+/**
+ * A dendrite is the item responsible of collecting and delivering signals 
sent to a certain neuron
+ */
+public abstract class Dendrite {
+
+  private Long weight;
+
+  public abstract void acceptSignal(Signal signal);
+
+  public Long getWeight() {
+    return weight;
+  }
+}

Added: labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Nucleus.java
URL: 
http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Nucleus.java?rev=1209750&view=auto
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Nucleus.java (added)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/bio/Nucleus.java Fri Dec  
2 22:40:00 2011
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.yay.bio;
+
+/**
+ * the elaboration item in the neuron
+ */
+public interface Nucleus {
+
+  public Signal elaborate(Signal signal);
+
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to