浏览代码

[Doc] neuron kill_switch

monf 8 年之前
父节点
当前提交
b56a56608a
共有 2 个文件被更改,包括 29 次插入1 次删除
  1. 29 0
      neurons/kill_switch/README.md
  2. 0 1
      neurons/kill_switch/kill_switch.py

+ 29 - 0
neurons/kill_switch/README.md

@@ -0,0 +1,29 @@
+# kill_switch
+
+## Synopsis
+
+This neuron exits the Kalliope process.
+
+## Options
+
+No parameters
+
+## Return Values
+
+No returned values
+
+## Synapses example
+
+Simple example : 
+
+```
+  - name: "stop-kalliope"
+    neurons:
+      - kill_switch
+    signals:
+      - order: "goodbye"
+```
+
+
+## Notes
+

+ 0 - 1
neurons/kill_switch/kill_switch.py

@@ -4,7 +4,6 @@ from core.NeuronModule import NeuronModule
 
 
 class Kill_switch(NeuronModule):
-
     def __init__(self, **kwargs):
         super(Kill_switch, self).__init__(**kwargs)
         sys.exit()