Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

Gdb Class Reference

Base class for all GLAST LAT functional blocks. More...

Inheritance diagram for Gdb:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 __init__ (client, parent, id, valid_attrs=[], addr=None, flags=None)
 up ()
 id ()
 addr ()
 root ()
 getIdTuple ()
 getName ()
 getOpaque (name=None)
 Retrieves the named opaque data included in the schema The opaque data needs to be associated with a node therefore this method only returns the opaque data that is associated with that node.
 getSerialNos (component=None)
 Retrieves the serial numbers associated with the node.
 getExcludeFlags ()
 Retrieves the exclude reasons associated with the node.
 setFlag (key, value)
 Set generic flags for the node.
 getFlag (key, integer=False)
 Returns the value which corresponds to key.
 attrIter ()
 Iterator for attributes.

Detailed Description

Base class for all GLAST LAT functional blocks.

Uses __getattr__ and __setattr__ methods to feature an SCL like syntax for referencing attributes

Definition at line 13 of file gDb.py.


Member Function Documentation

__init__ client  ,
parent  ,
id  ,
valid_attrs  = [],
addr  = None,
flags  = None
 

gNode constructor.

Parameters:
valid_regs A list of valid attribute names.

addr  ) 
 

Return the hardware address of this component

attrIter  ) 
 

Iterator for attributes.

Iterates over attribute objects belonging to the current node returning each object in the order that is specified in the node's __attrs member.

getExcludeFlags  ) 
 

Retrieves the exclude reasons associated with the node.

Returns:
A list of excludes that match the current node, if there are no excludes specified then an empty list is returned.

getFlag key  ,
integer  = False
 

Returns the value which corresponds to key.

Returns the value which corresponds to key.

Parameters:
key Entry key.
Returns:
Flag value corresponding to key.

getIdTuple  ) 
 

Return the node id(s) in this node's hierarchy

Returns:
The root node

getOpaque name  = None  ) 
 

Retrieves the named opaque data included in the schema The opaque data needs to be associated with a node therefore this method only returns the opaque data that is associated with that node.

Parameters:
name Name of the opaque XML data (optional)
Returns:
A list of XML DOM objects matching name or if name is None a dictionary of a list of XML DOM objects

Reimplemented in GHSK.

getSerialNos component  = None  ) 
 

Retrieves the serial numbers associated with the node.

Parameters:
component Hardware component identifier (optional)
Returns:
A dictionary matching component or if component is None a dictionary of all components and their serial numbers

id  ) 
 

Return the hardware id of this component

root  ) 
 

Return the root node in this node's hierarchy

Returns:
The root node

setFlag key  ,
value 
 

Set generic flags for the node.

Flags are passed by gSchemaConfig when the <flags> section in the schema is parsed.

Parameters:
key Entry key, must already exists.
value New value to be set for key.

up  ) 
 

Return the parent of this component


The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:26:50 2006 for LATTE R04-12-00 by doxygen 1.4.3