public interface Bot extends OwnerCallback
| Modifier and Type | Method and Description |
|---|---|
void |
act()
Called by the framework to execute non-reactive tasks.
|
BotLifecyclePhase |
getLifecyclePhase()
The lifecycle phase the bot is currently in.
|
void |
initialize()
Init method, called exactly once by the framework before any other method is invoked.
|
boolean |
isWorkDone()
Indicates whether the bot considers its work done.
|
boolean |
knowsNeedURI(java.net.URI needURI) |
boolean |
knowsNodeURI(java.net.URI wonNodeURI) |
void |
onMatcherRegistered(java.net.URI wonNodeUri) |
void |
onNeedActivatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI) |
void |
onNeedDeactivatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI) |
void |
onNewNeedCreated(java.net.URI needUri,
java.net.URI wonNodeUri,
org.apache.jena.query.Dataset needModel) |
void |
onNewNeedCreatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI,
org.apache.jena.query.Dataset needModel) |
void |
shutdown()
Shutdown method called exactly once by the framework to allow the bot to free resources.
|
onCloseFromOtherNeed, onConnectFromOtherNeed, onFailureResponse, onHintFromMatcher, onMessageFromOtherNeed, onOpenFromOtherNeed, onSuccessResponseboolean knowsNeedURI(java.net.URI needURI)
boolean knowsNodeURI(java.net.URI wonNodeURI)
void onNewNeedCreated(java.net.URI needUri,
java.net.URI wonNodeUri,
org.apache.jena.query.Dataset needModel)
throws java.lang.Exception
java.lang.Exceptionvoid onMatcherRegistered(java.net.URI wonNodeUri)
void onNewNeedCreatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI,
org.apache.jena.query.Dataset needModel)
void onNeedActivatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI)
void onNeedDeactivatedNotificationForMatcher(java.net.URI wonNodeURI,
java.net.URI needURI)
void initialize()
throws java.lang.Exception
java.lang.Exceptionvoid act() throws java.lang.Exception
java.lang.Exceptionvoid shutdown()
throws java.lang.Exception
java.lang.ExceptionBotLifecyclePhase getLifecyclePhase()
boolean isWorkDone()
Copyright © 2018. All Rights Reserved.