DataDistributorAddress Class Reference

Data distributor address class containing static methods that govern the picking of multicast ports and addresses. More...

Collaboration diagram for DataDistributorAddress:

Collaboration graph
[legend]
List of all members.

Public Member Functions

def port
 Static method to select a physical multicast port to use based on the type of data that is desired.
def lookup
 Static method for resolving the multicast port and group values.

Static Public Attributes

tuple port = staticmethod(port)
tuple lookup = staticmethod(lookup)

Static Private Attributes

int __PORT_TEMPLATE = 54321
string __GROUP_TEMPLATE = '239.255.1.%u'
dictionary __ports

Detailed Description

Data distributor address class containing static methods that govern the picking of multicast ports and addresses.

Definition at line 242 of file DataDistributor.py.


Member Function Documentation

def lookup   port,
  server
 

Static method for resolving the multicast port and group values.

Parameters:
port An integer containing the multicast port to use, e.g. from the port() method above, or None to indicate that the value will come from the supplied server string.
server A string that contains either the machine ID (test stand instance number), or <port><group IP or name>, or <group ip ="" or="" name>=""> when a port number is also supplied. These last two can be used to override the values chosen by this class. The machine ID is a number from 0 - 999, where the hundreds digit represents the site ID and remainder (0-99) is the machine ID at the site. This latter portion is what's used.
Returns:
A list made up of the resolved port and group values.

Definition at line 268 of file DataDistributor.py.

def port   name  ) 
 

Static method to select a physical multicast port to use based on the type of data that is desired.

Parameters:
name The name of the type of data that is desired. Choose from 'LAT_EBFdata', 'LAT_CMDdata', 'LAT_HSKdata' and 'LAT_MsgLog'.

Definition at line 257 of file DataDistributor.py.


Member Data Documentation

string __GROUP_TEMPLATE = '239.255.1.%u' [static, private]
 

Definition at line 249 of file DataDistributor.py.

int __PORT_TEMPLATE = 54321 [static, private]
 

Definition at line 246 of file DataDistributor.py.

dictionary __ports [static, private]
 

Initial value:

{"LAT_EBFdata" : __PORT_TEMPLATE + 0,
             "LAT_LDFdata" : __PORT_TEMPLATE + 0, # Alias for EBFdata
             "LAT_CMDdata" : __PORT_TEMPLATE + 1,
             "LAT_HSKdata" : __PORT_TEMPLATE + 2,
             "LAT_MsgLog"  : __PORT_TEMPLATE + 3}

Definition at line 251 of file DataDistributor.py.

tuple lookup = staticmethod(lookup) [static]
 

Definition at line 300 of file DataDistributor.py.

tuple port = staticmethod(port) [static]
 

Definition at line 299 of file DataDistributor.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:02 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO