public class TeamParticipant extends Object implements Behavior
The behavior of an agent participating in team formation.
Note that this implementation of team formation is based on a FIPA directory
service. Therefore, it requires to be exeucted on a FIPAPlatform
.
Modifier and Type | Field and Description |
---|---|
static Result |
TEAM_MANAGER |
static Result |
TEAM_MEMBER |
Constructor and Description |
---|
TeamParticipant(BehaviorController controller,
TeamDescription description,
TeamManagerFactory factory)
Instantiates this team participant with its team description and a
factory for team manager behaviors.
|
TeamParticipant(BehaviorController controller,
TeamDescription description,
TeamMatcher matcher)
Instantiates this team participant with its team description and a
matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFinished()
Indicates whether the behavior is finished or requires re-scheduling.
|
Result |
result()
Returns the result of the behavior.
|
void |
run()
The implementation of the actual behavior.
|
EventPattern |
waitingFor()
Defines the event pattern for re-scheduling.
|
public static final Result TEAM_MANAGER
public static final Result TEAM_MEMBER
public TeamParticipant(BehaviorController controller, TeamDescription description, TeamMatcher matcher)
controller
- the controller of this behaviordescription
- the team description of the team membermatcher
- the team matcherNullPointerException
- if the controller is null
NullPointerException
- if the description is null
NullPointerException
- if the matcher is null
public TeamParticipant(BehaviorController controller, TeamDescription description, TeamManagerFactory factory)
controller
- the controller of this behaviordescription
- the team description of the team memberfactory
- the team manager factoryNullPointerException
- if the controller is null
NullPointerException
- if the description is null
NullPointerException
- if the factory is null
public EventPattern waitingFor()
Behavior
waitingFor
in interface Behavior
null
if the behavior is finishedpublic void run()
Behavior
public boolean isFinished()
Behavior
isFinished
in interface Behavior
true
if the behavior is finished,
false
otherwiseCopyright © Aimpulse Intelligent Systems GmbH
All rights reserved.