# DoInterestManager

from direct.distributed.DoInterestManager import DoInterestManager

Top level Interest Manager

## Inheritance:

DoInterestManager:

## Methods of DoInterestManager:

__init__
_considerRemoveInterest
_getNextHandle
_getNextScopeId
_sendAddInterest
_sendRemoveInterest
addInterest
alterInterest
handleInterestDoneMessage
removeInterest

__init__ def __init__(self) Undocumented function.

_considerRemoveInterest def _considerRemoveInterest(self, handle) Consider whether we should cull the interest set.

_getNextHandle def _getNextHandle(self) Undocumented function.

_getNextScopeId def _getNextScopeId(self) Undocumented function.

_sendAddInterest def _sendAddInterest(self, handle, scopeId, parentId, zoneIdList) Part of the new otp-server code. handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.

_sendRemoveInterest def _sendRemoveInterest(self, handle, scopeId) handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.

addInterest def addInterest(self, parentId, zoneIdList, description, event=None) Look into a (set of) zone(s).

alterInterest def alterInterest(self, handle, parentId, zoneIdList, description=None, event=None) Removes old interests and adds new interests. Note that when an interest is changed, only the most recent change's event will be triggered. Previous events are abandoned. If this is a problem, consider opening multiple interests.

handleInterestDoneMessage def handleInterestDoneMessage(self, di) This handles the interest done messages and may dispatch an event

removeInterest def removeInterest(self, handle, event=None) Stop looking in a (set of) zone(s)