|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umu.macow.common.KnowledgeRepository
public class KnowledgeRepository
This utility class acts as an API for PIP-PEP communications. Additionally it acts as a PIP core functionalities and a PEP local store funcionality.
User: jmalcaraz@um.es - University Of Murcia
Constructor Summary | |
---|---|
KnowledgeRepository()
|
Method Summary | |
---|---|
com.hp.hpl.jena.rdf.model.Model |
getPEPKnowledgeModel()
Return CIM represention of PEP elements stored. |
java.lang.String |
getPIPKnowledge()
Returns a RDF/XML document composed of all the controlled PEP elements on the system. |
boolean |
isPEP()
Get if the API client is acting as PEP or not |
boolean |
isPIP()
Get if the API client is acting as PIP or not |
void |
publishKnowledge(java.lang.String pubsubsURL,
java.lang.String mySelfURL)
A publisher will be subscribed to "NEW PIP" channel and will send frist time, will send knwoledge indemiatelly. |
void |
requestKnowledge(java.lang.String pubsubsURL,
java.lang.String mySelfURL)
This method will perform a subscription to "KB-BASE" topic. |
void |
setPEPKnowledge(com.hp.hpl.jena.rdf.model.Model model)
|
void |
update(java.lang.String sourceURL,
com.hp.hpl.jena.rdf.model.Model knowledege)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnowledgeRepository()
Method Detail |
---|
public com.hp.hpl.jena.rdf.model.Model getPEPKnowledgeModel()
public void update(java.lang.String sourceURL, com.hp.hpl.jena.rdf.model.Model knowledege)
public void setPEPKnowledge(com.hp.hpl.jena.rdf.model.Model model)
public boolean isPEP()
public boolean isPIP()
public void publishKnowledge(java.lang.String pubsubsURL, java.lang.String mySelfURL) throws java.rmi.RemoteException
java.rmi.RemoteException
- In case any error occur during communicationspublic void requestKnowledge(java.lang.String pubsubsURL, java.lang.String mySelfURL) throws java.rmi.RemoteException
java.rmi.RemoteException
- In case any error occur during communications.public java.lang.String getPIPKnowledge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |