Package g4ds :: Module communitymanager :: Class CommunityGateway
[show private | hide private]
[frames | no frames]

Class CommunityGateway


Maintains information about a Trusting Commuity Gateway.

Each instance maintains only one direction, hence if a node is responsible for passing traffic in both directions, two instances have to be created.
Method Summary
  __init__(self, memberId, sourceCommunityId, destinationCommunityId, registerInCommunities, registerInMember, persistent)
Initalises a community gateway.
  __str__(self)
Some basic information about the object
String getDestinationCommunityId(self)
GETTER
String getMemberId(self)
GETTER
String getSourceCommunityId(self)
GETTER

Method Details

__init__(self, memberId, sourceCommunityId, destinationCommunityId, registerInCommunities=0, registerInMember=0, persistent=1)
(Constructor)

Initalises a community gateway.

Parameters are assigned to local variables.
Parameters:
memberId - ID of the node implementing this role
           (type=String)
sourceCommunityId - Community FROM which the given member may pass messages
           (type=String)
destinationCommunityId - Community TO which the given member may pass traffic
           (type=String)

To Do: For each gateway, a database connection is initialised. Not "too" nice.

__str__(self)
(Informal representation operator)

Some basic information about the object

getDestinationCommunityId(self)

GETTER
Returns:
ID of the community this gateway passes messages to
           (type=String)

getMemberId(self)

GETTER
Returns:
ID of the member responsible for this gateway
           (type=String)

getSourceCommunityId(self)

GETTER
Returns:
ID of the community this gateway passes messages from
           (type=String)

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net