public class MemoryTeamDatabase extends Object implements TeamDatabase
The default database for team managers. The database administers the current list of team members and keeps them in memory.
Note that, for performance reasons, this database does not provide any means to register listeners for database updates. However, this database can be decorated easily with the respective capability.
ListenableTeamManagerDatabase
Constructor and Description |
---|
MemoryTeamDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
handleJoin(TeamDescription participant)
Handles a participant that is about to join the team.
|
void |
handleLeave(TeamDescription participant)
Handles a participant that is about to leave the team.
|
public void handleJoin(TeamDescription participant) throws FailureException
TeamDatabase
handleJoin
in interface TeamDatabase
participant
- the participant to join the teamFailureException
- if the participant is already member of this teampublic void handleLeave(TeamDescription participant) throws FailureException
TeamDatabase
handleLeave
in interface TeamDatabase
participant
- the participant to leave the teamFailureException
- if the agent is not a member of this teamCopyright © Aimpulse Intelligent Systems GmbH
All rights reserved.