Project

General

Profile

Creating a new Leginon node » History » Revision 5

Revision 4 (Jim Pulokas, 08/28/2013 01:33 PM) → Revision 5/29 (Jim Pulokas, 08/28/2013 01:43 PM)

h1. Creating a new Leginon node 

 The basic steps that will be described in detail below are: 

 * Define new classes of data and events that will be created or communicated to other nodes 
 * Code the core functionality 
 * Give it a user interface GUI 
 * register it with the list of available nodes 

 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. 

 h2. Define new data classes 

 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. 

 h2. Code the core functionality 

 ... 

 h2. Create the user interface 

 ... 

 h2. Register the node 

 ... 
 * registry 

 back to [[Leginon Developer Guide]]