Project

General

Profile

Creating a new Leginon node » History » Version 5

Jim Pulokas, 08/28/2013 01:43 PM

1 1 Jim Pulokas
h1. Creating a new Leginon node
2
3
The basic steps that will be described in detail below are:
4
5 5 Jim Pulokas
* Define new classes of data and events that will be created or communicated to other nodes
6
* Code the core functionality
7
* Give it a user interface
8
* register it with the list of available nodes
9
10
For each task, it is easiest to look at an existing node as an example.  Usually we just make a copy of a node the is similar in function and go from there.
11
12
h2. Define new data classes
13
14
If your new node will be generating and new kind of data that you wish to store in the database or pass to other nodes, you should define the new class in leginondata.py.  Sometimes it is easiest to create a subclass of some existing data class and only add new fields to it.  Also add any new class of events to event.py.
15
16
h2. Code the core functionality
17
18
...
19
20
h2. Create the user interface
21
22
...
23
24
h2. Register the node
25
26
...
27 2 Jim Pulokas
28 4 Jim Pulokas
back to [[Leginon Developer Guide]]