|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.middleware.bus.member.BusMember
org.universAAL.middleware.bus.member.Caller
org.universAAL.middleware.service.ServiceCaller
org.universAAL.context.reasoner.CHECaller
public class CHECaller
This class contains methods to perform SPARQL-Requests on the CHE.
Field Summary |
---|
Fields inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
busResourceURI, owner, theBus |
Constructor Summary | |
---|---|
CHECaller(ModuleContext context)
|
Method Summary | |
---|---|
String |
callDoSPARQL(String query)
Call the CHE service |
void |
communicationChannelBroken()
This abstract method is called for each member of the bus when the bus is being stopped. |
void |
executeQuery(String theQuery)
Execute a SPARQL CONSTRUCT query on the CHE that will return a reasoned event. |
void |
handleResponse(String reqID,
ServiceResponse response)
Will be called automatically in a new thread whenever the response corresponding to a previous call to ServiceCaller.sendRequest(ServiceRequest)
is ready. |
void |
setuAALParser(MessageContentSerializer service)
Set a MessageContentSerializer to be used when parsing the serialized returned event |
Methods inherited from class org.universAAL.middleware.service.ServiceCaller |
---|
addAvailabilitySubscription, busDyingOut, call, call, getAllServices, getMatchingService, getMatchingService, getMatchingService, getMyID, handleReply, removeAvailabilitySubscription, sendRequest |
Methods inherited from class org.universAAL.middleware.bus.member.BusMember |
---|
close, getType, getURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CHECaller(ModuleContext context)
Method Detail |
---|
public void communicationChannelBroken()
ServiceCaller
communicationChannelBroken
in class ServiceCaller
public void handleResponse(String reqID, ServiceResponse response)
ServiceCaller
ServiceCaller.sendRequest(ServiceRequest)
is ready.
handleResponse
in class ServiceCaller
reqID
- the ID returned by the previous call to
ServiceCaller.sendRequest(ServiceRequest)
.response
- the expected response.public void executeQuery(String theQuery)
theQuery
- The SPARQL CONSTRUCT querypublic String callDoSPARQL(String query)
query
- The CONSTRUCT query
public void setuAALParser(MessageContentSerializer service)
service
- the parser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |