public class RegisterInitiator extends SingleRequestInitiator
Modifier and Type | Field and Description |
---|---|
static Result |
REGISTERED |
FAILURE_EXCEPTION, NOT_UNDERSTOOD_EXCEPTION, REFUSE_EXCEPTION, REPLY_NOT_UNDERSTOOD_EXCEPTION
Constructor and Description |
---|
RegisterInitiator(BehaviorController controller,
AgentDescription description)
Instantiates this directory register behavior.
|
Modifier and Type | Method and Description |
---|---|
AgentDescription |
getRegisteredDescription()
Returns the description returned by the directory.
|
void |
handleRegisteredDescription(AgentDescription description)
Callback method in order to handle a successful registration of the
directory entry.
|
void |
handleReplyNotUnderstood(Message reply)
Callback method in order to handle that messages received from the
directory cannot be interpreted (either because they are unreadable or
because they have unexpected content).
|
getIdentifier, handleFailure, handleNotUnderstood, handleRefuse, isFinished, result, run, waitingFor
public static final Result REGISTERED
public RegisterInitiator(BehaviorController controller, AgentDescription description)
controller
- the agent controller of the initiating agentdescription
- the description to be registeredpublic void handleRegisteredDescription(AgentDescription description)
description
- the description returned by the directorypublic AgentDescription getRegisteredDescription()
public void handleReplyNotUnderstood(Message reply)
reply
- the reply that is unreadable or that has unexpected contentCopyright © Aimpulse Intelligent Systems GmbH
All rights reserved.